public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Zdenek Pytela <zpytela@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: Change strings check to match a sequence of slashes as a directory separator
Date: Fri, 11 Sep 2026 13:17:54 GMT [thread overview]
Message-ID: <178913267462.1.10335374101592997136.tests-selinux-f1a42a48f9ac@fedoraproject.org> (raw)
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"
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=178913267462.1.10335374101592997136.tests-selinux-f1a42a48f9ac@fedoraproject.org \
--to=zpytela@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