[systemd-devel] [PATCH] SELINUX: add /sys/fs/selinux mount point to put selinuxfs

Greg KH greg at kroah.com
Wed May 11 09:43:02 PDT 2011


On Wed, May 11, 2011 at 12:35:24PM -0400, Eric Paris wrote:
> On Tue, May 10, 2011 at 6:34 PM, Greg KH <greg at kroah.com> wrote:
> >
> > From: Greg Kroah-Hartman <gregkh at suse.de>
> >
> > 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 at tycho.nsa.gov>
> > Cc: James Morris <jmorris at namei.org>
> > Cc: Eric Paris <eparis at parisplace.org>
> > Cc: Lennart Poettering <mzerqung at 0pointer.de>
> > Cc: Daniel J Walsh <dwalsh at redhat.com>
> > Signed-off-by: Greg Kroah-Hartman <gregkh at suse.de>
> 
> security/selinux/selinuxfs.c: In function ‘init_sel_fs’:
> security/selinux/selinuxfs.c:1909: error: ‘selinux_kobj’ undeclared
> (first use in this function)
> security/selinux/selinuxfs.c:1909: error: (Each undeclared identifier
> is reported only once
> security/selinux/selinuxfs.c:1909: error: for each function it appears in.)
> security/selinux/selinuxfs.c: In function ‘exit_sel_fs’:
> security/selinux/selinuxfs.c:1934: error: implicit declaration of
> function ‘kobjext_put’
> security/selinux/selinuxfs.c:1934: error: ‘selinux_kobj’ undeclared
> (first use in this function)
> make[2]: *** [security/selinux/selinuxfs.o] Error 1
> make[2]: *** Waiting for unfinished jobs....

Hey, I said I hadn't tested it :)

Which wasn't a good idea, I'll enable selinux and fix up the stupid
typos and resend it later today, thanks for testing this and sorry for
the noise.

greg k-h


More information about the systemd-devel mailing list