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 12.4 platform.
Download (HTTP): https://github.com/seccomp/libseccomp/releases/download/v2.6.0/libseccomp-2.6.0.tar.gz
Download SHA256 Sum: 83b6085232d1588c379dc9b9cae47bb37407cf262e6e74993c61ba72d2a784dc
Download MD5 sum: 2d42bcde31fd6e994fcf251a1f71d487
Download size: 672 KB
Estimated disk space required: 7.6 MB (additional 6.3 MB for tests)
Estimated build time: less than 0.1 SBU (additional 1.7 SBU for tests)
Which-2.23 (needed for tests), "valgrind", cython-3.2.1 (for python bindings), and LCOV
Prepare libseccomp by running the following commands:
./configure --prefix=/usr --disable-static
To Build libseccomp, issue:
make
To test the results, issue:
make check
Now, Install as the root user:
make install
--enable-python: this switch is needed to build
python bindings if cython-3.2.1 is installed. The option
--disable-static must not be given if this option
is used. And you must run sed 's/env python/&3/' -i
tests/regression if this option is used and you want to
run the test suite.