Skip to contentSkip to conversation

postfix patch

PATCH Russell Coker 2 participants 2 messages Aug 26, 2002 SELinux security module

lore
Share & tools
lore
#0 lore raw

I've attached a patch for the postfix policy that fixes two spurious warnings, one potential situation where the policy could fail to compile, and a typo in merging changes into cvs.

Signature · 3 lines
I do not get viruses because I do not use MS software.
If you use Outlook then please do not put my email address in your
address-book so that WHEN you get a virus it won't use my address in the
Quoted 1 line

From field.

domains/program/postfix.te renamed from tmp/selinux/policy/domains/program/postfix.te +3 -0
diff -ruN /tmp/selinux/policy/domains/program/postfix.te ./domains/program/postfix.te
@@ -128,7 +129,10 @@
 
 postfix_server_domain(local, `, mta_delivery_agent')
 can_network(postfix_local_t)
+ifdef(`procmail.te', `
 domain_auto_trans_read(postfix_local_t, procmail_exec_t, procmail_t)
+dontaudit procmail_t postfix_local_t:tcp_socket { read write };
+')
 allow postfix_local_t { etc_aliases_t }:file r_file_perms;
 allow postfix_local_t self:fifo_file rw_file_perms;
 allow postfix_local_t postfix_spool_t:dir r_dir_perms;
file_contexts/program/postfix.fc renamed from tmp/selinux/policy/file_contexts/program/postfix.fc +1 -2
diff -ruN /tmp/selinux/policy/file_contexts/program/postfix.fc ./file_contexts/program/postfix.fc
@@ -31,7 +31,6 @@
 /var/spool/postfix/pid/.*	system_u:object_r:postfix_var_run_t
 /var/spool/postfix/private(/.*)? system_u:object_r:postfix_private_t
 /var/spool/postfix/public(/.*)? system_u:object_r:postfix_public_t
-/var/spool/postfix/defer(red)(/.*)? system_u:object_r:postfix_spool_t
+/var/spool/postfix/defer(red)?(/.*)? system_u:object_r:postfix_spool_t
 /var/spool/postfix/bounce(/.*)? system_u:object_r:postfix_spool_bounce_t
 /var/spool/postfix/flush(/.*)? system_u:object_r:postfix_spool_flush_t
-
macros/program/mta_macros.te renamed from tmp/selinux/policy/macros/program/mta_macros.te +4 -0
diff -ruN /tmp/selinux/policy/macros/program/mta_macros.te ./macros/program/mta_macros.te
@@ -56,6 +56,10 @@
 ', `
 # Read user temporary files.
 allow $1_mail_t $1_tmp_t:file { read getattr };
+ifdef(`postfix.te', `
+# postfix asks for append access but does not need it
+dontaudit $1_mail_t $1_tmp_t:file append;
+')
 allow mta_user_agent $1_tmp_t:file { read getattr };
 
 # Write to the user domain tty.
#1 lore raw
Quoted 3 lines · Russell Coker

I've attached a patch for the postfix policy that fixes two spurious warnings, one potential situation where the policy could fail to compile, and a typo in merging changes into cvs.

Thanks, merged and available in the sourceforge CVS.

--
Stephen D. Smalley, NAI Labs
[email protected]

--
This message was distributed to subscribers of the selinux mailing list. If you no longer wish to subscribe, send mail to [email protected] with the words "unsubscribe selinux" without quotes as the message.