Blame strict/domains/misc/fcron.te
|
Chris PeBenito |
0fbfa5 |
#DESC fcron - additions to cron policy for a more powerful cron program
|
|
Chris PeBenito |
0fbfa5 |
#
|
|
Chris PeBenito |
0fbfa5 |
# Domain for fcron, a more powerful cron program.
|
|
Chris PeBenito |
0fbfa5 |
#
|
|
Chris PeBenito |
0fbfa5 |
# Needs cron.te installed.
|
|
Chris PeBenito |
0fbfa5 |
#
|
|
Chris PeBenito |
0fbfa5 |
# Author: Russell Coker <russell@coker.com.au>
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
# Use capabilities.
|
|
Chris PeBenito |
0fbfa5 |
allow crond_t self:capability { dac_override dac_read_search };
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
# differences between r_dir_perms and rw_dir_perms
|
|
Chris PeBenito |
0fbfa5 |
allow crond_t cron_spool_t:dir { add_name remove_name write };
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
ifdef(`mta.te', `
|
|
Chris PeBenito |
0fbfa5 |
# not sure why we need write access, but Postfix does not work without it
|
|
Chris PeBenito |
0fbfa5 |
# I will have to change fcron to avoid the need for this
|
|
Chris PeBenito |
0fbfa5 |
allow { system_mail_t mta_user_agent } cron_spool_t:file { read write getattr };
|
|
Chris PeBenito |
0fbfa5 |
')
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
ifdef(`distro_debian', `
|
|
Chris PeBenito |
0fbfa5 |
can_exec(dpkg_t, crontab_exec_t)
|
|
Chris PeBenito |
0fbfa5 |
file_type_auto_trans(dpkg_t, cron_spool_t, sysadm_cron_spool_t, file)
|
|
Chris PeBenito |
0fbfa5 |
')
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
rw_dir_create_file(crond_t, cron_spool_t)
|
|
Chris PeBenito |
0fbfa5 |
can_setfscreate(crond_t)
|
|
Chris PeBenito |
0fbfa5 |
|
|
Chris PeBenito |
0fbfa5 |
# for /var/run/fcron.fifo
|
|
Chris PeBenito |
0fbfa5 |
file_type_auto_trans(crond_t, var_run_t, crond_var_run_t, sock_file)
|