public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Petr Lautrbach <plautrba@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: load_policy: enable PATH records while running
Date: Fri, 11 Sep 2026 13:17:43 GMT [thread overview]
Message-ID: <178913266369.1.16997261510017758822.tests-selinux-0f3d0000765d@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-11 13:17 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178913266369.1.16997261510017758822.tests-selinux-0f3d0000765d@fedoraproject.org \
--to=plautrba@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox