Skip to contentSkip to conversation

sendmail and cron policy

PATCH Russell Coker 2 participants 2 messages Sep 24, 2004 – Sep 28, 2004

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

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 };
 ', `
#1 lore raw

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_t without 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.