From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: Stephen Smalley <sds@epoch.ncsc.mil>
Cc: Erich Schubert <erich@debian.org>, SE-Linux <selinux@tycho.nsa.gov>
Subject: Re: udev and .dev...
Date: Thu, 29 Jul 2004 21:37:24 +0100 [thread overview]
Message-ID: <20040729203724.GL9950@lkcl.net> (raw)
In-Reply-To: <1091120582.21971.119.camel@moss-spartans.epoch.ncsc.mil>
On Thu, Jul 29, 2004 at 01:03:02PM -0400, Stephen Smalley wrote:
> On Thu, 2004-07-29 at 11:09, Erich Schubert wrote:
> > This sounds like relabling hell :-) "make relabel" might even skip /.dev
> > because it doesn't know the file system.
> > You can't use "make relabel" to persistently fix labels on /dev.
> > I don't know enough about automatic labelling by selinux. Maybe you'll
> > need a udev which reads the file_contexts file. :-(
> > (or a similar specification file)
>
> I think in Fedora, udev is presently set up to invoke restorecon, which
> uses the matchpathcon() function to obtain the proper context from the
> file_contexts configuration and then relabels the device node to that
> context. There was a patch to udev to directly call matchpathcon() and
> use setfscreatecon() to directly create the device node in the proper
> context, but that seems to have been dropped.
the little program - udev_selinux - uses setfilecon not setfscreatecon.
it's a separate program, similar to restorecon in fact it is
likely to be the same.
it's run post-thingy. post-create.
also, symlinks aren't covered / managed / created.
looks like a proper job's needed.
l.
--
This message was distributed to subscribers of the selinux mailing list.
If you no longer wish to subscribe, send mail to majordomo@tycho.nsa.gov with
the words "unsubscribe selinux" without quotes as the message.
next prev parent reply other threads:[~2004-07-29 20:26 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-07-29 9:14 udev and .dev Luke Kenneth Casson Leighton
2004-07-29 12:32 ` Joshua Brindle
2004-07-29 14:01 ` Luke Kenneth Casson Leighton
2004-07-29 14:14 ` Ian Campbell
2004-07-29 20:15 ` Luke Kenneth Casson Leighton
2004-07-29 15:09 ` Erich Schubert
2004-07-29 17:03 ` Stephen Smalley
2004-07-29 20:37 ` Luke Kenneth Casson Leighton [this message]
2004-07-29 20:13 ` Luke Kenneth Casson Leighton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040729203724.GL9950@lkcl.net \
--to=lkcl@lkcl.net \
--cc=erich@debian.org \
--cc=sds@epoch.ncsc.mil \
--cc=selinux@tycho.nsa.gov \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.