Skip to contentSkip to conversation

procmail.te and targeted policy

PATCH Russell Coker 1 participant 1 message Sep 19, 2005 SELinux security module

lore
Share & tools
lore
#0 lore raw

Now that the targeted policy has the policy for mail servers it also needs procmail.te to allow delivery by procmail.

In addition the attached patch needs to be applied for procmail and Spamassassin to work together (for both targeted and strict).

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
program/procmail.te renamed from tmp/procmail.te +8 -0
@@ -59,6 +59,14 @@
 allow procmail_t usr_t:file { getattr ioctl read };
 ifdef(`spamassassin.te', `
 can_exec(procmail_t, spamassassin_exec_t)
+can_resolve(procmail_t)
+allow procmail_t port_t:udp_socket name_bind;
+allow procmail_t tmp_t:dir getattr;
+')
+ifdef(`targeted_policy', `
+can_resolve(procmail_t)
+allow procmail_t port_t:udp_socket name_bind;
+allow procmail_t tmp_t:dir getattr;
 ')
 
 # Search /var/run.