11da177e4SLinus Torvaldsconfig SECURITY_SELINUX 21da177e4SLinus Torvalds bool "NSA SELinux Support" 3*99f6d61bSStephen Smalley depends on SECURITY_NETWORK && AUDIT && NET && INET 41da177e4SLinus Torvalds default n 51da177e4SLinus Torvalds help 61da177e4SLinus Torvalds This selects NSA Security-Enhanced Linux (SELinux). 71da177e4SLinus Torvalds You will also need a policy configuration and a labeled filesystem. 81da177e4SLinus Torvalds You can obtain the policy compiler (checkpolicy), the utility for 91da177e4SLinus Torvalds labeling filesystems (setfiles), and an example policy configuration 101da177e4SLinus Torvalds from <http://www.nsa.gov/selinux/>. 111da177e4SLinus Torvalds If you are unsure how to answer this question, answer N. 121da177e4SLinus Torvalds 131da177e4SLinus Torvaldsconfig SECURITY_SELINUX_BOOTPARAM 141da177e4SLinus Torvalds bool "NSA SELinux boot parameter" 151da177e4SLinus Torvalds depends on SECURITY_SELINUX 161da177e4SLinus Torvalds default n 171da177e4SLinus Torvalds help 181da177e4SLinus Torvalds This option adds a kernel parameter 'selinux', which allows SELinux 191da177e4SLinus Torvalds to be disabled at boot. If this option is selected, SELinux 201da177e4SLinus Torvalds functionality can be disabled with selinux=0 on the kernel 211da177e4SLinus Torvalds command line. The purpose of this option is to allow a single 221da177e4SLinus Torvalds kernel image to be distributed with SELinux built in, but not 231da177e4SLinus Torvalds necessarily enabled. 241da177e4SLinus Torvalds 251da177e4SLinus Torvalds If you are unsure how to answer this question, answer N. 261da177e4SLinus Torvalds 271da177e4SLinus Torvaldsconfig SECURITY_SELINUX_BOOTPARAM_VALUE 281da177e4SLinus Torvalds int "NSA SELinux boot parameter default value" 291da177e4SLinus Torvalds depends on SECURITY_SELINUX_BOOTPARAM 301da177e4SLinus Torvalds range 0 1 311da177e4SLinus Torvalds default 1 321da177e4SLinus Torvalds help 331da177e4SLinus Torvalds This option sets the default value for the kernel parameter 341da177e4SLinus Torvalds 'selinux', which allows SELinux to be disabled at boot. If this 351da177e4SLinus Torvalds option is set to 0 (zero), the SELinux kernel parameter will 361da177e4SLinus Torvalds default to 0, disabling SELinux at bootup. If this option is 371da177e4SLinus Torvalds set to 1 (one), the SELinux kernel parameter will default to 1, 381da177e4SLinus Torvalds enabling SELinux at bootup. 391da177e4SLinus Torvalds 401da177e4SLinus Torvalds If you are unsure how to answer this question, answer 1. 411da177e4SLinus Torvalds 421da177e4SLinus Torvaldsconfig SECURITY_SELINUX_DISABLE 431da177e4SLinus Torvalds bool "NSA SELinux runtime disable" 441da177e4SLinus Torvalds depends on SECURITY_SELINUX 451da177e4SLinus Torvalds default n 461da177e4SLinus Torvalds help 471da177e4SLinus Torvalds This option enables writing to a selinuxfs node 'disable', which 481da177e4SLinus Torvalds allows SELinux to be disabled at runtime prior to the policy load. 491da177e4SLinus Torvalds SELinux will then remain disabled until the next boot. 501da177e4SLinus Torvalds This option is similar to the selinux=0 boot parameter, but is to 511da177e4SLinus Torvalds support runtime disabling of SELinux, e.g. from /sbin/init, for 521da177e4SLinus Torvalds portability across platforms where boot parameters are difficult 531da177e4SLinus Torvalds to employ. 541da177e4SLinus Torvalds 551da177e4SLinus Torvalds If you are unsure how to answer this question, answer N. 561da177e4SLinus Torvalds 571da177e4SLinus Torvaldsconfig SECURITY_SELINUX_DEVELOP 581da177e4SLinus Torvalds bool "NSA SELinux Development Support" 591da177e4SLinus Torvalds depends on SECURITY_SELINUX 601da177e4SLinus Torvalds default y 611da177e4SLinus Torvalds help 621da177e4SLinus Torvalds This enables the development support option of NSA SELinux, 631da177e4SLinus Torvalds which is useful for experimenting with SELinux and developing 641da177e4SLinus Torvalds policies. If unsure, say Y. With this option enabled, the 651da177e4SLinus Torvalds kernel will start in permissive mode (log everything, deny nothing) 661da177e4SLinus Torvalds unless you specify enforcing=1 on the kernel command line. You 671da177e4SLinus Torvalds can interactively toggle the kernel between enforcing mode and 681da177e4SLinus Torvalds permissive mode (if permitted by the policy) via /selinux/enforce. 691da177e4SLinus Torvalds 701da177e4SLinus Torvaldsconfig SECURITY_SELINUX_AVC_STATS 711da177e4SLinus Torvalds bool "NSA SELinux AVC Statistics" 721da177e4SLinus Torvalds depends on SECURITY_SELINUX 731da177e4SLinus Torvalds default y 741da177e4SLinus Torvalds help 751da177e4SLinus Torvalds This option collects access vector cache statistics to 761da177e4SLinus Torvalds /selinux/avc/cache_stats, which may be monitored via 771da177e4SLinus Torvalds tools such as avcstat. 781da177e4SLinus Torvalds 791da177e4SLinus Torvaldsconfig SECURITY_SELINUX_CHECKREQPROT_VALUE 801da177e4SLinus Torvalds int "NSA SELinux checkreqprot default value" 811da177e4SLinus Torvalds depends on SECURITY_SELINUX 821da177e4SLinus Torvalds range 0 1 831da177e4SLinus Torvalds default 1 841da177e4SLinus Torvalds help 851da177e4SLinus Torvalds This option sets the default value for the 'checkreqprot' flag 861da177e4SLinus Torvalds that determines whether SELinux checks the protection requested 871da177e4SLinus Torvalds by the application or the protection that will be applied by the 881da177e4SLinus Torvalds kernel (including any implied execute for read-implies-exec) for 891da177e4SLinus Torvalds mmap and mprotect calls. If this option is set to 0 (zero), 901da177e4SLinus Torvalds SELinux will default to checking the protection that will be applied 911da177e4SLinus Torvalds by the kernel. If this option is set to 1 (one), SELinux will 921da177e4SLinus Torvalds default to checking the protection requested by the application. 931da177e4SLinus Torvalds The checkreqprot flag may be changed from the default via the 941da177e4SLinus Torvalds 'checkreqprot=' boot parameter. It may also be changed at runtime 951da177e4SLinus Torvalds via /selinux/checkreqprot if authorized by policy. 961da177e4SLinus Torvalds 971da177e4SLinus Torvalds If you are unsure how to answer this question, answer 1. 98