2020-02-29 21:54:39 +00:00
|
|
|
policy_module(rngd, 1.6.0)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type rngd_t;
|
|
|
|
type rngd_exec_t;
|
|
|
|
init_daemon_domain(rngd_t, rngd_exec_t)
|
|
|
|
|
|
|
|
type rngd_initrc_exec_t;
|
|
|
|
init_script_file(rngd_initrc_exec_t)
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
type rngd_runtime_t alias rngd_var_run_t;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_file(rngd_runtime_t)
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
|
|
|
allow rngd_t self:capability { ipc_lock sys_admin };
|
|
|
|
allow rngd_t self:process signal;
|
|
|
|
allow rngd_t self:fifo_file rw_fifo_file_perms;
|
|
|
|
allow rngd_t self:unix_stream_socket { accept listen };
|
|
|
|
|
2019-09-08 20:55:02 +00:00
|
|
|
allow rngd_t rngd_runtime_t:file manage_file_perms;
|
2020-06-27 21:11:48 +00:00
|
|
|
files_runtime_filetrans(rngd_t, rngd_runtime_t, file, "rngd.pid")
|
2018-06-23 13:00:56 +00:00
|
|
|
|
|
|
|
kernel_rw_kernel_sysctl(rngd_t)
|
|
|
|
|
|
|
|
dev_read_rand(rngd_t)
|
|
|
|
dev_read_urand(rngd_t)
|
|
|
|
dev_rw_tpm(rngd_t)
|
|
|
|
dev_write_rand(rngd_t)
|
|
|
|
|
|
|
|
files_read_etc_files(rngd_t)
|
|
|
|
|
|
|
|
logging_send_syslog_msg(rngd_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(rngd_t)
|