CONFIG_SECURITY_LANDLOCK Landlock support
Landlock is a sandboxing mechanism that enables processes to restrict themselves (and their future children) by gradually enforcing tailored access control policies. A Landlock security policy is a set of access rights (e.g. open a file in read-only, make a directory, etc.) tied to a file hierarchy. Such policy can be configured and enforced by any processes for themselves using the dedicated system calls: landlock_create_ruleset(), landlock_add_rule(), and landlock_restrict_self().
See Documentation/userspace-api/landlock.rst for further information.
If you are unsure how to answer this question, answer N. Otherwise, you should also prepend "landlock," to the content of CONFIG_LSM to enable Landlock at boot time.
- Depends on
SECURITY - Selects
SECURITY_NETWORK if SECURITY - Selects
SECURITY_PATH if SECURITY
If SECURITY_LANDLOCK
CONFIG_SECURITY_LANDLOCK_LOG
CONFIG_SECURITY_LANDLOCK_KUNIT_TEST KUnit tests for Landlock
Build KUnit tests for Landlock.
See the KUnit documentation in Documentation/dev-tools/kunit
Run all KUnit tests for Landlock with: ./tools/testing/kunit/kunit.py run --kunitconfig security/landlock
If you are unsure how to answer this question, answer N.
- Depends on
KUNIT=y && SECURITY_LANDLOCK