2020-08-18 13:09:10 +00:00
|
|
|
policy_module(uuidd, 1.6.0)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# 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)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type uuidd_runtime_t alias uuidd_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(uuidd_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
2019-09-11 00:05:46 +00:00
|
|
|
type uuidd_var_lib_t;
|
|
|
|
files_type(uuidd_var_lib_t)
|
|
|
|
|
2018-06-23 13:00:56 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# 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 })
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
manage_dirs_pattern(uuidd_t, uuidd_runtime_t, uuidd_runtime_t)
|
|
|
|
manage_files_pattern(uuidd_t, uuidd_runtime_t, uuidd_runtime_t)
|
|
|
|
manage_sock_files_pattern(uuidd_t, uuidd_runtime_t, uuidd_runtime_t)
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(uuidd_t, uuidd_runtime_t, { dir file sock_file })
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
dev_read_urand(uuidd_t)
|
|
|
|
|
|
|
|
domain_use_interactive_fds(uuidd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(uuidd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(uuidd_t)
|