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