public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: jan janasek <jjanasek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [tests/selinux] pr775-checkpolicy-revdeps: renaming type test_file_t
Date: Fri, 11 Sep 2026 13:23:24 GMT [thread overview]
Message-ID: <178913300420.1.4660018022152858551.tests-selinux-d4ebe95f73e9@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : tests/selinux
Branch : pr775-checkpolicy-revdeps
Commit : d4ebe95f73e99408c076857f79b216e7e904409a
Author : jan janasek <jjanasek@redhat.com>
Date : 2025-11-10T13:09:08+01:00
Stats : +27/-27 in 1 file(s)
URL : https://src.fedoraproject.org/tests/selinux/c/d4ebe95f73e99408c076857f79b216e7e904409a?branch=pr775-checkpolicy-revdeps
Log:
renaming type test_file_t
On rhel9 there is a another type with this name so it is colliding,
so my_test_file_t will be used in this test futher.
Signed-off-byt: jan janasek <jjanasek@redhat.com>
---
diff --git a/selinux-policy/unknown-permissions-cil/runtest.sh b/selinux-policy/unknown-permissions-cil/runtest.sh
index 83b2b13..8bf258f 100755
--- a/selinux-policy/unknown-permissions-cil/runtest.sh
+++ b/selinux-policy/unknown-permissions-cil/runtest.sh
@@ -36,110 +36,110 @@ rlJournalStart
rlAssertRpm ${PACKAGE}
rlAssertRpm ${PACKAGE}-targeted
rlRun "sestatus"
- echo "(type test_domain_t)" > $FILE
- echo "(type test_file_t)" >> $FILE
+ echo "(type my_test_domain_t)" > $FILE
+ echo "(type my_test_file_t)" >> $FILE
sleep 2
rlPhaseEnd
rlPhaseStartTest "permission watch"
- echo "(allow test_domain_t test_file_t (dir (watch)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (dir (watch)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (dir (watching)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (dir (watching)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission that is not defined in a class"
- echo "(allow test_domain_t test_file_t (dir (add_name)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (dir (add_name)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (file (add_name)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (file (add_name)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission sendto"
- echo "(allow test_domain_t test_file_t (node (sendto)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (node (sendto)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (node (sendsto)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (node (sendsto)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (dir (sendto)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (dir (sendto)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission stop"
- echo "(allow test_domain_t test_file_t (system (stop)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (system (stop)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (system (stops)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (system (stops)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (dir (stop)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (dir (stop)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission reload"
- echo "(allow test_domain_t test_file_t (service (reload)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (service (reload)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (service (reloads)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (service (reloads)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (dir (reload)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (dir (reload)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission use"
- echo "(allow test_domain_t test_file_t (fd (use)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (fd (use)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (fd (using)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (fd (using)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (dir (use)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (dir (use)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission flow_in"
- echo "(allow test_domain_t test_file_t (packet (flow_in)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (packet (flow_in)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (packet (flows_in)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (packet (flows_in)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (system (flow_in)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (system (flow_in)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission contains"
- echo "(allow test_domain_t test_file_t (context (contains)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (context (contains)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (context (contain)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (context (contain)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (fd (contains)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (fd (contains)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
rlPhaseStartTest "permission lock"
- echo "(allow test_domain_t test_file_t (shm (lock)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (shm (lock)))" >> $FILE
rlRun "semodule -i $FILE"
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (shm (locked)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (shm (locked)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
- echo "(allow test_domain_t test_file_t (system (lock)))" >> $FILE
+ echo "(allow my_test_domain_t my_test_file_t (system (lock)))" >> $FILE
rlRun "semodule -i $FILE" 1
head -n -1 $FILE > "temp.txt" && mv "temp.txt" $FILE
rlPhaseEnd
reply other threads:[~2026-09-11 13:23 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=178913300420.1.4660018022152858551.tests-selinux-d4ebe95f73e9@fedoraproject.org \
--to=jjanasek@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