selinux/libselinux
Stephen Smalley d66c54e2e2 libselinux: selinux_restorecon: only log no default label warning if recursive
In commit 36f1ccbb57 ("policycoreutils: setfiles: print error if
no default label found"), a warning message was added to setfiles/restorecon
if the user explicitly does a restorecon /path/to/foo and
/path/to/foo does not have any matching label in file_contexts; in the
case of a restorecon -R or setfiles, the warning isn't supposed to be
logged.  The check on the recursive flag got dropped when this logic was
taken into selinux_restorecon(3) in libselinux.  Restore this check so
that we do not generate noisy log messages on restorecon -R or setfiles.

Reported-by: Alan Jenkins <alan.christopher.jenkins@gmail.com>
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2017-01-13 09:57:46 -05:00
..
include libselinux: android: fix lax service context lookup 2016-09-29 09:59:44 -04:00
man man: standardize spacing with pointers in prototypes 2016-12-12 14:44:26 -05:00
src libselinux: selinux_restorecon: only log no default label warning if recursive 2017-01-13 09:57:46 -05:00
utils libselinux: include errno.h instead of sys/errno.h 2017-01-09 16:00:22 -05:00
LICENSE
Makefile libselinux: Add clean-pywrap and clean-rubywrap targets 2016-10-27 10:35:37 -04:00
VERSION Update VERSION and ChangeLog files for 2.6 final release. 2016-10-14 11:31:26 -04:00