postfix policy patch
The attached patch allows the mail server to access the user home directories in the targeted policy, doesn't audit when "find" is run by the Postfix startup and tries to check the SE Linux status, and allows the postfix "showq" program to do DNS lookups.
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/mta.te renamed from program/mta.te.orig +4 -0
@@ -31,6 +31,10 @@ create_dir_file(system_mail_t, mail_spool_t) allow system_mail_t mail_spool_t:fifo_file rw_file_perms; allow system_mail_t etc_mail_t:file { getattr read }; + +# for reading .forward - maybe we need a new type for it? +# also for delivering mail to maildir +file_type_auto_trans(mta_delivery_agent, user_home_dir_t, user_home_t) ', ` ifdef(`sendmail.te', ` # sendmail has an ugly design, the one process parses input from the user and
program/postfix.te renamed from program/postfix.te.orig +4 -1
@@ -69,6 +69,9 @@ postfix_domain(master, `, mail_server_domain') rhgb_domain(postfix_master_t) +# for a find command +dontaudit postfix_master_t security_t:dir search; + read_sysctl(postfix_master_t) domain_auto_trans(initrc_t, postfix_master_exec_t, postfix_master_t)
@@ -260,7 +263,7 @@ postfix_user_domain(showq) # the following auto_trans is usually in postfix server domain domain_auto_trans(postfix_master_t, postfix_showq_exec_t, postfix_showq_t) -allow postfix_showq_t self:udp_socket { create ioctl }; +can_resolve(postfix_showq_t) r_dir_file(postfix_showq_t, postfix_spool_maildrop_t) domain_auto_trans(postfix_postqueue_t, postfix_showq_exec_t, postfix_showq_t) allow postfix_showq_t self:capability { setuid setgid };