Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
policy_module(audio_entropy,1.0.0)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
########################################
Chris PeBenito 7f74a4
#
Chris PeBenito 7f74a4
# Declarations
Chris PeBenito 7f74a4
#
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
type entropyd_t;
Chris PeBenito 7f74a4
type entropyd_exec_t;
Chris PeBenito 7f74a4
init_daemon_domain(entropyd_t,entropyd_exec_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
type entropyd_var_run_t;
Chris PeBenito 7f74a4
files_pid_file(entropyd_var_run_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
########################################
Chris PeBenito 7f74a4
#
Chris PeBenito 7f74a4
# Local policy
Chris PeBenito 7f74a4
#
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
allow entropyd_t self:capability { ipc_lock sys_admin };
Chris PeBenito 7f74a4
dontaudit entropyd_t self:capability sys_tty_config;
Chris PeBenito 7f74a4
allow entropyd_t self:process signal_perms;
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
allow entropyd_t entropyd_var_run_t:file manage_file_perms;
Chris PeBenito 7f74a4
allow entropyd_t entropyd_var_run_t:dir rw_dir_perms;
Chris PeBenito 7f74a4
files_pid_filetrans(entropyd_t,entropyd_var_run_t,file)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
kernel_read_kernel_sysctls(entropyd_t)
Chris PeBenito 7f74a4
kernel_list_proc(entropyd_t)
Chris PeBenito 7f74a4
kernel_read_proc_symlinks(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
dev_read_sysfs(entropyd_t)
Chris PeBenito 7f74a4
dev_read_urand(entropyd_t)
Chris PeBenito 7f74a4
dev_write_urand(entropyd_t)
Chris PeBenito 7f74a4
dev_read_sound(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
fs_getattr_all_fs(entropyd_t)
Chris PeBenito 7f74a4
fs_search_auto_mountpoints(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
term_dontaudit_use_console(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
domain_use_interactive_fds(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
init_use_fds(entropyd_t)
Chris PeBenito 7f74a4
init_use_script_ptys(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
libs_use_ld_so(entropyd_t)
Chris PeBenito 7f74a4
libs_use_shared_libs(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
logging_send_syslog_msg(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
miscfiles_read_localization(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
userdom_dontaudit_use_unpriv_user_fds(entropyd_t)
Chris PeBenito 7f74a4
userdom_dontaudit_search_sysadm_home_dirs(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
ifdef(`targeted_policy', `
Chris PeBenito 7f74a4
	files_dontaudit_read_root_files(entropyd_t)
Chris PeBenito 7f74a4
Chris PeBenito 7f74a4
	term_dontaudit_use_unallocated_ttys(entropyd_t)
Chris PeBenito 7f74a4
	term_dontaudit_use_generic_ptys(entropyd_t)
Chris PeBenito 7f74a4
')
Chris PeBenito 7f74a4
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 7f74a4
	seutil_sigchld_newrole(entropyd_t)
Chris PeBenito 7f74a4
')
Chris PeBenito 7f74a4
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 7f74a4
	udev_read_db(entropyd_t)
Chris PeBenito 7f74a4
')
Chris PeBenito 7f74a4