public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: load_policy: enable PATH records while running
@ 2026-09-11 13:17 Petr Lautrbach
0 siblings, 0 replies; only message in thread
From: Petr Lautrbach @ 2026-09-11 13:17 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : 0f3d0000765da7cd3214e4a9344c3b0aa8de1e49
Author : Petr Lautrbach <plautrba@redhat.com>
Date : 2020-01-10T09:05:17+01:00
Stats : +9/-0 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/0f3d0000765da7cd3214e4a9344c3b0aa8de1e49?branch=pr775-checkpolicy-revdeps
Log:
load_policy: enable PATH records while running
This test expects it's enabled
---
diff --git a/policycoreutils/load_policy/runtest.sh b/policycoreutils/load_policy/runtest.sh
index 73fdc3a..eaa5bac 100755
--- a/policycoreutils/load_policy/runtest.sh
+++ b/policycoreutils/load_policy/runtest.sh
@@ -47,6 +47,11 @@ rlJournalStart
rlRun "service auditd start"
sleep 1
fi
+ rlRun "AUDIT_FILE=$(mktemp)"
+ rlRun "auditctl -l | tee -a $AUDIT_FILE" 0 "Save current audit rules"
+ rlRun "auditctl -D" 0
+ rlRun "auditctl -w $AUDIT_FILE -p w" 0 \
+ "Enable creation of PATH audit records"
rlPhaseEnd
rlPhaseStartTest
@@ -87,6 +92,10 @@ rlJournalStart
rlPhaseEnd
rlPhaseStartCleanup
+ rlRun "auditctl -W $AUDIT_FILE -p w" 0 \
+ "Remove rule for creation of PATH audit records"
+ rlRun "auditctl -R $AUDIT_FILE" 0 "Restore audit rules"
+ rlRun "rm -f \"\$AUDIT_FILE\""
rlPhaseEnd
rlJournalPrintText
rlJournalEnd
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-11 13:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-11 13:17 [tests/selinux] pr775-checkpolicy-revdeps: load_policy: enable PATH records while running Petr Lautrbach
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox