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: make the cups-browsed service running
Date: Fri, 11 Sep 2026 13:21:33 GMT	[thread overview]
Message-ID: <178913289369.1.6154251096243821703.tests-selinux-24ce6bf2dee0@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : tests/selinux
            Branch : pr775-checkpolicy-revdeps
            Commit : 24ce6bf2dee03648702dc7a65ed5da69945af8c0
            Author : Milos Malik <mmalik@redhat.com>
            Date   : 2024-04-11T09:55:46+02:00
            Stats  : +4/-2 in 3 file(s)
            URL    : https://src.fedoraproject.org/tests/selinux/c/24ce6bf2dee03648702dc7a65ed5da69945af8c0?branch=pr775-checkpolicy-revdeps

            Log:
            make the cups-browsed service running

The cups-browsed service does not start with the default configuration.
In order to perform a basic SELinux testing, the cups-browsed
configuration needs to be modified (for example: BrowsePoll).

---
diff --git a/selinux-policy/cups-browsed-and-similar/Makefile b/selinux-policy/cups-browsed-and-similar/Makefile
index 951aa63..aee1194 100644
--- a/selinux-policy/cups-browsed-and-similar/Makefile
+++ b/selinux-policy/cups-browsed-and-similar/Makefile
@@ -62,7 +62,7 @@ $(METADATA): Makefile
 	@echo "Confidential:    no" >> $(METADATA)
 	@echo "Destructive:     no" >> $(METADATA)
 	@echo "Environment:     AVC_ERROR=+no_avc_check" >> $(METADATA)
-	@echo "Releases:        -RHEL4 -RHELServer5 -RHELClient5 -RHEL6" >> $(METADATA)
+	@echo "Releases:        -RHEL4 -RHEL5 -RHEL6" >> $(METADATA)
 	@echo "Bug:             1395801" >> $(METADATA) # Fedora 26
 	@echo "Bug:             1401634" >> $(METADATA) # Fedora 26
 	@echo "Bug:             1719754" >> $(METADATA) # RHEL-7

diff --git a/selinux-policy/cups-browsed-and-similar/main.fmf b/selinux-policy/cups-browsed-and-similar/main.fmf
index f913a2a..f7c3a00 100644
--- a/selinux-policy/cups-browsed-and-similar/main.fmf
+++ b/selinux-policy/cups-browsed-and-similar/main.fmf
@@ -30,7 +30,7 @@ tag:
   - RHEL8
   - Tier1
   - Tier1security
-  - Tier2se
+  - Tier1se
   - f32friendly
   - targeted
 tier: '1'

diff --git a/selinux-policy/cups-browsed-and-similar/runtest.sh b/selinux-policy/cups-browsed-and-similar/runtest.sh
index 0a0a5e0..71eeb50 100755
--- a/selinux-policy/cups-browsed-and-similar/runtest.sh
+++ b/selinux-policy/cups-browsed-and-similar/runtest.sh
@@ -47,6 +47,7 @@ rlJournalStart
         rlAssertRpm ${SERVICE_PACKAGE}
 
         rlFileBackup /etc/shadow
+        rlFileBackup /etc/cups/cups-browsed.conf
         rlServiceStop ${SERVICE_NAME}
 
         rlSESetEnforce
@@ -71,6 +72,7 @@ rlJournalStart
     rlPhaseEnd
 
     rlPhaseStartTest "real scenario"
+        rlRun "echo -en '\nBrowsePoll localhost\n' >> /etc/cups/cups-browsed.conf"
         rlRun "echo ${ROOT_PASSWORD} | passwd --stdin root"
         if ! rlSEDefined ${PROCESS_CONTEXT} ; then
             if rlIsRHEL 5 6 ; then

                 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=178913289369.1.6154251096243821703.tests-selinux-24ce6bf2dee0@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