selinux-refpolicy/policy/modules/services/uuidd.te
2018-06-23 10:38:58 -04:00

48 lines
1.2 KiB
Plaintext

policy_module(uuidd, 1.4.0)
########################################
#
# Declarations
#
type uuidd_t;
type uuidd_exec_t;
init_daemon_domain(uuidd_t, uuidd_exec_t)
type uuidd_initrc_exec_t;
init_script_file(uuidd_initrc_exec_t)
type uuidd_var_lib_t;
files_type(uuidd_var_lib_t)
type uuidd_var_run_t;
files_pid_file(uuidd_var_run_t)
########################################
#
# Local policy
#
allow uuidd_t self:capability setuid;
allow uuidd_t self:process signal;
allow uuidd_t self:fifo_file rw_fifo_file_perms;
allow uuidd_t self:unix_stream_socket create_stream_socket_perms;
allow uuidd_t self:udp_socket create_socket_perms;
manage_dirs_pattern(uuidd_t, uuidd_var_lib_t, uuidd_var_lib_t)
manage_files_pattern(uuidd_t, uuidd_var_lib_t, uuidd_var_lib_t)
files_var_lib_filetrans(uuidd_t, uuidd_var_lib_t, { dir file })
manage_dirs_pattern(uuidd_t, uuidd_var_run_t, uuidd_var_run_t)
manage_files_pattern(uuidd_t, uuidd_var_run_t, uuidd_var_run_t)
manage_sock_files_pattern(uuidd_t, uuidd_var_run_t, uuidd_var_run_t)
files_pid_filetrans(uuidd_t, uuidd_var_run_t, { dir file sock_file })
dev_read_urand(uuidd_t)
domain_use_interactive_fds(uuidd_t)
files_read_etc_files(uuidd_t)
miscfiles_read_localization(uuidd_t)