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