mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-03-05 19:58:30 +07:00
[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:
parent
0e3dcb3dc6
commit
b4eafd9467
11
etc/dev.d/default/dbus.dev
Normal file
11
etc/dev.d/default/dbus.dev
Normal 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
|
14
etc/dev.d/default/pam_console.dev
Normal file
14
etc/dev.d/default/pam_console.dev
Normal 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
|
14
etc/dev.d/default/selinux.dev
Normal file
14
etc/dev.d/default/selinux.dev
Normal 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
|
Loading…
Reference in New Issue
Block a user