selinux/policycoreutils
Petr Lautrbach 9207823c8f setfiles: Do not abort on labeling error
Commit 602347c742 ("policycoreutils: setfiles - Modify to use
selinux_restorecon") changed behavior of setfiles. Original
implementation skipped files which it couldn't set context to while the
new implementation aborts on them. setfiles should abort only if it
can't validate a context from spec_file.

Reproducer:

    # mkdir -p r/1 r/2 r/3
    # touch r/1/1 r/2/1
    # chattr +i r/2/1
    # touch r/3/1
    # setfiles -r r -v /etc/selinux/targeted/contexts/files/file_contexts r
    Relabeled r from unconfined_u:object_r:mnt_t:s0 to unconfined_u:object_r:root_t:s0
    Relabeled r/2 from unconfined_u:object_r:mnt_t:s0 to unconfined_u:object_r:default_t:s0
    setfiles: Could not set context for r/2/1:  Operation not permitted

r/3 and r/1 are not relabeled.

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2021-02-01 15:02:16 +01:00
..
.tx Update Translations 2013-10-24 13:58:39 -04:00
hll Fix many misspellings 2019-09-18 22:47:35 +02:00
load_policy selinux: Remove legacy local boolean and user code 2019-07-29 23:46:24 +02:00
man selinux_config(5): add a note that runtime disable is deprecated 2020-11-12 21:23:59 +01:00
newrole newrole: support cross-compilation with PAM and audit 2020-09-04 15:56:38 -04:00
po Fix many misspellings 2019-09-18 22:47:35 +02:00
run_init tree-wide: replace last occurrences of security_context_t 2020-03-25 09:54:21 -05:00
scripts fixfiles: correctly restore context of mountpoints 2020-08-17 11:54:01 -04:00
secon tree-wide: replace last occurrences of security_context_t 2020-03-25 09:54:21 -05:00
semodule semodule: mention ignoredirs setting in genhomedircon man page 2020-04-28 09:27:49 +02:00
sestatus Allow installing translated man pages 2019-01-28 12:03:57 +01:00
setfiles setfiles: Do not abort on labeling error 2021-02-01 15:02:16 +01:00
setsebool setsebool: report errors from commit phase 2020-04-28 09:26:26 +02:00
.gitignore Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
COPYING initial import from svn trunk revision 2950 2008-08-19 15:30:36 -04:00
Makefile Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
VERSION Update VERSIONs and Python bindings version to 3.2-rc1 for release 2021-01-20 12:40:14 +01:00