public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: Change strings check to match a sequence of slashes as a directory separator
@ 2026-09-11 13:17 Zdenek Pytela
0 siblings, 0 replies; only message in thread
From: Zdenek Pytela @ 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 : f1a42a48f9ac874e2f53e801429c3c91f0654a39
Author : Zdenek Pytela <zpytela@redhat.com>
Date : 2020-03-31T15:53:38+02:00
Stats : +4/-2 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/f1a42a48f9ac874e2f53e801429c3c91f0654a39?branch=pr775-checkpolicy-revdeps
Log:
Change strings check to match a sequence of slashes as a directory separator
Change the strings check verifying if /usr/sbin/pam_timestamp_check and
/usr/lib64/security/pam_timestamp.so binaries contain the /run/pam_timestamp
string to match also multiple slashes in a row.
---
diff --git a/selinux-policy/pam_timestamp-and-related/runtest.sh b/selinux-policy/pam_timestamp-and-related/runtest.sh
index b19a2f3..c9d37b9 100755
--- a/selinux-policy/pam_timestamp-and-related/runtest.sh
+++ b/selinux-policy/pam_timestamp-and-related/runtest.sh
@@ -61,8 +61,10 @@ rlJournalStart
rlSESearchRule "allow sshd_t var_run_t : dir { write add_name } [ ]"
rlSESearchRule "type_transition sshd_t var_run_t : dir pam_var_run_t"
rlSESearchRule "allow sshd_t pam_var_run_t : dir { create } [ ]"
- rlRun "strings /usr/sbin/pam_timestamp_check | grep ${TIMESTAMP_DIR}"
- rlRun "strings /usr/lib64/security/pam_timestamp.so | grep ${TIMESTAMP_DIR}"
+ # sed is needed for pam versions before
+ # https://github.com/linux-pam/linux-pam/commit/9b62f2ed3be1731581ad8f4b7e5cefd8fd030085
+ rlRun "strings /usr/sbin/pam_timestamp_check | sed \"s|//*|/|g\" | grep ${TIMESTAMP_DIR}"
+ rlRun "strings /usr/lib64/security/pam_timestamp.so | sed \"s|//*|/|g\" | grep ${TIMESTAMP_DIR}"
rlPhaseEnd
rlPhaseStartTest "real scenario -- confined users"
^ 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: Change strings check to match a sequence of slashes as a directory separator Zdenek Pytela
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox