linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [patch] udev-selinux: restores file security context and sets mode in matchpathcon
@ 2004-08-03 15:26 Luke Kenneth Casson Leighton
  2004-08-04  9:33 ` [patch] udev-selinux: restores file security context and sets Hannes Reinecke
  0 siblings, 1 reply; 3+ messages in thread
From: Luke Kenneth Casson Leighton @ 2004-08-03 15:26 UTC (permalink / raw)
  To: SE-Linux, Linux Hotplug Dev List

okay, updated.

this is an experimental patch.

- records former security context
- assumes any file creates (directories, symlinks, nodes) are hunky-dory
  and going to be the only file creates
- restores former security context.

matchpathcon mode on:

- directories (for the mkdirs) uses S_IFDIR
- inodes (for the mknod) uses the mode passed in.
- symlinks uses S_IFDIR


the reason for using this patch is because of speed:
if matchpathcon is used in the same process, the lookups etc.
are cached.

a reason for _not_ using this patch is for a udev in initrd
where the smaller klibc is used.  it would be necessary to add
rexeg to klibc and to compile a special libselinux1 with it.

if you do not intend to put udev into an initrd, this patch is
perfectly acceptable for use.

l.



-------------------------------------------------------
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-08-04 11:09 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-08-03 15:26 [patch] udev-selinux: restores file security context and sets mode in matchpathcon Luke Kenneth Casson Leighton
2004-08-04  9:33 ` [patch] udev-selinux: restores file security context and sets Hannes Reinecke
2004-08-04 11:09   ` [patch] udev-selinux: restores file security context and sets mode in matchpathcon Luke Kenneth Casson Leighton

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).