mirror of
https://github.com/SELinuxProject/selinux
synced 2025-03-06 02:07:34 +00:00
libselinux/selinux_restorecon: Skip customized files also without -v
In the original code, customizable file contexts were not changed only if -v was used. It lead to different behavior when selinux_restorecon was run with -v and without it. Based on an initial patch by Jan Zarsky <jzarsky@redhat.com> Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
This commit is contained in:
parent
4634e8fe39
commit
347719d15f
@ -672,8 +672,8 @@ static int restorecon_sb(const char *pathname, const struct stat *sb,
|
||||
selinux_log(SELINUX_INFO,
|
||||
"%s not reset as customized by admin to %s\n",
|
||||
pathname, curcon);
|
||||
goto out;
|
||||
}
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (!flags->set_specctx && curcon) {
|
||||
|
Loading…
Reference in New Issue
Block a user