selinux/libselinux
Vit Mojzis 4bab3ecc37 libselinux: Strip spaces before values in config
Spaces before values in /etc/selinux/config should be ignored just as
spaces after them are.

E.g. "SELINUXTYPE= targeted" should be a valid value.

Fixes:
   # sed -i 's/^SELINUXTYPE=/SELINUXTYPE= /g' /etc/selinux/config
   # dnf install <any_package>
   ...
   RPM: error: selabel_open: (/etc/selinux/ targeted/contexts/files/file_contexts) No such file or directory
   RPM: error: Plugin selinux: hook tsm_pre failed
   ...
   Error: Could not run transaction.

Signed-off-by: Vit Mojzis <vmojzis@redhat.com>
2022-03-03 12:08:44 -05:00
..
include selinux_restorecon: introduce selinux_restorecon_parallel(3) 2021-11-23 10:03:18 +01:00
man selinux_restorecon: introduce selinux_restorecon_parallel(3) 2021-11-23 10:03:18 +01:00
src libselinux: Strip spaces before values in config 2022-03-03 12:08:44 -05:00
utils libselinux: use PCRE2 by default 2021-12-09 11:07:00 -05:00
LICENSE
Makefile libselinux: use PCRE2 by default 2021-12-09 11:07:00 -05:00
VERSION Update VERSIONs to 3.3 for release. 2021-10-21 16:31:23 +02:00