1 config SECURITY_SELINUX
2 bool "NSA SELinux Support"
3 depends on SECURITY_NETWORK && AUDIT && NET && INET
7 This selects NSA Security-Enhanced Linux (SELinux).
8 You will also need a policy configuration and a labeled filesystem.
9 You can obtain the policy compiler (checkpolicy), the utility for
10 labeling filesystems (setfiles), and an example policy configuration
11 from <http://www.nsa.gov/selinux/>.
12 If you are unsure how to answer this question, answer N.
14 config SECURITY_SELINUX_BOOTPARAM
15 bool "NSA SELinux boot parameter"
16 depends on SECURITY_SELINUX
19 This option adds a kernel parameter 'selinux', which allows SELinux
20 to be disabled at boot. If this option is selected, SELinux
21 functionality can be disabled with selinux=0 on the kernel
22 command line. The purpose of this option is to allow a single
23 kernel image to be distributed with SELinux built in, but not
26 If you are unsure how to answer this question, answer N.
28 config SECURITY_SELINUX_BOOTPARAM_VALUE
29 int "NSA SELinux boot parameter default value"
30 depends on SECURITY_SELINUX_BOOTPARAM
34 This option sets the default value for the kernel parameter
35 'selinux', which allows SELinux to be disabled at boot. If this
36 option is set to 0 (zero), the SELinux kernel parameter will
37 default to 0, disabling SELinux at bootup. If this option is
38 set to 1 (one), the SELinux kernel parameter will default to 1,
39 enabling SELinux at bootup.
41 If you are unsure how to answer this question, answer 1.
43 config SECURITY_SELINUX_DISABLE
44 bool "NSA SELinux runtime disable"
45 depends on SECURITY_SELINUX
48 This option enables writing to a selinuxfs node 'disable', which
49 allows SELinux to be disabled at runtime prior to the policy load.
50 SELinux will then remain disabled until the next boot.
51 This option is similar to the selinux=0 boot parameter, but is to
52 support runtime disabling of SELinux, e.g. from /sbin/init, for
53 portability across platforms where boot parameters are difficult
56 If you are unsure how to answer this question, answer N.
58 config SECURITY_SELINUX_DEVELOP
59 bool "NSA SELinux Development Support"
60 depends on SECURITY_SELINUX
63 This enables the development support option of NSA SELinux,
64 which is useful for experimenting with SELinux and developing
65 policies. If unsure, say Y. With this option enabled, the
66 kernel will start in permissive mode (log everything, deny nothing)
67 unless you specify enforcing=1 on the kernel command line. You
68 can interactively toggle the kernel between enforcing mode and
69 permissive mode (if permitted by the policy) via /selinux/enforce.
71 config SECURITY_SELINUX_AVC_STATS
72 bool "NSA SELinux AVC Statistics"
73 depends on SECURITY_SELINUX
76 This option collects access vector cache statistics to
77 /selinux/avc/cache_stats, which may be monitored via
78 tools such as avcstat.
80 config SECURITY_SELINUX_CHECKREQPROT_VALUE
81 int "NSA SELinux checkreqprot default value"
82 depends on SECURITY_SELINUX
86 This option sets the default value for the 'checkreqprot' flag
87 that determines whether SELinux checks the protection requested
88 by the application or the protection that will be applied by the
89 kernel (including any implied execute for read-implies-exec) for
90 mmap and mprotect calls. If this option is set to 0 (zero),
91 SELinux will default to checking the protection that will be applied
92 by the kernel. If this option is set to 1 (one), SELinux will
93 default to checking the protection requested by the application.
94 The checkreqprot flag may be changed from the default via the
95 'checkreqprot=' boot parameter. It may also be changed at runtime
96 via /selinux/checkreqprot if authorized by policy.
98 If you are unsure how to answer this question, answer 1.
100 config SECURITY_SELINUX_ENABLE_SECMARK_DEFAULT
101 bool "NSA SELinux enable new secmark network controls by default"
102 depends on SECURITY_SELINUX
105 This option determines whether the new secmark-based network
106 controls will be enabled by default. If not, the old internal
107 per-packet controls will be enabled by default, preserving
110 If you enable the new controls, you will need updated
111 SELinux userspace libraries, tools and policy. Typically,
112 your distribution will provide these and enable the new controls
113 in the kernel they also distribute.
115 Note that this option can be overriden at boot with the
116 selinux_compat_net parameter, and after boot via
117 /selinux/compat_net. See Documentation/kernel-parameters.txt
118 for details on this parameter.
120 If you enable the new network controls, you will likely
121 also require the SECMARK and CONNSECMARK targets, as
122 well as any conntrack helpers for protocols which you
125 If you are unsure what do do here, select N.