1 # SPDX-License-Identifier: GPL-2.0-only 1 # SPDX-License-Identifier: GPL-2.0-only 2 config SECURITY_SELINUX 2 config SECURITY_SELINUX 3 bool "SELinux Support" !! 3 bool "NSA SELinux Support" 4 depends on SECURITY_NETWORK && AUDIT & 4 depends on SECURITY_NETWORK && AUDIT && NET && INET 5 select NETWORK_SECMARK 5 select NETWORK_SECMARK 6 default n 6 default n 7 help 7 help 8 This selects Security-Enhanced Linux !! 8 This selects NSA Security-Enhanced Linux (SELinux). 9 You will also need a policy configur 9 You will also need a policy configuration and a labeled filesystem. 10 If you are unsure how to answer this 10 If you are unsure how to answer this question, answer N. 11 11 12 config SECURITY_SELINUX_BOOTPARAM 12 config SECURITY_SELINUX_BOOTPARAM 13 bool "SELinux boot parameter" !! 13 bool "NSA SELinux boot parameter" 14 depends on SECURITY_SELINUX 14 depends on SECURITY_SELINUX 15 default n 15 default n 16 help 16 help 17 This option adds a kernel parameter 17 This option adds a kernel parameter 'selinux', which allows SELinux 18 to be disabled at boot. If this opt 18 to be disabled at boot. If this option is selected, SELinux 19 functionality can be disabled with s 19 functionality can be disabled with selinux=0 on the kernel 20 command line. The purpose of this o 20 command line. The purpose of this option is to allow a single 21 kernel image to be distributed with 21 kernel image to be distributed with SELinux built in, but not 22 necessarily enabled. 22 necessarily enabled. 23 23 24 If you are unsure how to answer this 24 If you are unsure how to answer this question, answer N. 25 25 26 config SECURITY_SELINUX_DEVELOP 26 config SECURITY_SELINUX_DEVELOP 27 bool "SELinux Development Support" !! 27 bool "NSA SELinux Development Support" 28 depends on SECURITY_SELINUX 28 depends on SECURITY_SELINUX 29 default y 29 default y 30 help 30 help 31 This enables the development support !! 31 This enables the development support option of NSA SELinux, 32 which is useful for experimenting wi 32 which is useful for experimenting with SELinux and developing 33 policies. If unsure, say Y. With t 33 policies. If unsure, say Y. With this option enabled, the 34 kernel will start in permissive mode 34 kernel will start in permissive mode (log everything, deny nothing) 35 unless you specify enforcing=1 on th 35 unless you specify enforcing=1 on the kernel command line. You 36 can interactively toggle the kernel 36 can interactively toggle the kernel between enforcing mode and 37 permissive mode (if permitted by the 37 permissive mode (if permitted by the policy) via 38 /sys/fs/selinux/enforce. 38 /sys/fs/selinux/enforce. 39 39 40 config SECURITY_SELINUX_AVC_STATS 40 config SECURITY_SELINUX_AVC_STATS 41 bool "SELinux AVC Statistics" !! 41 bool "NSA SELinux AVC Statistics" 42 depends on SECURITY_SELINUX 42 depends on SECURITY_SELINUX 43 default y 43 default y 44 help 44 help 45 This option collects access vector c 45 This option collects access vector cache statistics to 46 /sys/fs/selinux/avc/cache_stats, whi 46 /sys/fs/selinux/avc/cache_stats, which may be monitored via 47 tools such as avcstat. 47 tools such as avcstat. 48 48 49 config SECURITY_SELINUX_SIDTAB_HASH_BITS 49 config SECURITY_SELINUX_SIDTAB_HASH_BITS 50 int "SELinux sidtab hashtable size" !! 50 int "NSA SELinux sidtab hashtable size" 51 depends on SECURITY_SELINUX 51 depends on SECURITY_SELINUX 52 range 8 13 52 range 8 13 53 default 9 53 default 9 54 help 54 help 55 This option sets the number of bucke 55 This option sets the number of buckets used in the sidtab hashtable 56 to 2^SECURITY_SELINUX_SIDTAB_HASH_BI 56 to 2^SECURITY_SELINUX_SIDTAB_HASH_BITS buckets. The number of hash 57 collisions may be viewed at /sys/fs/ 57 collisions may be viewed at /sys/fs/selinux/ss/sidtab_hash_stats. If 58 chain lengths are high (e.g. > 20) t 58 chain lengths are high (e.g. > 20) then selecting a higher value here 59 will ensure that lookups times are s 59 will ensure that lookups times are short and stable. 60 60 61 config SECURITY_SELINUX_SID2STR_CACHE_SIZE 61 config SECURITY_SELINUX_SID2STR_CACHE_SIZE 62 int "SELinux SID to context string tra !! 62 int "NSA SELinux SID to context string translation cache size" 63 depends on SECURITY_SELINUX 63 depends on SECURITY_SELINUX 64 default 256 64 default 256 65 help 65 help 66 This option defines the size of the 66 This option defines the size of the internal SID -> context string 67 cache, which improves the performanc 67 cache, which improves the performance of context to string 68 conversion. Setting this option to 68 conversion. Setting this option to 0 disables the cache completely. 69 69 70 If unsure, keep the default value. 70 If unsure, keep the default value. 71 << 72 config SECURITY_SELINUX_DEBUG << 73 bool "SELinux kernel debugging support << 74 depends on SECURITY_SELINUX << 75 default n << 76 help << 77 This enables debugging code designed << 78 developers, unless you know what thi << 79 should leave this disabled. << 80 << 81 To fine control the messages to be p << 82 CONFIG_DYNAMIC_DEBUG and see << 83 Documentation/admin-guide/dynamic-de << 84 information. << 85 << 86 Example usage: << 87 << 88 echo -n 'file "security/selinu << 89 /proc/dynamic_debug/co <<
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.