public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Milos Malik <mmalik@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: adapt to modified sedispol commands
Date: Fri, 11 Sep 2026 13:21:15 GMT	[thread overview]
Message-ID: <178913287574.1.17267317992522534053.tests-selinux-26edd450042c@fedoraproject.org> (raw)

            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"

                 reply	other threads:[~2026-09-11 13:21 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=178913287574.1.17267317992522534053.tests-selinux-26edd450042c@fedoraproject.org \
    --to=mmalik@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