public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [tests/selinux] pr775-checkpolicy-revdeps: make the cups-browsed service running
@ 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 : 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

^ 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: make the cups-browsed service running Milos Malik

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