Restore proper SELinux context for runtime created /var/run/nut directory
This commit is contained in:
parent
5b99c93354
commit
c79bcd71af
5 changed files with 8 additions and 3 deletions
1
debian/nut-client.postinst
vendored
1
debian/nut-client.postinst
vendored
|
@ -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
|
||||
;;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue