Oreon-Lime-R2/selinux-policy/selinux-policy-d9f4a2b/selinux-policy-d9f4a2bbeb91fd95d0c35a90936efb9ea99d2455/policy/modules/contrib/clogd.te

47 lines
1.1 KiB
Text
Raw Permalink Normal View History

policy_module(clogd, 1.1.0)
########################################
#
# Declarations
#
type clogd_t;
type clogd_exec_t;
init_daemon_domain(clogd_t, clogd_exec_t)
type clogd_tmpfs_t;
files_tmpfs_file(clogd_tmpfs_t)
type clogd_var_run_t;
files_pid_file(clogd_var_run_t)
########################################
#
# Local policy
#
allow clogd_t self:capability { net_admin mknod };
allow clogd_t self:process signal;
allow clogd_t self:sem create_sem_perms;
allow clogd_t self:shm create_shm_perms;
allow clogd_t self:netlink_socket create_socket_perms;
manage_dirs_pattern(clogd_t, clogd_tmpfs_t, clogd_tmpfs_t)
manage_files_pattern(clogd_t, clogd_tmpfs_t, clogd_tmpfs_t)
fs_tmpfs_filetrans(clogd_t, clogd_tmpfs_t, { dir file })
manage_files_pattern(clogd_t, clogd_var_run_t, clogd_var_run_t)
files_pid_filetrans(clogd_t, clogd_var_run_t, file)
dev_manage_generic_blk_files(clogd_t)
dev_read_lvm_control(clogd_t)
storage_raw_read_fixed_disk(clogd_t)
storage_raw_write_fixed_disk(clogd_t)
logging_send_syslog_msg(clogd_t)
optional_policy(`
rhcs_stream_connect_cluster(clogd_t)
')