sendmail and cron policy
Subsystems (2)
The attached patch allows sysadm cron jobs to run setfiles without AVC messages, and also allows sendmail to be run from sysadm_t without AVC messages.
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
domains/program/crond.te renamed from usr/src/se/policy/domains/program/crond.te +3 -1
@@ -39,6 +39,8 @@ allow system_crond_t etc_t:file r_file_perms; allow system_crond_t etc_runtime_t:file read; +allow system_crond_t { sysfs_t rpc_pipefs_t }:dir getattr; + read_locale(crond_t) log_domain(crond)
@@ -110,7 +112,7 @@ allow system_crond_t initrc_devpts_t:chr_file { read write }; # Use capabilities. -allow system_crond_t self:capability { chown setgid setuid fowner net_bind_service fsetid }; +allow system_crond_t self:capability { dac_read_search chown setgid setuid fowner net_bind_service fsetid }; # Read the system crontabs. allow system_crond_t system_cron_spool_t:file r_file_perms;
macros/program/sendmail_macros.te renamed from usr/src/se/policy/macros/program/sendmail_macros.te +1 -1
@@ -44,7 +44,7 @@ ifelse(`$1', `sysadm', ` allow $1_mail_t proc_t:dir { getattr search }; -allow $1_mail_t proc_t:file { getattr read }; +allow $1_mail_t proc_t:{ lnk_file file } { getattr read }; allow $1_mail_t sysctl_kernel_t:file { getattr read }; allow $1_mail_t etc_runtime_t:file { getattr read }; ', `
Merged.
Quoted 3 lines · Russell Coker
The attached patch allows sysadm cron jobs to run setfiles without AVC messages, and also allows sendmail to be run from
sysadm_twithout AVC messages.
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.