public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: Check for bin/sulogin, not for /sbin/sulogin
@ 2026-09-11 13:22 Zdenek Pytela
  0 siblings, 0 replies; only message in thread
From: Zdenek Pytela @ 2026-09-11 13:22 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 5660ee6918fde28909c7ad151eff1159841680ca
            Author : Zdenek Pytela <zpytela@redhat.com>
            Date   : 2025-02-06T12:08:09+01:00
            Stats  : +1/-1 in 1 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/5660ee6918fde28909c7ad151eff1159841680ca?branch=pr775-checkpolicy-revdeps

            Log:
            Check for bin/sulogin, not for /sbin/sulogin

With Unify_bin_and_sbin [1] in progres, majority of commands have
already been moved from /usr/sbin to /usr/bin in Fedora 42 and newer,
therefore the strings check in /usr/lib/systemd/systemd-sulogin-shell
should rather use bin/sulogin.

This commit fixes the following test failure:
[   FAIL   ] :: Command 'strings /usr/lib/systemd/systemd-sulogin-shell | grep /sbin/sulogin' (Expected 0, got 1)

[1] https://fedoraproject.org/wiki/Changes/Unify_bin_and_sbin

---
diff --git a/selinux-policy/sulogin-and-similar/runtest.sh b/selinux-policy/sulogin-and-similar/runtest.sh
index 6fbb8d9..073d423 100755
--- a/selinux-policy/sulogin-and-similar/runtest.sh
+++ b/selinux-policy/sulogin-and-similar/runtest.sh
@@ -25,7 +25,7 @@ rlJournalStart
 
     rlPhaseStartTest "real scenario -- standalone service"
         rlRun "grep ExecStart= /usr/lib/systemd/system/rescue.service"
-        rlRun "strings /usr/lib/systemd/systemd-sulogin-shell | grep /sbin/sulogin"
+        rlRun "strings /usr/lib/systemd/systemd-sulogin-shell | grep bin/sulogin"
         rlRun "service rescue start"
         sleep 2
         rlRun "service rescue status"

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-09-11 13:22 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:22 [tests/selinux] pr775-checkpolicy-revdeps: Check for bin/sulogin, not for /sbin/sulogin Zdenek Pytela

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox