selinux/policycoreutils
Stephen Smalley c78f9c355f setsebool: support use of -P on SELinux-disabled hosts
As reported in #123, setsebool immediately exits with an error if
SELinux is disabled, preventing its use for setting boolean persistent
values.  In contrast, semanage boolean -m works on SELinux-disabled
hosts.  Change setsebool so that it can be used with the -P option
(persistent changes) even if SELinux is disabled.  In the SELinux-disabled
case, skip setting of active boolean values, but set the persistent value
in the policy store.  Policy reload is automatically disabled by libsemanage
when SELinux is disabled, so we only need to call semanage_set_reload()
if -N was used.

Fixes: https://github.com/SELinuxProject/selinux/issues/123
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
2019-01-17 13:56:05 -05:00
..
.tx Update Translations 2013-10-24 13:58:39 -04:00
hll policycoreutils/hll/pp: remove unused variable 2018-06-06 15:56:45 -04:00
load_policy policycoreutils: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 20:02:01 +01:00
man policycoreutils: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 20:02:01 +01:00
newrole policycoreutils: Fix typo in newrole.1 manpage 2018-05-30 22:05:55 +02:00
po policycoreutils: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 20:02:01 +01:00
run_init policycoreutils: build: follow standard semantics for DESTDIR and PREFIX 2018-02-14 20:02:01 +01:00
scripts policycoreutils: fixfiles: failure to create /.autorelabel is fatal 2018-05-15 13:51:04 -04:00
secon policycoreutils/secon: free scon_trans before returning 2018-06-06 15:56:45 -04:00
semodule policycoreutils/semodule: Allow enabling/disabling multiple modules at once 2018-03-26 10:19:51 -04:00
sestatus sestatus: include limits.h for PATH_MAX 2018-05-16 16:27:17 +08:00
setfiles setfiles: Musl compatibility for GLOB_BRACE and GLOB_TILDE 2018-05-17 13:07:33 +08:00
setsebool setsebool: support use of -P on SELinux-disabled hosts 2019-01-17 13:56:05 -05:00
.gitignore Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
COPYING
Makefile Move policycoreutils/semodule_package to semodule-utils. 2016-11-16 11:19:51 -05:00
VERSION Update VERSIONs to 2.8 for release. 2018-05-24 14:21:09 -04:00