chiark / gitweb /
[PATCH] add dbus.dev, pam_console.dev and selinux.dev files for /etc/dev.d/default...
[elogind.git] / etc / dev.d / default / selinux.dev
1 #!/bin/sh
2
3 if [ -f /etc/sysconfig/udev ]; then
4         . /etc/sysconfig/udev
5 fi
6
7 [ "$UDEV_SELINUX" != "yes" ] && exit 0
8
9 if [ -x /sbin/restorecon ]; then
10         if [ "$UDEV_LOG" = "yes" -a -x /usr/bin/logger ]; then
11                 /usr/bin/logger -p auth.debug "Restoring file security contexts for $DEVNAME"
12         fi
13         /sbin/restorecon $DEVNAME
14 fi