selinux-policy/policy/modules/services/audioentropy.te

70 lines
1.5 KiB
Plaintext
Raw Normal View History

2006-03-21 18:50:58 +00:00
2009-06-26 13:22:39 +00:00
policy_module(audioentropy, 1.5.1)
2006-03-21 18:50:58 +00:00
########################################
#
# Declarations
#
type entropyd_t;
type entropyd_exec_t;
init_daemon_domain(entropyd_t, entropyd_exec_t)
2006-03-21 18:50:58 +00:00
type entropyd_var_run_t;
files_pid_file(entropyd_var_run_t)
########################################
#
# Local policy
#
2007-09-07 13:41:20 +00:00
allow entropyd_t self:capability { dac_override ipc_lock sys_admin };
2006-03-21 18:50:58 +00:00
dontaudit entropyd_t self:capability sys_tty_config;
allow entropyd_t self:process signal_perms;
manage_files_pattern(entropyd_t, entropyd_var_run_t, entropyd_var_run_t)
files_pid_filetrans(entropyd_t, entropyd_var_run_t, file)
2006-03-21 18:50:58 +00:00
kernel_read_kernel_sysctls(entropyd_t)
kernel_list_proc(entropyd_t)
kernel_read_proc_symlinks(entropyd_t)
dev_read_sysfs(entropyd_t)
dev_read_urand(entropyd_t)
dev_write_urand(entropyd_t)
2007-09-07 13:41:20 +00:00
dev_read_rand(entropyd_t)
dev_write_rand(entropyd_t)
2006-03-21 18:50:58 +00:00
dev_read_sound(entropyd_t)
2008-11-19 15:24:10 +00:00
# set sound card parameters such as
# sample format, number of channels
# and sample rate.
dev_write_sound(entropyd_t)
2006-03-21 18:50:58 +00:00
2009-06-26 13:22:39 +00:00
files_read_etc_files(entropyd_t)
files_read_usr_files(entropyd_t)
2006-03-21 18:50:58 +00:00
fs_getattr_all_fs(entropyd_t)
fs_search_auto_mountpoints(entropyd_t)
domain_use_interactive_fds(entropyd_t)
logging_send_syslog_msg(entropyd_t)
miscfiles_read_localization(entropyd_t)
userdom_dontaudit_use_unpriv_user_fds(entropyd_t)
2008-11-05 16:10:46 +00:00
userdom_dontaudit_search_user_home_dirs(entropyd_t)
2006-03-21 18:50:58 +00:00
2009-06-26 13:22:39 +00:00
optional_policy(`
alsa_read_lib(entropyd_t)
alsa_read_rw_config(entropyd_t)
')
optional_policy(`
2006-03-21 18:50:58 +00:00
seutil_sigchld_newrole(entropyd_t)
')
optional_policy(`
2006-03-21 18:50:58 +00:00
udev_read_db(entropyd_t)
')