43 lines
865 B
Plaintext
43 lines
865 B
Plaintext
|
policy_module(rngd, 1.5.0)
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# 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)
|
||
|
|
||
|
type rngd_var_run_t;
|
||
|
files_pid_file(rngd_var_run_t)
|
||
|
|
||
|
########################################
|
||
|
#
|
||
|
# 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 };
|
||
|
|
||
|
allow rngd_t rngd_var_run_t:file manage_file_perms;
|
||
|
files_pid_filetrans(rngd_t, rngd_var_run_t, file, "rngd.pid")
|
||
|
|
||
|
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)
|