0001 # SPDX-License-Identifier: GPL-2.0-only
0002
0003 config SECURITY_LANDLOCK
0004 bool "Landlock support"
0005 depends on SECURITY && !ARCH_EPHEMERAL_INODES
0006 select SECURITY_PATH
0007 help
0008 Landlock is a sandboxing mechanism that enables processes to restrict
0009 themselves (and their future children) by gradually enforcing
0010 tailored access control policies. A Landlock security policy is a
0011 set of access rights (e.g. open a file in read-only, make a
0012 directory, etc.) tied to a file hierarchy. Such policy can be
0013 configured and enforced by any processes for themselves using the
0014 dedicated system calls: landlock_create_ruleset(),
0015 landlock_add_rule(), and landlock_restrict_self().
0016
0017 See Documentation/userspace-api/landlock.rst for further information.
0018
0019 If you are unsure how to answer this question, answer N. Otherwise,
0020 you should also prepend "landlock," to the content of CONFIG_LSM to
0021 enable Landlock at boot time.