]> git.baikalelectronics.ru Git - kernel.git/commit
SELINUX: add /sys/fs/selinux mount point to put selinuxfs
authorGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 May 2011 22:34:16 +0000 (15:34 -0700)
committerEric Paris <eparis@redhat.com>
Wed, 11 May 2011 16:58:09 +0000 (12:58 -0400)
commitf7a4da19a99987256daa18b4ef796449ca9634f8
tree5d79dfee7868debdf428640477adce32be10968f
parenta39dc2f5abe9ffe5d683d4f1a0c6d81c868eee00
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