Package: policycoreutils Version: 2.2.4-1 Severity: important 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. -- System Information: Debian Release: jessie/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 3.11-2-amd64 (SMP w/4 CPU cores) Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/bash Versions of packages policycoreutils depends on: ii init-system-helpers 1.13 ii libaudit1 1:2.3.2-2 ii libc6 2.17-96 ii libcap2 1:2.22-1.2 ii libdbus-1-3 1.6.18-1 ii libdbus-glib-1-2 0.100.2-1 ii libgcc1 1:4.8.2-5 ii libglib2.0-0 2.36.4-1 ii libpam0g 1.1.3-10 ii libpcre3 1:8.31-2 ii libselinux1 2.2.1-1 ii libsemanage1 2.2-1 ii libsepol1 2.2-1 ii libstdc++6 4.8.2-5 ii lsb-base 4.1+Debian12 ii psmisc 22.20-1 ii python 2.7.5-5 ii python-ipy 1:0.75-1 ii python-selinux 2.2.1-1 ii python-semanage 2.2-1 ii python-sepolgen 1.2.1-1 ii python-sepolicy 2.2.4-1 ii python-setools 3.3.8-1+b1 ii selinux-utils 2.2.1-1 Versions of packages policycoreutils recommends: pn python-audit <none> ii selinux-policy-default 2:2.20110726-13 Versions of packages policycoreutils suggests: ii selinux-policy-dev 2:2.20110726-13 -- no debconf information _______________________________________________ SELinux-devel mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/selinux-devel
