[PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default/ usage

Thanks to Red Hat for them.
This commit is contained in:
greg@kroah.com 2004-04-17 00:23:17 -07:00 committed by Greg KH
parent 0e3dcb3dc6
commit b4eafd9467
3 changed files with 39 additions and 0 deletions

View file

@ -0,0 +1,11 @@
#!/bin/sh
if [ -f /etc/sysconfig/udev ]; then
. /etc/sysconfig/udev
fi
[ "$UDEV_DBUS" != "yes" ] && exit 0
if [ -x /usr/sbin/udev_dbus ]; then
exec /usr/sbin/udev_dbus "$@"
fi

View file

@ -0,0 +1,14 @@
#!/bin/sh
if [ -f /etc/sysconfig/udev ]; then
. /etc/sysconfig/udev
fi
[ "$UDEV_CONSOLE" != "yes" ] && exit 0
if [ -x /sbin/pam_console_setowner ]; then
if [ "$UDEV_LOG" = "yes" -a -x /usr/bin/logger ]; then
/usr/bin/logger -p auth.debug "Restoring console permissions for $DEVNAME"
fi
exec /sbin/pam_console_setowner $DEVNAME
fi

View file

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