Chris PeBenito 17de1b
Chris PeBenito c12621
policy_module(watchdog, 1.6.1)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
#################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Rules for the watchdog_t domain.
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type watchdog_t;
Chris PeBenito 17de1b
type watchdog_exec_t;
Chris PeBenito 0bfccd
init_daemon_domain(watchdog_t, watchdog_exec_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type watchdog_log_t;
Chris PeBenito 17de1b
logging_log_file(watchdog_log_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
type watchdog_var_run_t;
Chris PeBenito 17de1b
files_pid_file(watchdog_var_run_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
########################################
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
# Declarations
Chris PeBenito 17de1b
#
Chris PeBenito 17de1b
Chris PeBenito 17de1b
allow watchdog_t self:capability { sys_admin net_admin sys_boot ipc_lock sys_pacct sys_nice sys_resource };
Chris PeBenito 17de1b
dontaudit watchdog_t self:capability sys_tty_config;
Chris PeBenito 17de1b
allow watchdog_t self:process { setsched signal_perms };
Chris PeBenito c0868a
allow watchdog_t self:fifo_file rw_fifo_file_perms;
Chris PeBenito 17de1b
allow watchdog_t self:unix_stream_socket create_socket_perms;
Chris PeBenito 17de1b
allow watchdog_t self:tcp_socket create_stream_socket_perms;
Chris PeBenito 17de1b
allow watchdog_t self:udp_socket create_socket_perms;
Chris PeBenito 17de1b
Chris PeBenito c0868a
allow watchdog_t watchdog_log_t:file manage_file_perms;
Chris PeBenito 0bfccd
logging_log_filetrans(watchdog_t, watchdog_log_t, file)
Chris PeBenito 17de1b
Chris PeBenito 0bfccd
manage_files_pattern(watchdog_t, watchdog_var_run_t, watchdog_var_run_t)
Chris PeBenito 0bfccd
files_pid_filetrans(watchdog_t, watchdog_var_run_t, file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
kernel_read_system_state(watchdog_t)
Chris PeBenito 17de1b
kernel_read_kernel_sysctls(watchdog_t)
Chris PeBenito 17de1b
kernel_unmount_proc(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# for orderly shutdown
Chris PeBenito 17de1b
corecmd_exec_shell(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# cjp: why networking?
Chris PeBenito 190066
corenet_all_recvfrom_unlabeled(watchdog_t)
Chris PeBenito 190066
corenet_all_recvfrom_netlabel(watchdog_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_generic_if(watchdog_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_generic_if(watchdog_t)
Chris PeBenito c12621
corenet_tcp_sendrecv_generic_node(watchdog_t)
Chris PeBenito c12621
corenet_udp_sendrecv_generic_node(watchdog_t)
Chris PeBenito 17de1b
corenet_tcp_sendrecv_all_ports(watchdog_t)
Chris PeBenito 17de1b
corenet_udp_sendrecv_all_ports(watchdog_t)
Chris PeBenito 17de1b
corenet_tcp_connect_all_ports(watchdog_t)
Chris PeBenito 17de1b
corenet_sendrecv_all_client_packets(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
dev_read_sysfs(watchdog_t)
Chris PeBenito 17de1b
dev_write_watchdog(watchdog_t)
Chris PeBenito 17de1b
# do not care about saving the random seed
Chris PeBenito 17de1b
dev_dontaudit_read_rand(watchdog_t)
Chris PeBenito 17de1b
dev_dontaudit_read_urand(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
domain_use_interactive_fds(watchdog_t)
Chris PeBenito 17de1b
domain_getsession_all_domains(watchdog_t)
Chris PeBenito 17de1b
domain_sigchld_all_domains(watchdog_t)
Chris PeBenito 17de1b
domain_sigstop_all_domains(watchdog_t)
Chris PeBenito 17de1b
domain_signull_all_domains(watchdog_t)
Chris PeBenito 17de1b
domain_signal_all_domains(watchdog_t)
Chris PeBenito 17de1b
domain_kill_all_domains(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
files_read_etc_files(watchdog_t)
Chris PeBenito 17de1b
# for updating mtab on umount
Chris PeBenito 17de1b
files_manage_etc_runtime_files(watchdog_t)
Chris PeBenito 17de1b
files_etc_filetrans_etc_runtime(watchdog_t,file)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
fs_unmount_xattr_fs(watchdog_t)
Chris PeBenito 17de1b
fs_getattr_all_fs(watchdog_t)
Chris PeBenito 17de1b
fs_search_auto_mountpoints(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
# record the fact that we are going down
Chris PeBenito 17de1b
auth_append_login_records(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
logging_send_syslog_msg(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
miscfiles_read_localization(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
sysnet_read_config(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
userdom_dontaudit_use_unpriv_user_fds(watchdog_t)
Chris PeBenito 296273
userdom_dontaudit_search_user_home_dirs(watchdog_t)
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	mta_send_mail(watchdog_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	nis_use_ypbind(watchdog_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	seutil_sigchld_newrole(watchdog_t)
Chris PeBenito 17de1b
')
Chris PeBenito 17de1b
Chris PeBenito 17de1b
optional_policy(`
Chris PeBenito 17de1b
	udev_read_db(watchdog_t)
Chris PeBenito 17de1b
')