From c1aeb02be4024720c2275baefeb8d8feda5a6a66 Mon Sep 17 00:00:00 2001 From: Milos Malik Date: Dec 01 2020 18:36:45 +0000 Subject: skip the BZ#1845594 test phase on RHEL It seems that BZ#1845594 cannot be reproduced on RHEL-8. From now on, the test phase will be executed in Fedora environments only. --- diff --git a/selinux-policy/swap-file-and-systemd-access/runtest.sh b/selinux-policy/swap-file-and-systemd-access/runtest.sh index d7af11e..84339ff 100755 --- a/selinux-policy/swap-file-and-systemd-access/runtest.sh +++ b/selinux-policy/swap-file-and-systemd-access/runtest.sh @@ -68,10 +68,12 @@ rlJournalStart rlSESearchRule "allow systemd_sleep_t sysfs_t : dir { write } [ ]" rlPhaseEnd + if rlIsFedora ; then rlPhaseStartTest "bz#1845594" rlSEMatchPathCon "/usr/lib/systemd/systemd-logind" "systemd_logind_exec_t" rlSESearchRule "allow systemd_logind_t swapfile_t : file { getattr open read ioctl } [ ]" rlPhaseEnd + fi if ${REAL_SCENARIOS} ; then rlPhaseStartTest "real scenario"