proc_net_t and mail servers
Subsystems (2)
The attached patches grant postfix access to proc_net_t and dontaudit system_mail_t and sysadm_mail_t access to proc_net_t when sendmail is being used.
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/sendmail_macros.te renamed from tmp/u/etc/selinux/strict/src/policy/macros/program/sendmail_macros.te +1 -0
@@ -45,6 +45,7 @@ ifelse(`$1', `sysadm', ` allow $1_mail_t proc_t:dir { getattr search }; allow $1_mail_t proc_t:{ lnk_file file } { getattr read }; +dontaudit $1_mail_t proc_net_t:dir search; allow $1_mail_t sysctl_kernel_t:file { getattr read }; allow $1_mail_t etc_runtime_t:file { getattr read }; ', `
program/sendmail.te renamed from tmp/u/etc/selinux/strict/src/policy/domains/program/sendmail.te +1 -0
@@ -86,6 +86,7 @@ allow system_mail_t proc_t:dir search; allow system_mail_t proc_t:file { getattr read }; allow system_mail_t proc_t:lnk_file read; +dontaudit system_mail_t proc_net_t:dir search; allow sendmail_t sysctl_kernel_t:dir search; allow sendmail_t sysctl_kernel_t:file { getattr read }; allow system_mail_t fs_t:filesystem getattr;
program/unused/postfix.te renamed from usr/src/se/policy/domains/program/unused/postfix.te +2 -0
@@ -52,6 +52,8 @@ allow postfix_$1_t proc_t:file r_file_perms; allow postfix_$1_t postfix_exec_t:dir r_dir_perms; allow postfix_$1_t fs_t:filesystem getattr; +allow postfix_$1_t proc_net_t:dir search; +allow postfix_$1_t proc_net_t:file { getattr read }; can_exec(postfix_$1_t, postfix_$1_exec_t) allow postfix_$1_t tmp_t:dir getattr;
Merged both.
Quoted 3 lines · Russell Coker
The attached patches grant postfix access to
proc_net_tand dontauditsystem_mail_tandsysadm_mail_taccess toproc_net_twhen sendmail is being used.
Signature · 7 lines
James Carter <[email protected]> National Security Agency -- 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.