Skip to contentSkip to conversation

postfix policy patch

PATCH Russell Coker 1 participant 1 message May 15, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

The attached patch allows running "newaliases" on a Postfix system with the strict policy.

Signature · 4 lines
http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page
constraints renamed from constraints.orig +4 -0
@@ -61,6 +61,10 @@
 ')
 ifdef(`userhelper.te', 
 	`or (t1 == userhelperdomain)')
+ifdef(`postfix.te', `
+ifdef(`direct_sysadm_daemon',
+	`or (t1 == sysadm_mail_t and t2 == system_mail_t and r2 == system_r )')
+')
 	 or (t1 == priv_system_role and r2 == system_r )
         );