1 config SECURITY_SELINUX
2 bool "NSA SELinux Support"
3 depends on SECURITY && NET
6 This selects NSA Security-Enhanced Linux (SELinux).
7 You will also need a policy configuration and a labeled filesystem.
8 You can obtain the policy compiler (checkpolicy), the utility for
9 labeling filesystems (setfiles), and an example policy configuration
10 from <http://www.nsa.gov/selinux/>.
11 If you are unsure how to answer this question, answer N.
13 config SECURITY_SELINUX_BOOTPARAM
14 bool "NSA SELinux boot parameter"
15 depends on SECURITY_SELINUX
18 This option adds a kernel parameter 'selinux', which allows SELinux
19 to be disabled at boot. If this option is selected, SELinux
20 functionality can be disabled with selinux=0 on the kernel
21 command line. The purpose of this option is to allow a single
22 kernel image to be distributed with SELinux built in, but not
25 If you are unsure how to answer this question, answer N.
27 config SECURITY_SELINUX_BOOTPARAM_VALUE
28 int "NSA SELinux boot parameter default value"
29 depends on SECURITY_SELINUX_BOOTPARAM
33 This option sets the default value for the kernel parameter
34 'selinux', which allows SELinux to be disabled at boot. If this
35 option is set to 0 (zero), the SELinux kernel parameter will
36 default to 0, disabling SELinux at bootup. If this option is
37 set to 1 (one), the SELinux kernel paramater will default to 1,
38 enabling SELinux at bootup.
40 If you are unsure how to answer this question, answer 1.
42 config SECURITY_SELINUX_DISABLE
43 bool "NSA SELinux runtime disable"
44 depends on SECURITY_SELINUX
47 This option enables writing to a selinuxfs node 'disable', which
48 allows SELinux to be disabled at runtime prior to the policy load.
49 SELinux will then remain disabled until the next boot.
50 This option is similar to the selinux=0 boot parameter, but is to
51 support runtime disabling of SELinux, e.g. from /sbin/init, for
52 portability across platforms where boot parameters are difficult
55 If you are unsure how to answer this question, answer N.
57 config SECURITY_SELINUX_DEVELOP
58 bool "NSA SELinux Development Support"
59 depends on SECURITY_SELINUX
62 This enables the development support option of NSA SELinux,
63 which is useful for experimenting with SELinux and developing
64 policies. If unsure, say Y. With this option enabled, the
65 kernel will start in permissive mode (log everything, deny nothing)
66 unless you specify enforcing=1 on the kernel command line. You
67 can interactively toggle the kernel between enforcing mode and
68 permissive mode (if permitted by the policy) via /selinux/enforce.
70 config SECURITY_SELINUX_AVC_STATS
71 bool "NSA SELinux AVC Statistics"
72 depends on SECURITY_SELINUX
75 This option collects access vector cache statistics to
76 /selinux/avc/cache_stats, which may be monitored via
77 tools such as avcstat.
79 config SECURITY_SELINUX_MLS
80 bool "NSA SELinux MLS policy (EXPERIMENTAL)"
81 depends on SECURITY_SELINUX && EXPERIMENTAL
84 This enables the NSA SELinux Multi-Level Security (MLS) policy in
85 addition to the default RBAC/TE policy. This policy is
86 experimental and has not been configured for use. Unless you
87 specifically want to experiment with MLS, say N.