On Tue, 03 Dec 2013 19:16:36 +1100 Russell Coker <[email protected]> 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

_______________________________________________
SELinux-devel mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/selinux-devel

Reply via email to