public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: adapt to modified sedispol commands
@ 2026-09-11 13:21 Milos Malik
  0 siblings, 0 replies; only message in thread
From: Milos Malik @ 2026-09-11 13:21 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 26edd450042ceb9e15be6f2b571066eda0f46132
            Author : Milos Malik <mmalik@redhat.com>
            Date   : 2023-12-18T17:21:57+01:00
            Stats  : +4/-2 in 2 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/26edd450042ceb9e15be6f2b571066eda0f46132?branch=pr775-checkpolicy-revdeps

            Log:
            adapt to modified sedispol commands

The sedispol tool recognizes several commands. Before the checkpolicy
version 3.6 was introduced, one of the commands was 'u' which displayed
unknown handling setting. With the new version, the 'u' command prints
SELinux users which are defined and the 'U' command displays the unknown
handling setting.

---
diff --git a/checkpolicy/sedispol/main.fmf b/checkpolicy/sedispol/main.fmf
index f6506f7..0888f3f 100644
--- a/checkpolicy/sedispol/main.fmf
+++ b/checkpolicy/sedispol/main.fmf
@@ -31,3 +31,4 @@ adjust:
 extra-nitrate: TC#0518626
 extra-summary: /CoreOS/checkpolicy/Sanity/sedispol
 extra-task: /CoreOS/checkpolicy/Sanity/sedispol
+id: bbeea40d-d503-4862-91ee-3bb1b71b7baa

diff --git a/checkpolicy/sedispol/runtest.sh b/checkpolicy/sedispol/runtest.sh
index ac198ff..e785220 100755
--- a/checkpolicy/sedispol/runtest.sh
+++ b/checkpolicy/sedispol/runtest.sh
@@ -64,14 +64,15 @@ rlJournalStart
         rlRun "grep AVTAB ${OUTPUT_FILE}"
         rlRun "grep AVTAG ${OUTPUT_FILE}" 1
         rlRun "echo -en 'u\nq\n' | sedispol ${POLICY_FILE} >& ${OUTPUT_FILE}"
-        rlRun "grep permissions ${OUTPUT_FILE}"
+        rlRun "grep permisions ${OUTPUT_FILE}" 1
+        rlRun "echo -en 'U\nq\n' | sedispol ${POLICY_FILE} >& ${OUTPUT_FILE}"
         rlRun "grep permisions ${OUTPUT_FILE}" 1
     rlPhaseEnd
 
     if sedispol --help | grep -q actions ; then
     rlPhaseStartTest "test the non-interactive actions"
         rlLog "introduced in version 3.6"
-        for ACTION in 1 2 3 4 5 6 8 c b C r t a p u F ; do
+        for ACTION in 1 2 3 4 5 6 8 c b C r t a p u U F ; do
             rlRun "sedispol -a ${ACTION} ${POLICY_FILE} > ${ACTION}.txt"
             rlRun "ls -l ${ACTION}.txt"
             rlRun "test -s ${ACTION}.txt"

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

only message in thread, other threads:[~2026-09-11 13:21 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:21 [tests/selinux] pr775-checkpolicy-revdeps: adapt to modified sedispol commands Milos Malik

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