Skip to content
systemdPublic

About

Reading, checking and writing UAPI.16 file manifests

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

93 Commits

Folders and files

Repository files navigation

uapi16

This repository holds uapi16, a Rust crate that reads, checks and writes UAPI.16 file manifests, its C library, libuapi16, and fsmanifest, a command-line tool that generates and checks manifests. The crate is in src/uapi16, and its README describes the crate and the C library. The tool is in src/fsmanifest, and its README describes its commands.

Command-line tool

From the top of the repository, this builds fsmanifest as target/release/fsmanifest:

cargo build --release -p fsmanifest

The tarballs of a release have it prebuilt, see below.

C library

From the top of the repository, these build the C library and install it into /usr:

src/uapi16/build.sh
src/uapi16/install.sh --prefix=/usr

Release tarballs

Every release has the C library and fsmanifest prebuilt for x86_64 and aarch64 Linux with glibc 2.34 or newer, in uapi16-VERSION-ARCH-linux-gnu.tar.gz. The tarball holds a directory of that name with what install.sh installs, with bin/fsmanifest and its man page and completions in share, and with the license texts in share/licenses/uapi16. These install it into /opt/uapi16:

mkdir -p /opt/uapi16
tar --strip-components=1 -C /opt/uapi16 \
    -xf uapi16-0.1.0-x86_64-linux-gnu.tar.gz
export PKG_CONFIG_PATH=/opt/uapi16/lib/pkgconfig

The tool is /opt/uapi16/bin/fsmanifest then. The directory can be moved or copied as a whole, but uapi16.pc can't be copied or symlinked out of it.

SHA256SUMS lists the hashes of the tarballs. SHA256SUMS.asc is its signature by Christian Brauner brauner@kernel.org, with this key and its signing subkey:

key     4880 B8C9 BD0E 5106 FC07  0F4F 7B3C 391E FEA9 3624
subkey  4087 3457 1EA7 0C78 B332  6928 91C6 1BC0 6578 DCA2

The key is in the keyring of kernel.org. These check a tarball against the sums and the key:

sha256sum --ignore-missing -c SHA256SUMS
gpg --verify SHA256SUMS.asc SHA256SUMS

Each tarball also has an attestation of the GitHub workflow run that built it, which the GitHub CLI checks:

gh attestation verify uapi16-0.1.0-x86_64-linux-gnu.tar.gz \
    -R systemd/uapi16 \
    --source-ref refs/tags/v0.1.0 \
    --signer-workflow systemd/uapi16/.github/workflows/release.yml

Submitting changes

Changes go in as pull requests on GitHub. Every commit carries a Signed-off-by: line from its author. git commit -s adds one. With it the author certifies the Developer Certificate of Origin in the file DCO. Merge commits don't need one.

License

LGPL-2.1-or-later, see LICENSE.

About

Reading, checking and writing UAPI.16 file manifests

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages