Introduction to keyutils
Keyutils is a set of utilities for managing the key retention facility in the kernel, which can be used by filesystems, block devices and more to gain and retain the authorization and encryption keys required to perform secure operations.
Note
Development versions of BLFS may not build or run some packages properly if LFS or dependencies have been updated since the most recent stable versions of the books.
Package Information
keyutils Dependencies
Required
MIT Kerberos V5-1.21.2
Installation of keyutils
Install keyutils by running the following commands:
sed -i 's:$(LIBDIR)/$(PKGCONFIG_DIR):/usr/lib/pkgconfig:' Makefile &&
make
Now, as the root
user:
make NO_ARLIB=1 LIBDIR=/usr/lib BINDIR=/usr/bin SBINDIR=/usr/sbin install
The test suite can only run after installing this package. To test the results, issue, as the root
user:
sed -e 's/executable/\\(pie \\)?/' \
-i tests/toolbox.inc.sh &&
make -k test
Note that several tests will fail if certain uncommon kernel options were not used when the kernel was built. These include CONFIG_BIG_KEYS, CONFIG_KEY_DH_OPERATIONS, and CONFIG_CRYPTO_DH.
Command Explanations
sed ... Makefile: This command ensures the pkgconfig file is placed in the correct directory.
sed ... tests/toolbox.inc.sh: In LFS, GCC has been configured with --enable-default-pie
so /usr/bin/bash is a PIE, but the test script does not anticipate it. Fix this oversight so the test can run on a LFS system.
NO_ARLIB=1
: This make flag disables installing the static library.