Chris PeBenito 23caa6
Chris PeBenito 3b9147
policy_module(cron,1.3.3)
Chris PeBenito 23caa6
Chris PeBenito 25c674
gen_require(`
Chris PeBenito 25c674
	class passwd rootok;
Chris PeBenito 25c674
')
Chris PeBenito 25c674
Chris PeBenito 23caa6
########################################
Chris PeBenito 23caa6
#
Chris PeBenito 23caa6
# Declarations
Chris PeBenito 23caa6
#
Chris PeBenito df00b2
attribute cron_spool_type;
Chris PeBenito 23caa6
Chris PeBenito 3b3bf8
type anacron_exec_t;
Chris PeBenito 8fd367
files_type(anacron_exec_t)
Chris PeBenito 3b3bf8
Chris PeBenito 23caa6
type cron_spool_t;
Chris PeBenito 8fd367
files_type(cron_spool_t)
Chris PeBenito 23caa6
Chris PeBenito 3774e4
type crond_t;
Chris PeBenito 9cca1c
# real declaration moved to mls until
Chris PeBenito 9cca1c
# range_transition works in loadable modules
Chris PeBenito 9cca1c
gen_require(`
Chris PeBenito 9cca1c
	type crond_exec_t;
Chris PeBenito 9cca1c
')
Chris PeBenito c9428d
init_daemon_domain(crond_t,crond_exec_t)
Chris PeBenito 15722e
domain_interactive_fd(crond_t)
Chris PeBenito 2e863f
domain_cron_exemption_source(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 23caa6
type crond_tmp_t;
Chris PeBenito c9428d
files_tmp_file(crond_tmp_t)
Chris PeBenito 23caa6
Chris PeBenito 23caa6
type crond_var_run_t;
Chris PeBenito c9428d
files_pid_file(crond_var_run_t)
Chris PeBenito 23caa6
Chris PeBenito 23caa6
type crontab_exec_t;
Chris PeBenito 8fd367
files_type(crontab_exec_t)
Chris PeBenito 23caa6
Chris PeBenito aae06c
type system_cron_spool_t, cron_spool_type;
Chris PeBenito aae06c
files_type(system_cron_spool_t)
Chris PeBenito aae06c
Chris PeBenito 2db2c7
ifdef(`targeted_policy',`
Chris PeBenito 2db2c7
	typealias crond_t alias system_crond_t;
Chris PeBenito 2db2c7
',`
Chris PeBenito 2db2c7
	type system_crond_t;
Chris PeBenito 2db2c7
')
Chris PeBenito c9428d
init_daemon_domain(system_crond_t,anacron_exec_t)
Chris PeBenito c9428d
corecmd_shell_entry_type(system_crond_t)
Chris PeBenito 23caa6
role system_r types system_crond_t;
Chris PeBenito 23caa6
Chris PeBenito 075c4f
type system_crond_lock_t;
Chris PeBenito c9428d
files_lock_file(system_crond_lock_t)
Chris PeBenito 075c4f
Chris PeBenito 23caa6
type system_crond_tmp_t;
Chris PeBenito c9428d
files_tmp_file(system_crond_tmp_t)
Chris PeBenito 23caa6
Chris PeBenito 1dd86c
ifdef(`targeted_policy',`
Chris PeBenito 1dd86c
	type sysadm_cron_spool_t;
Chris PeBenito 1dd86c
	files_type(sysadm_cron_spool_t)
Chris PeBenito 1dd86c
')
Chris PeBenito 1dd86c
Chris PeBenito 23caa6
########################################
Chris PeBenito 23caa6
#
Chris PeBenito 23caa6
# Cron Local policy
Chris PeBenito 23caa6
#
Chris PeBenito 23caa6
Chris PeBenito d8636f
allow crond_t self:capability { dac_override setgid setuid sys_nice dac_read_search audit_control };
Chris PeBenito 23caa6
dontaudit crond_t self:capability { sys_resource sys_tty_config };
Chris PeBenito 9d3bdc
allow crond_t self:process ~{ ptrace setcurrent setexec setfscreate setrlimit execmem execstack execheap };
Chris PeBenito 681c9a
allow crond_t self:process { setexec setfscreate };
Chris PeBenito 23caa6
allow crond_t self:fd use;
Chris PeBenito 0a10b1
allow crond_t self:fifo_file rw_file_perms;
Chris PeBenito 0a10b1
allow crond_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito 0a10b1
allow crond_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito 23caa6
allow crond_t self:unix_dgram_socket sendto;
Chris PeBenito 23caa6
allow crond_t self:unix_stream_socket connectto;
Chris PeBenito 0a10b1
allow crond_t self:shm create_shm_perms;
Chris PeBenito 0a10b1
allow crond_t self:sem create_sem_perms;
Chris PeBenito 0a10b1
allow crond_t self:msgq create_msgq_perms;
Chris PeBenito 23caa6
allow crond_t self:msg { send receive };
Chris PeBenito 23caa6
Chris PeBenito 3b857e
allow crond_t crond_var_run_t:file create_file_perms;
Chris PeBenito 1c1ac6
files_pid_filetrans(crond_t,crond_var_run_t,file)
Chris PeBenito 23caa6
Chris PeBenito 681c9a
allow crond_t cron_spool_t:dir rw_dir_perms;
Chris PeBenito 0a10b1
allow crond_t cron_spool_t:file r_file_perms;
Chris PeBenito 0a10b1
allow crond_t system_cron_spool_t:dir r_dir_perms;
Chris PeBenito 0a10b1
allow crond_t system_cron_spool_t:file r_file_perms;
Chris PeBenito 075c4f
Chris PeBenito 445522
kernel_read_kernel_sysctls(crond_t)
Chris PeBenito 8bd678
dev_read_sysfs(crond_t)
Chris PeBenito 5e0da6
selinux_get_fs_mount(crond_t)
Chris PeBenito 5e0da6
selinux_validate_context(crond_t)
Chris PeBenito 5e0da6
selinux_compute_access_vector(crond_t)
Chris PeBenito 5e0da6
selinux_compute_create_context(crond_t)
Chris PeBenito 5e0da6
selinux_compute_relabel_context(crond_t)
Chris PeBenito 5e0da6
selinux_compute_user_contexts(crond_t)
Chris PeBenito 23caa6
Karl MacMillan f0c985
dev_read_urand(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 0fd9dc
fs_getattr_all_fs(crond_t)
Chris PeBenito ab940a
fs_search_auto_mountpoints(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 0fd9dc
term_dontaudit_use_console(crond_t)
Chris PeBenito 23caa6
Chris PeBenito efd8ed
# need auth_chkpwd to check for locked accounts.
Chris PeBenito c9428d
auth_domtrans_chk_passwd(crond_t)
Chris PeBenito efd8ed
Chris PeBenito c9428d
corecmd_exec_shell(crond_t)
Chris PeBenito c9428d
corecmd_list_sbin(crond_t)
Chris PeBenito b0d224
corecmd_read_sbin_symlinks(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 15722e
domain_use_interactive_fds(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 8fd367
files_read_etc_files(crond_t)
Chris PeBenito 9e04f5
files_read_generic_spool(crond_t)
Chris PeBenito 681c9a
files_list_usr(crond_t)
Chris PeBenito 3774e4
# Read from /var/spool/cron.
Chris PeBenito 3774e4
files_search_var_lib(crond_t)
Chris PeBenito 3774e4
files_search_default(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 1c1ac6
init_use_fds(crond_t)
Chris PeBenito 1815ba
init_use_script_ptys(crond_t)
Chris PeBenito 68228b
init_rw_utmp(crond_t)
Chris PeBenito 075c4f
Chris PeBenito c9428d
libs_use_ld_so(crond_t)
Chris PeBenito c9428d
libs_use_shared_libs(crond_t)
Chris PeBenito 23caa6
Chris PeBenito c9428d
logging_send_syslog_msg(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 5e0da6
seutil_read_config(crond_t)
Chris PeBenito 5e0da6
seutil_read_default_contexts(crond_t)
Chris PeBenito 8fd367
seutil_sigchld_newrole(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 23caa6
miscfiles_read_localization(crond_t)
Chris PeBenito 23caa6
Chris PeBenito 103fe2
userdom_use_unpriv_users_fds(crond_t)
Chris PeBenito 977840
# Not sure why this is needed
Chris PeBenito 103fe2
userdom_list_all_users_home_dirs(crond_t)
Chris PeBenito 23caa6
Chris PeBenito b24f35
ifdef(`distro_redhat', `
Chris PeBenito b24f35
	# Run the rpm program in the rpm_t domain. Allow creation of RPM log files
Chris PeBenito b24f35
	# via redirection of standard out.
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito b24f35
		rpm_manage_log(crond_t)
Chris PeBenito b24f35
	')
Chris PeBenito 075c4f
')
Chris PeBenito 075c4f
Chris PeBenito ec848d
ifdef(`targeted_policy',`
Chris PeBenito 30910b
	allow crond_t system_crond_tmp_t:dir create_dir_perms;
Chris PeBenito 30910b
	allow crond_t system_crond_tmp_t:file create_file_perms;
Chris PeBenito 30910b
	allow crond_t system_crond_tmp_t:lnk_file create_lnk_perms;
Chris PeBenito 30910b
	allow crond_t system_crond_tmp_t:sock_file create_file_perms;
Chris PeBenito 30910b
	allow crond_t system_crond_tmp_t:fifo_file create_file_perms;
Chris PeBenito 103fe2
	files_tmp_filetrans(crond_t,system_crond_tmp_t,{ dir file lnk_file sock_file fifo_file })
Chris PeBenito 30910b
Chris PeBenito 955019
	unconfined_domain(crond_t)
Chris PeBenito 9dd500
Chris PeBenito 9dd500
	# cjp: fix this to generic_user interfaces
Chris PeBenito 103fe2
	userdom_manage_user_home_content_dirs(user,crond_t)
Chris PeBenito 103fe2
	userdom_manage_generic_user_home_content_files(crond_t)
Chris PeBenito 103fe2
	userdom_manage_generic_user_home_content_symlinks(crond_t)
Chris PeBenito 103fe2
	userdom_manage_generic_user_home_content_sockets(crond_t)
Chris PeBenito 103fe2
	userdom_manage_generic_user_home_content_pipes(crond_t)
Chris PeBenito 103fe2
	userdom_generic_user_home_dir_filetrans_generic_user_home_content(crond_t,{ dir file lnk_file fifo_file sock_file })
Chris PeBenito 0b12fa
Chris PeBenito 0b12fa
	allow crond_t unconfined_t:dbus send_msg;
Chris PeBenito 0b12fa
	allow crond_t initrc_t:dbus send_msg;
Chris PeBenito a3cf80
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito a3cf80
		mono_domtrans(crond_t)
Chris PeBenito a3cf80
	')
Chris PeBenito 30910b
',`
Chris PeBenito 30910b
	allow crond_t crond_tmp_t:dir create_dir_perms;
Chris PeBenito 30910b
	allow crond_t crond_tmp_t:file create_file_perms;
Chris PeBenito 103fe2
	files_tmp_filetrans(crond_t, crond_tmp_t, { file dir })
Chris PeBenito 15c235
Chris PeBenito 15c235
	mta_send_mail(crond_t)
Chris PeBenito 23caa6
')
Chris PeBenito 23caa6
Chris PeBenito b24f35
tunable_policy(`fcron_crond', `
Chris PeBenito b24f35
	allow crond_t system_cron_spool_t:file create_file_perms;
Chris PeBenito b24f35
')
Chris PeBenito b24f35
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 8a0a99
	amavis_search_lib(crond_t)
Chris PeBenito 8a0a99
')
Chris PeBenito 8a0a99
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito af2345
	hal_dbus_send(crond_t)
Chris PeBenito 9b0640
')
Chris PeBenito 9b0640
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito ab940a
	nis_use_ypbind(crond_t)
Chris PeBenito ab940a
')
Chris PeBenito ab940a
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1815ba
	nscd_socket_use(crond_t)
Chris PeBenito 493d6c
')
Chris PeBenito 493d6c
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito ebdc3b
	# Commonly used from postinst scripts
Chris PeBenito 1815ba
	rpm_read_pipes(crond_t)
Chris PeBenito ebdc3b
')
Chris PeBenito ebdc3b
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito a1fcff
	# allow crond to find /usr/lib/postgresql/bin/do.maintenance
Chris PeBenito 1815ba
	postgresql_search_db(crond_t)
Chris PeBenito a1fcff
')
Chris PeBenito a1fcff
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito c9428d
	udev_read_db(crond_t)
Chris PeBenito 23caa6
')
Chris PeBenito 23caa6
Chris PeBenito 23caa6
########################################
Chris PeBenito 23caa6
#
Chris PeBenito 23caa6
# System cron process domain
Chris PeBenito 23caa6
#
Chris PeBenito 9bbc75
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 9bbc75
	# cjp: why?
Chris PeBenito 9bbc75
	squid_domtrans(system_crond_t)
Chris PeBenito 9bbc75
')
Chris PeBenito 9bbc75
Chris PeBenito 9bbc75
ifdef(`targeted_policy',`
Chris PeBenito 30910b
	# cjp: FIXME
Chris PeBenito 9bbc75
	allow crond_t unconfined_t:process transition;
Chris PeBenito 9bbc75
',`
Chris PeBenito 19b555
	allow system_crond_t self:capability { dac_override dac_read_search chown setgid setuid fowner net_bind_service fsetid };
Chris PeBenito 19b555
	allow system_crond_t self:process { signal_perms setsched };
Chris PeBenito 19b555
	allow system_crond_t self:fifo_file rw_file_perms;
Chris PeBenito 19b555
	allow system_crond_t self:passwd rootok;
Chris PeBenito 19b555
Chris PeBenito 19b555
	# The entrypoint interface is not used as this is not
Chris PeBenito 19b555
	# a regular entrypoint.  Since crontab files are
Chris PeBenito 19b555
	# not directly executed, crond must ensure that
Chris PeBenito 19b555
	# the crontab file has a type that is appropriate
Chris PeBenito 19b555
	# for the domain of the user cron job.  It
Chris PeBenito 19b555
	# performs an entrypoint permission check
Chris PeBenito 19b555
	# for this purpose.
Chris PeBenito 19b555
	allow system_crond_t system_cron_spool_t:file entrypoint;
Chris PeBenito 19b555
Chris PeBenito 19b555
	allow system_crond_t system_cron_spool_t:file r_file_perms;
Chris PeBenito 19b555
Chris PeBenito 19b555
	# Permit a transition from the crond_t domain to this domain.
Chris PeBenito 19b555
	# The transition is requested explicitly by the modified crond 
Chris PeBenito 19b555
	# via setexeccon.  There is no way to set up an automatic
Chris PeBenito 19b555
	# transition, since crontabs are configuration files, not executables.
Chris PeBenito 19b555
	allow crond_t system_crond_t:process transition;
Chris PeBenito 19b555
	dontaudit crond_t system_crond_t:process { noatsecure siginh rlimitinh };
Chris PeBenito 19b555
	allow crond_t system_crond_t:fd use;
Chris PeBenito 19b555
	allow system_crond_t crond_t:fd use;
Chris PeBenito 19b555
	allow system_crond_t crond_t:fifo_file rw_file_perms;
Chris PeBenito 19b555
	allow system_crond_t crond_t:process sigchld;
Chris PeBenito 19b555
Chris PeBenito 19b555
	# Write /var/lock/makewhatis.lock.
Chris PeBenito 19b555
	allow system_crond_t system_crond_lock_t:file create_file_perms;
Chris PeBenito 1c1ac6
	files_lock_filetrans(system_crond_t,system_crond_lock_t,file)
Chris PeBenito 19b555
Chris PeBenito 19b555
	# write temporary files
Chris PeBenito 19b555
	allow system_crond_t system_crond_tmp_t:file create_file_perms;
Chris PeBenito 1c1ac6
	files_tmp_filetrans(system_crond_t,system_crond_tmp_t,file)
Chris PeBenito 19b555
Chris PeBenito 19b555
	# write temporary files in crond tmp dir:
Chris PeBenito 19b555
	allow system_crond_t crond_tmp_t:dir rw_dir_perms;
Chris PeBenito 19b555
	type_transition system_crond_t crond_tmp_t:file system_crond_tmp_t;
Chris PeBenito 19b555
Chris PeBenito 19b555
	# Read from /var/spool/cron.
Chris PeBenito 19b555
	allow system_crond_t cron_spool_t:dir r_dir_perms;
Chris PeBenito 19b555
	allow system_crond_t cron_spool_t:file r_file_perms;
Chris PeBenito 19b555
Chris PeBenito 445522
	kernel_read_kernel_sysctls(system_crond_t)
Chris PeBenito 19b555
	kernel_read_system_state(system_crond_t)
Chris PeBenito 19b555
	kernel_read_software_raid_state(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	# ps does not need to access /boot when run from cron
Chris PeBenito 1c1ac6
	files_dontaudit_search_boot(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	corenet_tcp_sendrecv_all_if(system_crond_t)
Chris PeBenito 19b555
	corenet_raw_sendrecv_all_if(system_crond_t)
Chris PeBenito 19b555
	corenet_udp_sendrecv_all_if(system_crond_t)
Chris PeBenito 19b555
	corenet_tcp_sendrecv_all_nodes(system_crond_t)
Chris PeBenito 19b555
	corenet_raw_sendrecv_all_nodes(system_crond_t)
Chris PeBenito 19b555
	corenet_udp_sendrecv_all_nodes(system_crond_t)
Chris PeBenito 19b555
	corenet_tcp_sendrecv_all_ports(system_crond_t)
Chris PeBenito 19b555
	corenet_udp_sendrecv_all_ports(system_crond_t)
Chris PeBenito bd7037
	corenet_non_ipsec_sendrecv(system_crond_t)
Chris PeBenito 19b555
	corenet_tcp_bind_all_nodes(system_crond_t)
Chris PeBenito 19b555
	corenet_udp_bind_all_nodes(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	dev_getattr_all_blk_files(system_crond_t)
Chris PeBenito 19b555
	dev_getattr_all_chr_files(system_crond_t)
Chris PeBenito 19b555
	dev_read_urand(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	fs_getattr_all_fs(system_crond_t)
Chris PeBenito 19b555
	fs_getattr_all_files(system_crond_t)
Chris PeBenito 19b555
	fs_getattr_all_symlinks(system_crond_t)
Chris PeBenito 19b555
	fs_getattr_all_pipes(system_crond_t)
Chris PeBenito 19b555
	fs_getattr_all_sockets(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	corecmd_exec_bin(system_crond_t)
Chris PeBenito 19b555
	corecmd_exec_sbin(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	domain_exec_all_entry_files(system_crond_t)
Chris PeBenito 19b555
	# quiet other ps operations
Chris PeBenito 19b555
	domain_dontaudit_read_all_domains_state(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	files_exec_etc_files(system_crond_t)
Chris PeBenito 19b555
	files_read_etc_files(system_crond_t)
Chris PeBenito 19b555
	files_read_etc_runtime_files(system_crond_t)
Chris PeBenito 9e04f5
	files_list_all(system_crond_t)
Chris PeBenito 19b555
	files_getattr_all_dirs(system_crond_t)
Chris PeBenito 19b555
	files_getattr_all_files(system_crond_t)
Chris PeBenito 19b555
	files_getattr_all_symlinks(system_crond_t)
Chris PeBenito 19b555
	files_getattr_all_pipes(system_crond_t)
Chris PeBenito 19b555
	files_getattr_all_sockets(system_crond_t)
Chris PeBenito 19b555
	files_read_usr_files(system_crond_t)
Chris PeBenito 19b555
	files_read_var_files(system_crond_t)
Chris PeBenito 19b555
	# for nscd:
Chris PeBenito 19b555
	files_dontaudit_search_pids(system_crond_t)
Chris PeBenito 19b555
	# Access other spool directories like
Chris PeBenito 19b555
	# /var/spool/anacron and /var/spool/slrnpull.
Chris PeBenito 9e04f5
	files_manage_generic_spool(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 1c1ac6
	init_use_fds(system_crond_t)
Chris PeBenito 15722e
	init_use_script_fds(system_crond_t)
Chris PeBenito 1815ba
	init_use_script_ptys(system_crond_t)
Chris PeBenito 68228b
	init_read_utmp(system_crond_t)
Chris PeBenito 68228b
	init_dontaudit_rw_utmp(system_crond_t)
Chris PeBenito 19b555
	# prelink tells init to restart it self, we either need to allow or dontaudit
Chris PeBenito 19b555
	init_write_initctl(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	libs_use_ld_so(system_crond_t)
Chris PeBenito 19b555
	libs_use_shared_libs(system_crond_t)
Chris PeBenito 19b555
	libs_exec_lib_files(system_crond_t)
Chris PeBenito 19b555
	libs_exec_ld_so(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	logging_read_generic_logs(system_crond_t)
Chris PeBenito 19b555
	logging_send_syslog_msg(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	miscfiles_read_localization(system_crond_t)
Chris PeBenito 19b555
	miscfiles_manage_man_pages(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	seutil_read_config(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	mta_send_mail(system_crond_t)
Chris PeBenito 19b555
Chris PeBenito 19b555
	ifdef(`distro_redhat', `
Chris PeBenito 19b555
		# Run the rpm program in the rpm_t domain. Allow creation of RPM log files
Chris PeBenito 19b555
		# via redirection of standard out.
Chris PeBenito bb7170
		optional_policy(`
Chris PeBenito 19b555
			rpm_manage_log(system_crond_t)
Chris PeBenito 19b555
		')
Chris PeBenito 19b555
	')
Chris PeBenito 23caa6
Chris PeBenito 19b555
	tunable_policy(`cron_can_relabel',`
Chris PeBenito 19b555
		seutil_domtrans_setfiles(system_crond_t)
Chris PeBenito 19b555
	',`
Chris PeBenito 19b555
		selinux_get_fs_mount(system_crond_t)
Chris PeBenito 19b555
		selinux_validate_context(system_crond_t)
Chris PeBenito 19b555
		selinux_compute_access_vector(system_crond_t)
Chris PeBenito 19b555
		selinux_compute_create_context(system_crond_t)
Chris PeBenito 19b555
		selinux_compute_relabel_context(system_crond_t)
Chris PeBenito 19b555
		selinux_compute_user_contexts(system_crond_t)
Chris PeBenito 19b555
		seutil_read_file_contexts(system_crond_t)
Chris PeBenito 19b555
	')
Chris PeBenito 3774e4
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 977840
		# Needed	 for certwatch
Chris PeBenito 977840
		apache_exec_modules(system_crond_t)
Chris PeBenito 0f27d9
		apache_read_config(system_crond_t)
Chris PeBenito 0f27d9
		apache_read_log(system_crond_t)
Chris PeBenito 0f27d9
		apache_read_sys_content(system_crond_t)
Chris PeBenito 977840
	')
Chris PeBenito 977840
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito af2345
		cyrus_manage_data(system_crond_t)
Chris PeBenito af2345
	')
Chris PeBenito af2345
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 19b555
		ftp_read_log(system_crond_t)
Chris PeBenito b24f35
	')
Chris PeBenito b24f35
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito af2345
		inn_manage_log(system_crond_t)
Chris PeBenito af2345
		inn_manage_pid(system_crond_t)
Chris PeBenito af2345
		inn_read_config(system_crond_t)
Chris PeBenito af2345
	')
Chris PeBenito af2345
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 679626
		mrtg_append_create_logs(system_crond_t)
Chris PeBenito 679626
	')
Chris PeBenito 679626
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 3b9147
		mta_send_mail(system_crond_t)
Chris PeBenito 3b9147
	')
Chris PeBenito 3b9147
Chris PeBenito 3b9147
	optional_policy(`
Chris PeBenito 19b555
		mysql_read_config(system_crond_t)
Chris PeBenito 19b555
	')
Chris PeBenito 23caa6
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 19b555
		nis_use_ypbind(system_crond_t)
Chris PeBenito 19b555
	')
Chris PeBenito 246a60
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 1815ba
		nscd_socket_use(system_crond_t)
Chris PeBenito 19b555
	')
Chris PeBenito cf6a7d
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 02bcb8
		postfix_read_config(system_crond_t)
Chris PeBenito 02bcb8
	')	
Chris PeBenito 02bcb8
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 2c2435
		prelink_read_cache(system_crond_t)
Chris PeBenito 2c2435
		prelink_manage_log(system_crond_t)
Chris PeBenito 2c2435
		prelink_delete_cache(system_crond_t)
Chris PeBenito 2c2435
	')
Chris PeBenito 2c2435
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 19b555
		samba_read_config(system_crond_t)
Chris PeBenito 19b555
		samba_read_log(system_crond_t)
Chris PeBenito 19b555
		#samba_read_secrets(system_crond_t)
Chris PeBenito 19b555
	')
Chris PeBenito 23caa6
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 6a57b6
		slocate_create_append_log(system_crond_t)
Chris PeBenito 6a57b6
	')
Chris PeBenito 6a57b6
Chris PeBenito bb7170
	optional_policy(`
Chris PeBenito 0f73fd
		sysstat_manage_log(system_crond_t)
Chris PeBenito 0f73fd
	')
Chris PeBenito 0f73fd
Chris PeBenito 19b555
	ifdef(`TODO',`
Chris PeBenito 19b555
	dontaudit userdomain system_crond_t:fd use;
Chris PeBenito 84c922
Chris PeBenito 19b555
	allow system_crond_t { sysfs_t rpc_pipefs_t }:dir getattr;
Chris PeBenito 23caa6
Chris PeBenito 19b555
	# for if /var/mail is a symlink
Chris PeBenito 19b555
	allow system_crond_t mail_spool_t:lnk_file read;
Chris PeBenito 23caa6
Chris PeBenito 19b555
	ifdef(`mta.te', `
Chris PeBenito 19b555
	allow mta_user_agent system_crond_t:fd use;
Chris PeBenito 19b555
	r_dir_file(system_mail_t, crond_tmp_t)
Chris PeBenito 19b555
	')
Chris PeBenito 19b555
	') dnl end TODO
Chris PeBenito 7bba9d
')