]> git.neil.brown.name Git - history.git/commit
[PATCH] Enable SELinux via boot parameter
authorAndrew Morton <akpm@osdl.org>
Wed, 3 Sep 2003 18:13:22 +0000 (11:13 -0700)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 3 Sep 2003 18:13:22 +0000 (11:13 -0700)
commitde4716fd280392a1f4f5dcad6faf10a55461567d
treeed37ab05307a88f1e5ac08fa49eab12629ff53a8
parent046dbb49a01786e2c7dd1432c15f76f66385e264
[PATCH] Enable SELinux via boot parameter

From: James Morris <jmorris@redhat.com>

This patch adds an 'selinux' boot parameter which must be used to actually
enable SELinux.

It follows some internal discussion about deployment issues, where a vendor
would want to ship a single kernel image with SELinux built-in, without
requiring the user to use it.

Without specifying selinux=1 as a boot parameter, SELinux will not register
with LSM and selinuxfs will not be registered as a filesystem.  This causes
SELinux to be bypassed entirely from then on, and no performance overhead
is imposed.  Other security modules may then also be loaded if needed.
security/selinux/Kconfig
security/selinux/hooks.c
security/selinux/selinuxfs.c