The libseccomp package provides an easy to use and platform independent interface to the Linux kernel's syscall filtering mechanism.
This package is known to build and work properly using an LFS 11.3 platform.
Download (HTTP): https://github.com/seccomp/libseccomp/releases/download/v2.5.4/libseccomp-2.5.4.tar.gz
Download MD5 sum: 74008bb33234e0c2a0d998e7bee5c625
Download size: 624 KB
Estimated disk space required: 6.3 MB (additional 3.8 MB for tests)
Estimated build time: less than 0.1 SBU (additional 2.1 SBU for tests)
Which-2.21 (needed for tests), Valgrind-3.20.0, and LCOV
User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/libseccomp
Install libseccomp by running the following commands:
./configure --prefix=/usr --disable-static && make
To test the results, issue: make check.
Now, as the root
user:
make install
--disable-static
: This switch prevents
installation of static versions of the libraries.