#477 kernel/selinux-testsuite: remove install_t references on RHEL6
Merged 2 months ago by omos. Opened 2 months ago by omos.
tests/ omos/selinux sts-rhel6  into  main

@@ -314,6 +314,11 @@ 

              rlRun "sed -i 's/\\(allow \\\$1 initrc_t:fd use;\\)/\\1 allow \$1 unconfined_service_t:fd use;/' policy/test_policy.if" 0

          fi

  

+         if rlIsRHEL '<6'; then

+             rlRun "sed -i '/install_t/d' policy/test_policy.if" 0

+                 "RHEL 6 doesn't have install_t"

+         fi

+ 

          exclude_tests=""

          force_tests=""

          for file in ./tests/nnp*/execnnp.c; do

Otherwise the policy fails to build there.

Pull-Request has been merged by omos

2 months ago
Metadata