Restore proper SELinux context for runtime created /var/run/nut directory

This commit is contained in:
Laurent Bigonville 2012-10-09 23:38:43 +02:00
parent 5b99c93354
commit c79bcd71af
5 changed files with 8 additions and 3 deletions

View file

@ -36,6 +36,7 @@ case "$1" in
if [ -d /var/run/nut ] ; then
chown root:nut /var/run/nut
chmod 770 /var/run/nut
[ -x /sbin/restorecon ] && /sbin/restorecon /var/run/nut
fi
;;