@@ -68,7 +68,7 @@ load_rhel: all
load_general: all
# General policy load
- /usr/sbin/setsebool allow_domain_fd_use=0
+ /usr/sbin/getsebool -a | grep -q allow_domain_fd_use && /usr/sbin/setsebool allow_domain_fd_use=0 || :
$(SEMODULE) -i test_policy/test_policy.pp
unload_rhel:
@@ -77,7 +77,7 @@ unload_rhel:
unload_general:
# General policy unload
- /usr/sbin/setsebool allow_domain_fd_use=1
+ /usr/sbin/getsebool -a | grep -q allow_domain_fd_use && /usr/sbin/setsebool allow_domain_fd_use=1 || :
$(SEMODULE) -r test_policy
clean:
Fix the Makefile in the policy subdirectory of the SELinux testsuite so that it builds correctly on the standard Reference Policy which does not have the same booleans available on Red Hat. Signed-off-by: Guido Trentalancia <guido@trentalancia.net> --- policy/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)