Blob Blame History Raw
policy_module(rngd, 1.0.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)

########################################
#
# Local policy
#

allow rngd_t self:capability 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 };

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)