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: setsebool: enable PATH records while running
Date: Fri, 11 Sep 2026 13:17:44 GMT [thread overview]
Message-ID: <178913266415.1.12740865648253921034.tests-selinux-f98e16dc947e@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : f98e16dc947e496de85fbde4a0220ae2547a6a7a
Author : Petr Lautrbach <plautrba@redhat.com>
Date : 2020-01-10T10:03:31+01:00
Stats : +13/-3 in 2 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/f98e16dc947e496de85fbde4a0220ae2547a6a7a?branch=pr775-checkpolicy-revdeps
Log:
setsebool: 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 eaa5bac..f71e1e6 100755
--- a/policycoreutils/load_policy/runtest.sh
+++ b/policycoreutils/load_policy/runtest.sh
@@ -48,9 +48,9 @@ rlJournalStart
sleep 1
fi
rlRun "AUDIT_FILE=$(mktemp)"
- rlRun "auditctl -l | tee -a $AUDIT_FILE" 0 "Save current audit rules"
+ rlRun "auditctl -l | tee -a $AUDIT_FILE" 0 "Save current audit rules"
rlRun "auditctl -D" 0
- rlRun "auditctl -w $AUDIT_FILE -p w" 0 \
+ rlRun "auditctl -w $AUDIT_FILE -p w" 0 \
"Enable creation of PATH audit records"
rlPhaseEnd
@@ -94,7 +94,7 @@ rlJournalStart
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 "auditctl -R $AUDIT_FILE" 0,1 "Restore audit rules"
rlRun "rm -f \"\$AUDIT_FILE\""
rlPhaseEnd
rlJournalPrintText
diff --git a/policycoreutils/setsebool/runtest.sh b/policycoreutils/setsebool/runtest.sh
index 04040d1..202d641 100755
--- a/policycoreutils/setsebool/runtest.sh
+++ b/policycoreutils/setsebool/runtest.sh
@@ -48,6 +48,12 @@ rlJournalStart
rlRun "useradd ${USER_NAME}"
rlRun "echo ${USER_SECRET} | passwd --stdin ${USER_NAME}"
+ 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
@@ -145,6 +151,10 @@ rlJournalStart
rlPhaseStartCleanup
rlRun "userdel -rf ${USER_NAME}"
rm -f ${OUTPUT_FILE}
+ rlRun "auditctl -W $AUDIT_FILE -p w" 0 \
+ "Remove rule for creation of PATH audit records"
+ rlRun "auditctl -R $AUDIT_FILE" 0,1 "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=178913266415.1.12740865648253921034.tests-selinux-f98e16dc947e@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