[DSE-Dev] Bug#731212: policycoreutils: restorecon sometimes fails with error 255 unexpectedly (but repeatedly)
Laurent Bigonville
bigon at debian.org
Sat Apr 30 11:40:54 UTC 2016
On Tue, 03 Dec 2013 19:16:36 +1100 Russell Coker <russell at coker.com.au>
wrote:
Hi Russell,
> A# /sbin/restorecon -R /dev ; echo $?
> 0
> B# /sbin/restorecon -R /etc/mtab /dev; echo $?
> /sbin/restorecon: Warning no default label for /etc/mtab
> 0
> C# /sbin/restorecon -R /etc/mtab; echo $?
> /sbin/restorecon: Warning no default label for /etc/mtab
> 0
> D# /sbin/restorecon -R /dev /etc/mtab; echo $?
> 255
>
> I believe that restorecon is not operating correctly here. Firstly
the error
> message about /etc/mtab should occur in case D.
>
> The error return should happen in cases B, C, and D if it concerns
the warning
> about /etc/mtab.
>
> If the error return doesn't concern the displayed warning about
/etc/mtab then
> it should have an error message telling the user what went wrong.
>
Can you still reproduce this with the version of jessie or higher?
Cheers,
Laurent Bigonville
More information about the SELinux-devel
mailing list