Security options
CONFIG_SECURITY_DMESG_RESTRICT Restrict unprivileged access to the kernel syslog
This enforces restrictions on unprivileged users reading the kernel syslog via dmesg(8).
If this option is not selected, no restrictions will be enforced unless the dmesg_restrict sysctl is explicitly set to (1).
If you are unsure how to answer this question, answer N.
Allow /proc/pid/mem access override
Traditionally /proc/pid/mem allows users to override memory permissions for users like ptrace, assuming they have ptrace capability.
This allows people to limit that - either never override, or require actual active ptrace attachment (default).
CONFIG_PROC_MEM_ALWAYS_FORCE Traditional /proc/pid/mem behavior
This allows /proc/pid/mem accesses to override memory mapping permissions if you have ptrace access rights.
CONFIG_PROC_MEM_FORCE_PTRACE Require active ptrace() use for access override
This allows /proc/pid/mem accesses to override memory mapping permissions for active ptracers like gdb.
CONFIG_PROC_MEM_NO_FORCE Never
Never override memory mapping permissions
CONFIG_MSEAL_SYSTEM_MAPPINGS mseal system mappings
Apply mseal on system mappings. The system mappings includes vdso, vvar, vvar_vclock, vectors (arm compat-mode), sigpage (arm compat-mode), uprobes.
A 64-bit kernel is required for the memory sealing feature. No specific hardware features from the CPU are needed.
WARNING: This feature breaks programs which rely on relocating or unmapping system mappings. Known broken software at the time of writing includes CHECKPOINT_RESTORE, UML, gVisor, rr. Therefore this config can't be enabled universally.
For complete descriptions of memory sealing, please see Documentation/userspace-api/mseal.rst
- Depends on
&& ARCH_SUPPORTS_MSEAL_SYSTEM_MAPPINGS && !CHECKPOINT_RESTORE
CONFIG_SECURITY Enable different security models
This allows you to choose different security modules to be configured into your kernel.
If this option is not selected, the default Linux security model will be used.
If you are unsure how to answer this question, answer N.
If SECURITY
CONFIG_SECURITYFS Enable the securityfs filesystem
This will build the securityfs filesystem. It is currently used by various security modules (AppArmor, IMA, SafeSetID, TOMOYO, TPM).
If you are unsure how to answer this question, answer N.
CONFIG_SECURITY_NETWORK Socket and Networking Security Hooks
This enables the socket and networking security hooks. If enabled, a security module can use these hooks to implement socket and networking access controls. If you are unsure how to answer this question, answer N.
- Depends on
SECURITY
CONFIG_SECURITY_INFINIBAND Infiniband Security Hooks
This enables the Infiniband security hooks. If enabled, a security module can use these hooks to implement Infiniband access controls. If you are unsure how to answer this question, answer N.
- Depends on
SECURITY && INFINIBAND
CONFIG_SECURITY_NETWORK_XFRM XFRM (IPSec) Networking Security Hooks
This enables the XFRM (IPSec) networking security hooks. If enabled, a security module can use these hooks to implement per-packet access controls based on labels derived from IPSec policy. Non-IPSec communications are designated as unlabelled, and only sockets authorized to communicate unlabelled data can send without using IPSec. If you are unsure how to answer this question, answer N.
- Depends on
XFRM && SECURITY_NETWORK
CONFIG_SECURITY_PATH Security hooks for pathname based access control
This enables the security hooks for pathname based access control. If enabled, a security module can use these hooks to implement pathname based access controls. If you are unsure how to answer this question, answer N.
- Depends on
SECURITY
CONFIG_INTEL_TXT Enable Intel(R) Trusted Execution Technology (Intel(R) TXT)
This option enables support for booting the kernel with the Trusted Boot (tboot) module. This will utilize Intel(R) Trusted Execution Technology to perform a measured launch of the kernel. If the system does not support Intel(R) TXT, this will have no effect.
Intel TXT will provide higher assurance of system configuration and initial state as well as data reset protection. This is used to create a robust initial kernel measurement and verification, which helps to ensure that kernel security mechanisms are functioning correctly. This level of protection requires a root of trust outside of the kernel itself.
Intel TXT also helps solve real end user concerns about having confidence that their hardware is running the VMM or kernel that it was configured with, especially since they may be responsible for providing such assurances to VMs and services running on it.
See <https://www.intel.com/technology/security/> for more information about Intel(R) TXT. See <http://tboot.sourceforge.net> for more information about tboot. See Documentation/arch/x86/intel_txt.rst for a description of how to enable Intel TXT support in a kernel boot.
If you are unsure as to whether this is required, answer N.
- Depends on
HAVE_INTEL_TXT
CONFIG_LSM_MMAP_MIN_ADDR Low address space for LSM to protect from user allocation
This is the portion of low virtual memory which should be protected from userspace allocation. Keeping a user from writing to low pages can help reduce the impact of kernel NULL pointer bugs.
For most ia64, ppc64 and x86 users with lots of address space a value of 65536 is reasonable and should cause no problems. On arm and other archs it should not be higher than 32768. Programs which use vm86 functionality or have some need to map this low address space will need the permission specific to the systems running LSM.
- Depends on
SECURITY && SECURITY_SELINUX
CONFIG_STATIC_USERMODEHELPER Force all usermode helper calls through a single binary
By default, the kernel can call many different userspace binary programs through the "usermode helper" kernel interface. Some of these binaries are statically defined either in the kernel code itself, or as a kernel configuration option. However, some of these are dynamically created at runtime, or can be modified after the kernel has started up. To provide an additional layer of security, route all of these calls through a single executable that can not have its name changed.
Note, it is up to this single binary to then call the relevant "real" usermode helper binary, based on the first argument passed to it. If desired, this program can filter and pick and choose what real programs are called.
If you wish for all usermode helper programs are to be disabled, choose this option and then set STATIC_USERMODEHELPER_PATH to an empty string.
If STATIC_USERMODEHELPER
CONFIG_STATIC_USERMODEHELPER_PATH Path to the static usermode helper binary
The binary called by the kernel when any usermode helper program is wish to be run. The "real" application's name will be in the first argument passed to this program on the command line.
If you wish for all usermode helper programs to be disabled, specify an empty string here (i.e. "").
First legacy 'major LSM' to be initialized
This choice is there only for converting CONFIG_DEFAULT_SECURITY in old kernel configs to CONFIG_LSM in new kernel configs. Don't change this choice unless you are creating a fresh kernel config, for this choice will be ignored after CONFIG_LSM has been set.
Selects the legacy "major security module" that will be initialized first. Overridden by non-default CONFIG_LSM.
CONFIG_DEFAULT_SECURITY_SELINUX SELinux
CONFIG_DEFAULT_SECURITY_SMACK Simplified Mandatory Access Control
CONFIG_DEFAULT_SECURITY_TOMOYO TOMOYO
CONFIG_DEFAULT_SECURITY_APPARMOR AppArmor
CONFIG_DEFAULT_SECURITY_DAC Unix Discretionary Access Controls
CONFIG_LSM Ordered list of enabled LSMs
A comma-separated list of LSMs, in initialization order. Any LSMs left off this list, except for those with order LSM_ORDER_FIRST and LSM_ORDER_LAST, which are always enabled if selected in the kernel configuration, will be ignored. This can be controlled at boot with the "lsm=" parameter.
If unsure, leave this as the default.
- Depends on
SECURITY
CONFIG_SECURITY_COMMONCAP_KUNIT_TEST Build KUnit tests for commoncap
This builds the commoncap KUnit tests.
KUnit tests run during boot and output the results to the debug log in TAP format (https://testanything.org/). Only useful for kernel devs running KUnit test harness and are not for inclusion into a production build.
For more information on KUnit and unit tests in general please refer to the KUnit documentation in Documentation/dev-tools/kunit/.
If unsure, say N.