diff mbox series

[testsuite,06/24] test_policy.if: remove weird rule from testsuite_domain_type_minimal()

Message ID 20220729120229.207584-7-omosnace@redhat.com (mailing list archive)
State Superseded
Delegated to: Ondrej Mosnáček
Headers show
Series Clean up testsuite policy and support running as sysadm_t | expand

Commit Message

Ondrej Mosnacek July 29, 2022, 12:02 p.m. UTC
The rule doesn't depend on the target domain, so it doesn't make sense
for it to be there.

Signed-off-by: Ondrej Mosnacek <omosnace@redhat.com>
---
 policy/test_policy.if | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/policy/test_policy.if b/policy/test_policy.if
index 4912efd..f17a384 100644
--- a/policy/test_policy.if
+++ b/policy/test_policy.if
@@ -49,7 +49,7 @@  interface(`testsuite_domain_type',`
 
 interface(`testsuite_domain_type_minimal',`
 	gen_require(`
-		type setrans_var_run_t, syslogd_t, unconfined_t;
+		type setrans_var_run_t, unconfined_t;
 	')
 
 	testsuite_domain_type_common($1)
@@ -59,7 +59,6 @@  interface(`testsuite_domain_type_minimal',`
 	allow $1 proc_t:lnk_file { read };
 	allow $1 self:dir { search };
 	allow $1 self:file { open read write };
-	dontaudit init_t syslogd_t:fd use;
 	dontaudit $1 security_t:filesystem getattr;
 	dontaudit $1 self:file getattr;
 	dontaudit $1 setrans_var_run_t:dir search;