patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / security / selinux / Kconfig
1 config SECURITY_SELINUX
2         bool "NSA SELinux Support"
3         depends on SECURITY && NET
4         default n
5         help
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.
12
13 config SECURITY_SELINUX_BOOTPARAM
14         bool "NSA SELinux boot parameter"
15         depends on SECURITY_SELINUX
16         default n
17         help
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
23           necessarily enabled.
24
25           If you are unsure how to answer this question, answer N.
26
27 config SECURITY_SELINUX_DISABLE
28         bool "NSA SELinux runtime disable"
29         depends on SECURITY_SELINUX
30         default n
31         help
32           This option enables writing to a selinuxfs node 'disable', which
33           allows SELinux to be disabled at runtime prior to the policy load.
34           SELinux will then remain disabled until the next boot.
35           This option is similar to the selinux=0 boot parameter, but is to
36           support runtime disabling of SELinux, e.g. from /sbin/init, for
37           portability across platforms where boot parameters are difficult
38           to employ.
39
40           If you are unsure how to answer this question, answer N.
41
42 config SECURITY_SELINUX_DEVELOP
43         bool "NSA SELinux Development Support"
44         depends on SECURITY_SELINUX
45         default y
46         help
47           This enables the development support option of NSA SELinux,
48           which is useful for experimenting with SELinux and developing
49           policies.  If unsure, say Y.  With this option enabled, the
50           kernel will start in permissive mode (log everything, deny nothing)
51           unless you specify enforcing=1 on the kernel command line.  You
52           can interactively toggle the kernel between enforcing mode and
53           permissive mode (if permitted by the policy) via /selinux/enforce.
54
55 config SECURITY_SELINUX_MLS
56         bool "NSA SELinux MLS policy (EXPERIMENTAL)"
57         depends on SECURITY_SELINUX && EXPERIMENTAL
58         default n
59         help
60           This enables the NSA SELinux Multi-Level Security (MLS) policy in
61           addition to the default RBAC/TE policy.  This policy is
62           experimental and has not been configured for use.  Unless you
63           specifically want to experiment with MLS, say N.