policy_module(rhnsd, 1.0.0) ######################################## # # Declarations # type rhnsd_t; type rhnsd_exec_t; init_daemon_domain(rhnsd_t, rhnsd_exec_t) type rhnsd_var_run_t; files_pid_file(rhnsd_var_run_t) type rhnsd_initrc_exec_t; init_script_file(rhnsd_initrc_exec_t) ######################################## # # rhnsd local policy # allow rhnsd_t self:capability { kill }; allow rhnsd_t self:process { fork signal }; allow rhnsd_t self:fifo_file rw_fifo_file_perms; allow rhnsd_t self:unix_stream_socket create_stream_socket_perms; manage_dirs_pattern(rhnsd_t, rhnsd_var_run_t, rhnsd_var_run_t) manage_files_pattern(rhnsd_t, rhnsd_var_run_t, rhnsd_var_run_t) files_pid_filetrans(rhnsd_t, rhnsd_var_run_t, { dir file }) corecmd_exec_bin(rhnsd_t) logging_send_syslog_msg(rhnsd_t) optional_policy(` # execute rhn_check rpm_domtrans(rhnsd_t) ')