platform_external_selinux/python
Petr Lautrbach ebbf42d408 python/semanage: Enforce noreload only if it's requested by -N option
We want to call semanage_set_reload() only if -N option is used.

Fixes:

$ sudo umount /sys/fs/selinux

$ sudo semanage fcontext -a --type=postfix_local_tmp_t /var/opt/01789667
SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.31, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.31:  No such file or directory
/sbin/load_policy:  Can't load policy:  No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
SELinux:  Could not downgrade policy file /etc/selinux/targeted/policy/policy.31, searching for an older version.
SELinux:  Could not open policy file <= /etc/selinux/targeted/policy/policy.31:  No such file or directory
/sbin/load_policy:  Can't load policy:  No such file or directory
libsemanage.semanage_reload_policy: load_policy returned error code 2. (No such file or directory).
FileNotFoundError: [Errno 2] No such file or directory

Signed-off-by: Petr Lautrbach <plautrba@redhat.com>
2017-11-08 14:56:20 +08:00
..
audit2allow Makefiles: drop -L/-I to system paths 2017-04-25 08:27:05 -04:00
chcat Fix BINDIR/SBINDIR/... variables in Makefiles 2017-06-20 12:18:26 -04:00
semanage python/semanage: Enforce noreload only if it's requested by -N option 2017-11-08 14:56:20 +08:00
sepolgen Python 3.6 invalid escape sequence deprecation fixes 2017-03-10 15:56:36 -05:00
sepolicy sepolicy: support non-MLS policy in gui 2017-09-25 12:59:29 -04:00
COPYING Add COPYING files for new subdirs. 2016-11-16 11:19:51 -05:00
Makefile Move policycoreutils/{sepolicy,audit2allow,semanage,scripts/chcat*} and sepolgen to python. 2016-11-16 11:19:50 -05:00
VERSION Update VERSION files for 2.7 release. 2017-08-04 09:31:00 -04:00