[DSE-Dev] debian-policy: Document in the policy the way to properly set selinux labels on files and directories
Laurent Bigonville
bigon at debian.org
Thu May 1 16:14:55 UTC 2014
Le Thu, 1 May 2014 18:02:20 +0200,
Laurent Bigonville <bigon at debian.org> a écrit :
[...]
> A maintainer script can for example call the restorecon(8)
> executable to achieve this:
> [ -x /sbin/restorecon ] && /sbin/restorecon $myfile
I guess the output of restorecon should be redirected to /dev/null, so
this should read:
[ -x /sbin/restorecon ] && /sbin/restorecon $myfile >/dev/null 2>&1
More information about the SELinux-devel
mailing list