[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
RE: mount point labels
- From: Stephen Smalley <sds tycho nsa gov>
- To: Forrest Taylor <ftaylor redhat com>
- Cc: Eric Paris <eparis parisplace org>, Daniel J Walsh <dwalsh redhat com>, Fedora SELinux List <fedora-selinux-list redhat com>
- Subject: RE: mount point labels
- Date: Wed, 02 May 2007 08:19:19 -0400
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.
--
Stephen Smalley
National Security Agency
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]