1 # SPDX-License-Identifier: GPL-2.0-only << 2 config SECURITY_SELINUX 1 config SECURITY_SELINUX 3 bool "SELinux Support" !! 2 bool "NSA SELinux Support" 4 depends on SECURITY_NETWORK && AUDIT & 3 depends on SECURITY_NETWORK && AUDIT && NET && INET 5 select NETWORK_SECMARK 4 select NETWORK_SECMARK 6 default n 5 default n 7 help 6 help 8 This selects Security-Enhanced Linux !! 7 This selects NSA Security-Enhanced Linux (SELinux). 9 You will also need a policy configur 8 You will also need a policy configuration and a labeled filesystem. 10 If you are unsure how to answer this 9 If you are unsure how to answer this question, answer N. 11 10 12 config SECURITY_SELINUX_BOOTPARAM 11 config SECURITY_SELINUX_BOOTPARAM 13 bool "SELinux boot parameter" !! 12 bool "NSA SELinux boot parameter" 14 depends on SECURITY_SELINUX 13 depends on SECURITY_SELINUX 15 default n 14 default n 16 help 15 help 17 This option adds a kernel parameter 16 This option adds a kernel parameter 'selinux', which allows SELinux 18 to be disabled at boot. If this opt 17 to be disabled at boot. If this option is selected, SELinux 19 functionality can be disabled with s 18 functionality can be disabled with selinux=0 on the kernel 20 command line. The purpose of this o 19 command line. The purpose of this option is to allow a single 21 kernel image to be distributed with 20 kernel image to be distributed with SELinux built in, but not 22 necessarily enabled. 21 necessarily enabled. 23 22 24 If you are unsure how to answer this 23 If you are unsure how to answer this question, answer N. 25 24 >> 25 config SECURITY_SELINUX_BOOTPARAM_VALUE >> 26 int "NSA SELinux boot parameter default value" >> 27 depends on SECURITY_SELINUX_BOOTPARAM >> 28 range 0 1 >> 29 default 1 >> 30 help >> 31 This option sets the default value for the kernel parameter >> 32 'selinux', which allows SELinux to be disabled at boot. If this >> 33 option is set to 0 (zero), the SELinux kernel parameter will >> 34 default to 0, disabling SELinux at bootup. If this option is >> 35 set to 1 (one), the SELinux kernel parameter will default to 1, >> 36 enabling SELinux at bootup. >> 37 >> 38 If you are unsure how to answer this question, answer 1. >> 39 >> 40 config SECURITY_SELINUX_DISABLE >> 41 bool "NSA SELinux runtime disable" >> 42 depends on SECURITY_SELINUX >> 43 default n >> 44 help >> 45 This option enables writing to a selinuxfs node 'disable', which >> 46 allows SELinux to be disabled at runtime prior to the policy load. >> 47 SELinux will then remain disabled until the next boot. >> 48 This option is similar to the selinux=0 boot parameter, but is to >> 49 support runtime disabling of SELinux, e.g. from /sbin/init, for >> 50 portability across platforms where boot parameters are difficult >> 51 to employ. >> 52 >> 53 If you are unsure how to answer this question, answer N. >> 54 26 config SECURITY_SELINUX_DEVELOP 55 config SECURITY_SELINUX_DEVELOP 27 bool "SELinux Development Support" !! 56 bool "NSA SELinux Development Support" 28 depends on SECURITY_SELINUX 57 depends on SECURITY_SELINUX 29 default y 58 default y 30 help 59 help 31 This enables the development support !! 60 This enables the development support option of NSA SELinux, 32 which is useful for experimenting wi 61 which is useful for experimenting with SELinux and developing 33 policies. If unsure, say Y. With t 62 policies. If unsure, say Y. With this option enabled, the 34 kernel will start in permissive mode 63 kernel will start in permissive mode (log everything, deny nothing) 35 unless you specify enforcing=1 on th 64 unless you specify enforcing=1 on the kernel command line. You 36 can interactively toggle the kernel 65 can interactively toggle the kernel between enforcing mode and 37 permissive mode (if permitted by the !! 66 permissive mode (if permitted by the policy) via /selinux/enforce. 38 /sys/fs/selinux/enforce. << 39 67 40 config SECURITY_SELINUX_AVC_STATS 68 config SECURITY_SELINUX_AVC_STATS 41 bool "SELinux AVC Statistics" !! 69 bool "NSA SELinux AVC Statistics" 42 depends on SECURITY_SELINUX 70 depends on SECURITY_SELINUX 43 default y 71 default y 44 help 72 help 45 This option collects access vector c 73 This option collects access vector cache statistics to 46 /sys/fs/selinux/avc/cache_stats, whi !! 74 /selinux/avc/cache_stats, which may be monitored via 47 tools such as avcstat. 75 tools such as avcstat. 48 76 49 config SECURITY_SELINUX_SIDTAB_HASH_BITS !! 77 config SECURITY_SELINUX_CHECKREQPROT_VALUE 50 int "SELinux sidtab hashtable size" !! 78 int "NSA SELinux checkreqprot default value" 51 depends on SECURITY_SELINUX << 52 range 8 13 << 53 default 9 << 54 help << 55 This option sets the number of bucke << 56 to 2^SECURITY_SELINUX_SIDTAB_HASH_BI << 57 collisions may be viewed at /sys/fs/ << 58 chain lengths are high (e.g. > 20) t << 59 will ensure that lookups times are s << 60 << 61 config SECURITY_SELINUX_SID2STR_CACHE_SIZE << 62 int "SELinux SID to context string tra << 63 depends on SECURITY_SELINUX 79 depends on SECURITY_SELINUX 64 default 256 !! 80 range 0 1 >> 81 default 0 65 help 82 help 66 This option defines the size of the !! 83 This option sets the default value for the 'checkreqprot' flag 67 cache, which improves the performanc !! 84 that determines whether SELinux checks the protection requested 68 conversion. Setting this option to !! 85 by the application or the protection that will be applied by the >> 86 kernel (including any implied execute for read-implies-exec) for >> 87 mmap and mprotect calls. If this option is set to 0 (zero), >> 88 SELinux will default to checking the protection that will be applied >> 89 by the kernel. If this option is set to 1 (one), SELinux will >> 90 default to checking the protection requested by the application. >> 91 The checkreqprot flag may be changed from the default via the >> 92 'checkreqprot=' boot parameter. It may also be changed at runtime >> 93 via /selinux/checkreqprot if authorized by policy. 69 94 70 If unsure, keep the default value. !! 95 If you are unsure how to answer this question, answer 0. 71 96 72 config SECURITY_SELINUX_DEBUG !! 97 config SECURITY_SELINUX_POLICYDB_VERSION_MAX 73 bool "SELinux kernel debugging support !! 98 bool "NSA SELinux maximum supported policy format version" 74 depends on SECURITY_SELINUX 99 depends on SECURITY_SELINUX 75 default n 100 default n 76 help 101 help 77 This enables debugging code designed !! 102 This option enables the maximum policy format version supported 78 developers, unless you know what thi !! 103 by SELinux to be set to a particular value. This value is reported 79 should leave this disabled. !! 104 to userspace via /selinux/policyvers and used at policy load time. 80 !! 105 It can be adjusted downward to support legacy userland (init) that 81 To fine control the messages to be p !! 106 does not correctly handle kernels that support newer policy versions. 82 CONFIG_DYNAMIC_DEBUG and see !! 107 83 Documentation/admin-guide/dynamic-de !! 108 Examples: 84 information. !! 109 For the Fedora Core 3 or 4 Linux distributions, enable this option >> 110 and set the value via the next option. For Fedora Core 5 and later, >> 111 do not enable this option. >> 112 >> 113 If you are unsure how to answer this question, answer N. 85 114 86 Example usage: !! 115 config SECURITY_SELINUX_POLICYDB_VERSION_MAX_VALUE >> 116 int "NSA SELinux maximum supported policy format version value" >> 117 depends on SECURITY_SELINUX_POLICYDB_VERSION_MAX >> 118 range 15 23 >> 119 default 19 >> 120 help >> 121 This option sets the value for the maximum policy format version >> 122 supported by SELinux. >> 123 >> 124 Examples: >> 125 For Fedora Core 3, use 18. >> 126 For Fedora Core 4, use 19. >> 127 >> 128 If you are unsure how to answer this question, look for the >> 129 policy format version supported by your policy toolchain, by >> 130 running 'checkpolicy -V'. Or look at what policy you have >> 131 installed under /etc/selinux/$SELINUXTYPE/policy, where >> 132 SELINUXTYPE is defined in your /etc/selinux/config. 87 133 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.