SELINUX: add /sys/fs/selinux mount point to put selinuxfs
commit7a627e3b9a2bd0f06945bbe64bcf403e788ecf6e
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 22:34:16 +0000 (10 15:34 -0700)
committerEric Paris <eparis@redhat.com>
Wed, 11 May 2011 16:58:09 +0000 (11 12:58 -0400)
tree5d79dfee7868debdf428640477adce32be10968f
parent2875fa00830be62431f5ac22d8f85d57f9fa3033
SELINUX: add /sys/fs/selinux mount point to put selinuxfs

In the interest of keeping userspace from having to create new root
filesystems all the time, let's follow the lead of the other in-kernel
filesystems and provide a proper mount point for it in sysfs.

For selinuxfs, this mount point should be in /sys/fs/selinux/

Cc: Stephen Smalley <sds@tycho.nsa.gov>
Cc: James Morris <jmorris@namei.org>
Cc: Eric Paris <eparis@parisplace.org>
Cc: Lennart Poettering <mzerqung@0pointer.de>
Cc: Daniel J Walsh <dwalsh@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
[include kobject.h - Eric Paris]
[use selinuxfs_obj throughout - Eric Paris]
Signed-off-by: Eric Paris <eparis@redhat.com>
security/selinux/selinuxfs.c