mount point labels
Stephen Smalley
sds at tycho.nsa.gov
Mon Sep 14 17:46:01 UTC 2009
On Wed, 2007-05-02 at 08:19 -0400, Stephen Smalley wrote:
> On Wed, 2007-05-02 at 07:29 -0400, Stephen Smalley wrote:
> > On Tue, 2007-05-01 at 14:34 -0600, Forrest Taylor wrote:
> > > On Tue, 2007-05-01 at 12:42 -0400, Stephen Smalley wrote:
> > > > > By the way, can mount point labels be applied to automounted file
> > > > > systems? If so, how would I do that? Would I put the label into the
> > > > > automount file (auto.*) in the /etc directory?
> > > >
> > > > You can specify mount options in your automounter maps (like
> > > > auto.master), so you should be able to specify a context= option there
> > > > too. I haven't specifically tried it though.
> > >
> > > I cannot get this to work in RHEL5. It complains if I have it in
> > > auto.master (syntax error), so I tried to place an entry in auto.misc
> > > (for /misc). It will mount, but not with the context that I specified.
> > > The logs mention that it is using genfs_contexts.
> > >
> > > Looking at the mounts, I see that the options for the autofs mount point
> > > include: context=""
> > >
> > > So, the options are not getting passed to the mount command, or are
> > > being overridden by automount. Any other ideas?
> >
> > File a bug against autofs?
>
> The man page for auto.master says that any remaining command line
> arguments without leading dashes after the map name are taken as options
> (-o) to mount. So it seems like a bug if it doesn't pass through the
> context= option properly.
Anyone know if this got fixed in RHEL?
--
Stephen Smalley
National Security Agency
More information about the selinux
mailing list