Jeremy Solt 6430c7
policy_module(clogd, 1.0.0)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
########################################
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
# Declarations
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
Jeremy Solt 6055ab
type clogd_t;
Jeremy Solt 6055ab
type clogd_exec_t;
Jeremy Solt 6055ab
init_daemon_domain(clogd_t, clogd_exec_t)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
type clogd_tmpfs_t;
Jeremy Solt 6055ab
files_tmpfs_file(clogd_tmpfs_t)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
# pid files
Jeremy Solt 6055ab
type clogd_var_run_t;
Jeremy Solt 6055ab
files_pid_file(clogd_var_run_t)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
########################################
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
# clogd local policy
Jeremy Solt 6055ab
#
Jeremy Solt 6055ab
Jeremy Solt 6055ab
allow clogd_t self:capability { net_admin mknod };
Jeremy Solt 6055ab
allow clogd_t self:process signal;
Jeremy Solt 6055ab
Jeremy Solt 6055ab
allow clogd_t self:sem create_sem_perms;
Jeremy Solt 6055ab
allow clogd_t self:shm create_shm_perms;
Jeremy Solt 6055ab
allow clogd_t self:netlink_socket create_socket_perms;
Jeremy Solt 6055ab
allow clogd_t self:unix_dgram_socket create_socket_perms;
Jeremy Solt 6055ab
Jeremy Solt 6055ab
manage_dirs_pattern(clogd_t, clogd_tmpfs_t, clogd_tmpfs_t)
Jeremy Solt 6055ab
manage_files_pattern(clogd_t, clogd_tmpfs_t, clogd_tmpfs_t)
Jeremy Solt 6430c7
fs_tmpfs_filetrans(clogd_t, clogd_tmpfs_t, { dir file })
Jeremy Solt 6055ab
Jeremy Solt 6055ab
# pid files
Jeremy Solt 6055ab
manage_files_pattern(clogd_t, clogd_var_run_t, clogd_var_run_t)
Jeremy Solt 6055ab
manage_sock_files_pattern(clogd_t, clogd_var_run_t, clogd_var_run_t)
Jeremy Solt 6055ab
files_pid_filetrans(clogd_t, clogd_var_run_t, { file })
Jeremy Solt 6055ab
Chris PeBenito a107f8
dev_read_lvm_control(clogd_t)
Jeremy Solt 6055ab
dev_manage_generic_blk_files(clogd_t)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
storage_raw_read_fixed_disk(clogd_t)
Jeremy Solt 6055ab
storage_raw_write_fixed_disk(clogd_t)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
logging_send_syslog_msg(clogd_t)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
miscfiles_read_localization(clogd_t)
Jeremy Solt 6055ab
Jeremy Solt 6055ab
optional_policy(`
Jeremy Solt 6055ab
	aisexec_stream_connect(clogd_t)
Jeremy Solt 6055ab
	corosync_stream_connect(clogd_t)
Jeremy Solt 6055ab
')