diff options
author | greg@kroah.com <greg@kroah.com> | 2004-04-17 00:23:17 -0700 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:35:15 -0700 |
commit | b4eafd94677a12f1dc3d6cade21cece0fd858339 (patch) | |
tree | 252f1ad57dab506c01afe28a3ddbf7f9955d0337 /etc/dev.d/default/selinux.dev | |
parent | 0e3dcb3dc6f4aab5625e033a112a5e03703b87b9 (diff) |
[PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default/ usage
Thanks to Red Hat for them.
Diffstat (limited to 'etc/dev.d/default/selinux.dev')
-rw-r--r-- | etc/dev.d/default/selinux.dev | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/etc/dev.d/default/selinux.dev b/etc/dev.d/default/selinux.dev new file mode 100644 index 0000000000..f168eefc42 --- /dev/null +++ b/etc/dev.d/default/selinux.dev @@ -0,0 +1,14 @@ +#!/bin/sh + +if [ -f /etc/sysconfig/udev ]; then + . /etc/sysconfig/udev +fi + +[ "$UDEV_SELINUX" != "yes" ] && exit 0 + +if [ -x /sbin/restorecon ]; then + if [ "$UDEV_LOG" = "yes" -a -x /usr/bin/logger ]; then + /usr/bin/logger -p auth.debug "Restoring file security contexts for $DEVNAME" + fi + /sbin/restorecon $DEVNAME +fi |