autofs-5.0.1 - add restorecon for autofs misc device From: Ian Kent <raven@themaw.net> Add a restorecon for the autofs misc device. --- redhat/autofs.init.in | 3 +++ samples/rc.autofs.in | 3 +++ 2 files changed, 6 insertions(+) --- autofs-5.0.1.orig/redhat/autofs.init.in +++ autofs-5.0.1/redhat/autofs.init.in @@ -69,6 +69,9 @@ function start() { mknod -m 0600 /dev/$DEVICE c 10 $MINOR fi fi + if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then + /sbin/restorecon /dev/$DEVICE + fi else if [ -c /dev/$DEVICE ]; then rm /dev/$DEVICE --- autofs-5.0.1.orig/samples/rc.autofs.in +++ autofs-5.0.1/samples/rc.autofs.in @@ -59,6 +59,9 @@ function start() { mknod -m 0600 /dev/$DEVICE c 10 $MINOR fi fi + if [ -x /sbin/restorecon -a -c /dev/$DEVICE ]; then + /sbin/restorecon /dev/$DEVICE + fi else if [ -c /dev/$DEVICE ]; then rm /dev/$DEVICE