[PATCH] selinux: Clear selinux_enabled flag upon runtime disable.
authorStephen Smalley <sds@tycho.nsa.gov>
Wed, 3 May 2006 14:52:36 +0000 (10:52 -0400)
committerLinus Torvalds <torvalds@g5.osdl.org>
Wed, 3 May 2006 17:08:11 +0000 (10:08 -0700)
commit30d55280b867aa0cae99f836ad0181bb0bf8f9cb
tree8df537addd3709f36f24dbd654662568b79ca943
parente17df688f7064dae1417ce425dd1e4b71d24d63b
[PATCH] selinux: Clear selinux_enabled flag upon runtime disable.

Clear selinux_enabled flag upon runtime disable of SELinux by userspace,
and make sure it is defined even if selinux= boot parameter support is
not enabled in configuration.

Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
Acked-by: James Morris <jmorris@namei.org>
Tested-by: Jon Smirl <jonsmirl@gmail.com>
Acked-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
security/selinux/hooks.c
security/selinux/include/security.h