11da177e4SLinus Torvalds# 21da177e4SLinus Torvalds# Security configuration 31da177e4SLinus Torvalds# 41da177e4SLinus Torvalds 51da177e4SLinus Torvaldsmenu "Security options" 61da177e4SLinus Torvalds 7f0894940SDavid Howellssource security/keys/Kconfig 81da177e4SLinus Torvalds 9eaf06b24SDan Rosenbergconfig SECURITY_DMESG_RESTRICT 10eaf06b24SDan Rosenberg bool "Restrict unprivileged access to the kernel syslog" 11eaf06b24SDan Rosenberg default n 12eaf06b24SDan Rosenberg help 13eaf06b24SDan Rosenberg This enforces restrictions on unprivileged users reading the kernel 14eaf06b24SDan Rosenberg syslog via dmesg(8). 15eaf06b24SDan Rosenberg 16eaf06b24SDan Rosenberg If this option is not selected, no restrictions will be enforced 17eaf06b24SDan Rosenberg unless the dmesg_restrict sysctl is explicitly set to (1). 18eaf06b24SDan Rosenberg 19eaf06b24SDan Rosenberg If you are unsure how to answer this question, answer N. 20eaf06b24SDan Rosenberg 211da177e4SLinus Torvaldsconfig SECURITY 221da177e4SLinus Torvalds bool "Enable different security models" 232c40579bSAdrian Bunk depends on SYSFS 241da177e4SLinus Torvalds help 251da177e4SLinus Torvalds This allows you to choose different security modules to be 261da177e4SLinus Torvalds configured into your kernel. 271da177e4SLinus Torvalds 281da177e4SLinus Torvalds If this option is not selected, the default Linux security 291da177e4SLinus Torvalds model will be used. 301da177e4SLinus Torvalds 311da177e4SLinus Torvalds If you are unsure how to answer this question, answer N. 321da177e4SLinus Torvalds 33da31894eSEric Parisconfig SECURITYFS 34da31894eSEric Paris bool "Enable the securityfs filesystem" 35da31894eSEric Paris help 36da31894eSEric Paris This will build the securityfs filesystem. It is currently used by 373323eec9SMimi Zohar the TPM bios character driver and IMA, an integrity provider. It is 383323eec9SMimi Zohar not used by SELinux or SMACK. 39da31894eSEric Paris 40da31894eSEric Paris If you are unsure how to answer this question, answer N. 41da31894eSEric Paris 421da177e4SLinus Torvaldsconfig SECURITY_NETWORK 431da177e4SLinus Torvalds bool "Socket and Networking Security Hooks" 441da177e4SLinus Torvalds depends on SECURITY 451da177e4SLinus Torvalds help 461da177e4SLinus Torvalds This enables the socket and networking security hooks. 471da177e4SLinus Torvalds If enabled, a security module can use these hooks to 481da177e4SLinus Torvalds implement socket and networking access controls. 491da177e4SLinus Torvalds If you are unsure how to answer this question, answer N. 501da177e4SLinus Torvalds 51df71837dSTrent Jaegerconfig SECURITY_NETWORK_XFRM 52df71837dSTrent Jaeger bool "XFRM (IPSec) Networking Security Hooks" 53df71837dSTrent Jaeger depends on XFRM && SECURITY_NETWORK 54df71837dSTrent Jaeger help 55df71837dSTrent Jaeger This enables the XFRM (IPSec) networking security hooks. 56df71837dSTrent Jaeger If enabled, a security module can use these hooks to 57df71837dSTrent Jaeger implement per-packet access controls based on labels 58df71837dSTrent Jaeger derived from IPSec policy. Non-IPSec communications are 59df71837dSTrent Jaeger designated as unlabelled, and only sockets authorized 60df71837dSTrent Jaeger to communicate unlabelled data can send without using 61df71837dSTrent Jaeger IPSec. 62df71837dSTrent Jaeger If you are unsure how to answer this question, answer N. 63df71837dSTrent Jaeger 64be6d3e56SKentaro Takedaconfig SECURITY_PATH 65be6d3e56SKentaro Takeda bool "Security hooks for pathname based access control" 66be6d3e56SKentaro Takeda depends on SECURITY 67be6d3e56SKentaro Takeda help 68be6d3e56SKentaro Takeda This enables the security hooks for pathname based access control. 69be6d3e56SKentaro Takeda If enabled, a security module can use these hooks to 70be6d3e56SKentaro Takeda implement pathname based access controls. 71be6d3e56SKentaro Takeda If you are unsure how to answer this question, answer N. 72be6d3e56SKentaro Takeda 7331625340SJoseph Cihulaconfig INTEL_TXT 7431625340SJoseph Cihula bool "Enable Intel(R) Trusted Execution Technology (Intel(R) TXT)" 7569575d38SShane Wang depends on HAVE_INTEL_TXT 7631625340SJoseph Cihula help 7731625340SJoseph Cihula This option enables support for booting the kernel with the 7831625340SJoseph Cihula Trusted Boot (tboot) module. This will utilize 7931625340SJoseph Cihula Intel(R) Trusted Execution Technology to perform a measured launch 8031625340SJoseph Cihula of the kernel. If the system does not support Intel(R) TXT, this 8131625340SJoseph Cihula will have no effect. 8231625340SJoseph Cihula 833c556e41SArnaldo Carvalho de Melo Intel TXT will provide higher assurance of system configuration and 8431625340SJoseph Cihula initial state as well as data reset protection. This is used to 8531625340SJoseph Cihula create a robust initial kernel measurement and verification, which 8631625340SJoseph Cihula helps to ensure that kernel security mechanisms are functioning 8731625340SJoseph Cihula correctly. This level of protection requires a root of trust outside 8831625340SJoseph Cihula of the kernel itself. 8931625340SJoseph Cihula 9031625340SJoseph Cihula Intel TXT also helps solve real end user concerns about having 9131625340SJoseph Cihula confidence that their hardware is running the VMM or kernel that 923c556e41SArnaldo Carvalho de Melo it was configured with, especially since they may be responsible for 9331625340SJoseph Cihula providing such assurances to VMs and services running on it. 9431625340SJoseph Cihula 9531625340SJoseph Cihula See <http://www.intel.com/technology/security/> for more information 9631625340SJoseph Cihula about Intel(R) TXT. 9731625340SJoseph Cihula See <http://tboot.sourceforge.net> for more information about tboot. 9831625340SJoseph Cihula See Documentation/intel_txt.txt for a description of how to enable 9931625340SJoseph Cihula Intel TXT support in a kernel boot. 10031625340SJoseph Cihula 10131625340SJoseph Cihula If you are unsure as to whether this is required, answer N. 10231625340SJoseph Cihula 103788084abSEric Parisconfig LSM_MMAP_MIN_ADDR 104024e6cb4SAndreas Schwab int "Low address space for LSM to protect from user allocation" 105788084abSEric Paris depends on SECURITY && SECURITY_SELINUX 106*530b099dSColin Cross default 32768 if ARM || (ARM64 && COMPAT) 107a58578e4SDave Jones default 65536 108788084abSEric Paris help 109788084abSEric Paris This is the portion of low virtual memory which should be protected 110788084abSEric Paris from userspace allocation. Keeping a user from writing to low pages 111788084abSEric Paris can help reduce the impact of kernel NULL pointer bugs. 112788084abSEric Paris 113788084abSEric Paris For most ia64, ppc64 and x86 users with lots of address space 114788084abSEric Paris a value of 65536 is reasonable and should cause no problems. 115788084abSEric Paris On arm and other archs it should not be higher than 32768. 116788084abSEric Paris Programs which use vm86 functionality or have some need to map 117788084abSEric Paris this low address space will need the permission specific to the 118788084abSEric Paris systems running LSM. 119788084abSEric Paris 1201da177e4SLinus Torvaldssource security/selinux/Kconfig 121e114e473SCasey Schauflersource security/smack/Kconfig 12200d7d6f8SKentaro Takedasource security/tomoyo/Kconfig 123f9ad1af5SJohn Johansensource security/apparmor/Kconfig 1242d514487SKees Cooksource security/yama/Kconfig 1251da177e4SLinus Torvalds 126f381c272SMimi Zoharsource security/integrity/Kconfig 1273323eec9SMimi Zohar 1286e65f92fSJohn Johansenchoice 1296e65f92fSJohn Johansen prompt "Default security module" 1306e65f92fSJohn Johansen default DEFAULT_SECURITY_SELINUX if SECURITY_SELINUX 1316e65f92fSJohn Johansen default DEFAULT_SECURITY_SMACK if SECURITY_SMACK 1326e65f92fSJohn Johansen default DEFAULT_SECURITY_TOMOYO if SECURITY_TOMOYO 133f9ad1af5SJohn Johansen default DEFAULT_SECURITY_APPARMOR if SECURITY_APPARMOR 1342d514487SKees Cook default DEFAULT_SECURITY_YAMA if SECURITY_YAMA 1356e65f92fSJohn Johansen default DEFAULT_SECURITY_DAC 1366e65f92fSJohn Johansen 1376e65f92fSJohn Johansen help 1386e65f92fSJohn Johansen Select the security module that will be used by default if the 1396e65f92fSJohn Johansen kernel parameter security= is not specified. 1406e65f92fSJohn Johansen 1416e65f92fSJohn Johansen config DEFAULT_SECURITY_SELINUX 1426e65f92fSJohn Johansen bool "SELinux" if SECURITY_SELINUX=y 1436e65f92fSJohn Johansen 1446e65f92fSJohn Johansen config DEFAULT_SECURITY_SMACK 1456e65f92fSJohn Johansen bool "Simplified Mandatory Access Control" if SECURITY_SMACK=y 1466e65f92fSJohn Johansen 1476e65f92fSJohn Johansen config DEFAULT_SECURITY_TOMOYO 1486e65f92fSJohn Johansen bool "TOMOYO" if SECURITY_TOMOYO=y 1496e65f92fSJohn Johansen 150f9ad1af5SJohn Johansen config DEFAULT_SECURITY_APPARMOR 151f9ad1af5SJohn Johansen bool "AppArmor" if SECURITY_APPARMOR=y 152f9ad1af5SJohn Johansen 1532d514487SKees Cook config DEFAULT_SECURITY_YAMA 1542d514487SKees Cook bool "Yama" if SECURITY_YAMA=y 1552d514487SKees Cook 1566e65f92fSJohn Johansen config DEFAULT_SECURITY_DAC 1576e65f92fSJohn Johansen bool "Unix Discretionary Access Controls" 1586e65f92fSJohn Johansen 1596e65f92fSJohn Johansenendchoice 1606e65f92fSJohn Johansen 1616e65f92fSJohn Johansenconfig DEFAULT_SECURITY 1626e65f92fSJohn Johansen string 1636e65f92fSJohn Johansen default "selinux" if DEFAULT_SECURITY_SELINUX 1646e65f92fSJohn Johansen default "smack" if DEFAULT_SECURITY_SMACK 1656e65f92fSJohn Johansen default "tomoyo" if DEFAULT_SECURITY_TOMOYO 166f9ad1af5SJohn Johansen default "apparmor" if DEFAULT_SECURITY_APPARMOR 1672d514487SKees Cook default "yama" if DEFAULT_SECURITY_YAMA 1686e65f92fSJohn Johansen default "" if DEFAULT_SECURITY_DAC 1696e65f92fSJohn Johansen 1701da177e4SLinus Torvaldsendmenu 1711da177e4SLinus Torvalds 172