]> git.ipfire.org Git - thirdparty/shadow.git/commit
selinux.c:reset_selinux_file_context(): do not fail in permissive mode
authorChristian Göttsche <cgzones@googlemail.com>
Fri, 9 Apr 2021 16:20:53 +0000 (18:20 +0200)
committerChristian Göttsche <cgzones@googlemail.com>
Thu, 6 May 2021 14:58:10 +0000 (16:58 +0200)
commite367d111e513a61495213028e8d4ab2e36775790
tree82e1029780f404663164b28b6a9e97b3c6fcbbae
parent95fd179683e414db4f6ebd9467476e45d94decda
selinux.c:reset_selinux_file_context(): do not fail in permissive mode

Return 0 on setfscreatecon(3) failure, like set_selinux_file_context().

Signed-off-by: Christian Göttsche <cgzones@googlemail.com>
Acked-by: James Carter <jwcart2@gmail.com>
lib/selinux.c