[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#685992: debian-policy: Document in the policy the way to properly set selinux labels on files and directories



Le Thu, 1 May 2014 18:02:20 +0200,
Laurent Bigonville <bigon@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


Reply to: