]> git.ipfire.org Git - thirdparty/coreutils.git/commit
chcon: do not validate security context if SELinux is disabled
authorKamil Dudka <kdudka@redhat.com>
Mon, 2 Dec 2019 13:02:02 +0000 (14:02 +0100)
committerPádraig Brady <P@draigBrady.com>
Mon, 2 Dec 2019 16:21:05 +0000 (16:21 +0000)
commit5118a2e392c8cffb3c26eaffbb75e2b1ef7607f9
tree2532773d80f8afd1069f18fec3a7ad8ff82728e8
parentad591a52b4507a5ffe77e88a252bcd992c3561bb
chcon: do not validate security context if SELinux is disabled

* src/chcon.c (main): Skip call of security_check_context()
in case SELinux is disabled to avoid unnecessary failure.

Bug: https://bugzilla.redhat.com/1777831
src/chcon.c