]> git.hungrycats.org Git - linux/commit
[PATCH] selinux: add runtime disable
authorAndrew Morton <akpm@osdl.org>
Wed, 21 Apr 2004 00:43:53 +0000 (17:43 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Wed, 21 Apr 2004 00:43:53 +0000 (17:43 -0700)
commitc59f3ad7826ada93c3216d8bb0796997d3d16388
tree821a2feda3efba2cb82cb6f82636b617a9b0a679
parent77782961e520439fef9fa1506c9bdf901f6add37
[PATCH] selinux: add runtime disable

From: Stephen Smalley <sds@epoch.ncsc.mil>

This patch adds a kernel configuration option that enables writing to a new
selinuxfs node 'disable' that allows SELinux to be disabled at runtime prior
to initial policy load.  SELinux will then remain disabled until next boot.
This option is similar to the selinux=0 boot parameter, but is to support
runtime disabling of SELinux, e.g.  from /sbin/init, for portability across
platforms where boot parameters are difficult to employ (based on feedback by
Jeremy Katz).
security/selinux/Kconfig
security/selinux/hooks.c
security/selinux/selinuxfs.c