From: Luke Kenneth Casson Leighton <lkcl@lkcl.net>
To: linux-hotplug-devel@lists.sourceforge.net,
SE-Linux <selinux@tycho.nsa.gov>
Subject: hotplug 0.030 not setting selinux permissions on /dev/tty*
Date: Sun, 01 Aug 2004 15:50:34 +0000 [thread overview]
Message-ID: <20040801160019.GC15949@lkcl.net> (raw)
hi there,
i've got udev up-and-running, with an selinux kernel 2.6.7.
i've added se-linux temporary attributes to tmpfs in order for
the tmpfs /dev to "remember" the selinux settings that udev would
make (without the patch, it's guaranteed to fail).
[see http://hands.com/~lkcl/selinux/2.6.6]
the issue is that i am not seeing any execution of
/etc/dev.d/default/selinux.dev on /dev/tty[absolutelyanything].
so as a temporary hack i am going to have to do a manual restorecon
or a setfiles /etc/selinux/src/file_contexts/file_contexts /dev.
which defeats the object of having the /etc/dev.d/default/selinux.dev
stuff in the first place.
i really don't know enough about the operation of udev to say where
the creation of /dev/tty1, /dev/tty2 etc etc etc are coming from,
or why /etc/dev.d/default/selinux.dev would not be called.
does anyone know why?
what is going on: /dev/tty1...N are all in /dev/.udev.tdb, and
they are all created in /dev, so... why wouldn't they have the
permissions set?
could it be because.... they are copied from somewhere else?
e.g. the initrd scripts?
i am at a loss.
l.
--
--
Information I post is with honesty, integrity, and the expectation that
you will take full responsibility if acting on the information contained,
and that, should you find it to be flawed or even mildly useful, you
will act with both honesty and integrity in return - and tell me.
--
<a href="http://lkcl.net"> lkcl.net </a> <br />
<a href="mailto:lkcl@lkcl.net"> lkcl@lkcl.net </a> <br />
-------------------------------------------------------
This SF.Net email is sponsored by OSTG. Have you noticed the changes on
Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now,
one more big change to announce. We are now OSTG- Open Source Technology
Group. Come see the changes on the new OSTG site. www.ostg.com
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2004-08-01 15:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-01 15:50 Luke Kenneth Casson Leighton [this message]
2004-08-01 16:44 ` hotplug 0.030 not setting selinux permissions on /dev/tty* Luke Kenneth Casson Leighton
2004-08-01 19:32 ` Erich Schubert
2004-08-02 8:48 ` Russell Coker
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=20040801160019.GC15949@lkcl.net \
--to=lkcl@lkcl.net \
--cc=linux-hotplug-devel@lists.sourceforge.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).