kernel/selinux-testsuite: remove install_t references on RHEL6

Otherwise the policy fails to build there.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
This commit is contained in:
Ondrej Mosnacek 2024-02-29 16:12:35 +01:00
commit 485e8279b7
No known key found for this signature in database
GPG key ID: BDE08B7A0C57B343

View file

@ -314,6 +314,11 @@ rlJournalStart
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