]> git.ipfire.org Git - thirdparty/coreutils.git/commit
chcon: don't disable just because SELinux is disabled
authorJim Meyering <meyering@redhat.com>
Wed, 7 Oct 2009 13:31:17 +0000 (15:31 +0200)
committerJim Meyering <meyering@redhat.com>
Fri, 9 Oct 2009 12:33:10 +0000 (14:33 +0200)
commit0023f65fd7a2ba53b0209c7b1a66c5c30612d0c2
treef399cfe56474a9b50e9382c903cdd02863002417
parent57d9263ca54a35e76fc8ed2ec3ec8dc36f8da60b
chcon: don't disable just because SELinux is disabled

* src/chcon.c (main): Now that gnulib provides getfilecon wrappers,
we can revert most of the 2009-10-05 commit 3a97d664, "chcon: exit
immediately if SELinux is disabled", since chcon is still useful as
long as the file system provides handlers for the security.*
name space.  gnulib's getfilecon wrappers ensure that an offending
context now evokes a return value of -1.
Prompted by comments from Stephen Smalley in
http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/18378/focus=18394
* NEWS (Bug fixes): Mention it.
NEWS
src/chcon.c