2010-06-17 12:22:43 +00:00
|
|
|
policy_module(alsa, 1.9.1)
|
2006-01-12 16:00:55 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Declarations
|
|
|
|
#
|
|
|
|
|
|
|
|
type alsa_t;
|
|
|
|
type alsa_exec_t;
|
2008-02-18 14:55:25 +00:00
|
|
|
init_system_domain(alsa_t, alsa_exec_t)
|
2006-01-12 16:00:55 +00:00
|
|
|
role system_r types alsa_t;
|
|
|
|
|
|
|
|
type alsa_etc_rw_t;
|
|
|
|
files_type(alsa_etc_rw_t)
|
|
|
|
|
2008-02-18 14:55:25 +00:00
|
|
|
type alsa_var_lib_t;
|
|
|
|
files_type(alsa_var_lib_t)
|
|
|
|
|
2006-01-12 16:00:55 +00:00
|
|
|
########################################
|
|
|
|
#
|
|
|
|
# Local policy
|
|
|
|
#
|
|
|
|
|
2007-10-29 18:35:32 +00:00
|
|
|
allow alsa_t self:capability { dac_read_search dac_override setgid setuid ipc_owner };
|
2006-01-12 16:00:55 +00:00
|
|
|
dontaudit alsa_t self:capability sys_admin;
|
|
|
|
allow alsa_t self:sem create_sem_perms;
|
|
|
|
allow alsa_t self:shm create_shm_perms;
|
|
|
|
allow alsa_t self:unix_stream_socket create_stream_socket_perms;
|
|
|
|
allow alsa_t self:unix_dgram_socket create_socket_perms;
|
|
|
|
|
2008-02-18 14:55:25 +00:00
|
|
|
manage_files_pattern(alsa_t, alsa_etc_rw_t, alsa_etc_rw_t)
|
|
|
|
manage_lnk_files_pattern(alsa_t, alsa_etc_rw_t, alsa_etc_rw_t)
|
2007-10-29 18:35:32 +00:00
|
|
|
files_etc_filetrans(alsa_t, alsa_etc_rw_t, file)
|
2006-01-12 16:00:55 +00:00
|
|
|
|
2008-02-18 14:55:25 +00:00
|
|
|
can_exec(alsa_t, alsa_exec_t)
|
|
|
|
|
|
|
|
manage_dirs_pattern(alsa_t, alsa_var_lib_t, alsa_var_lib_t)
|
|
|
|
manage_files_pattern(alsa_t, alsa_var_lib_t, alsa_var_lib_t)
|
|
|
|
files_search_var_lib(alsa_t)
|
|
|
|
|
2007-10-29 18:35:32 +00:00
|
|
|
kernel_read_system_state(alsa_t)
|
|
|
|
|
|
|
|
dev_read_sound(alsa_t)
|
|
|
|
dev_write_sound(alsa_t)
|
2009-03-10 19:32:04 +00:00
|
|
|
dev_read_sysfs(alsa_t)
|
2006-01-12 16:00:55 +00:00
|
|
|
|
2008-02-18 14:55:25 +00:00
|
|
|
corecmd_exec_bin(alsa_t)
|
|
|
|
|
2007-10-29 18:35:32 +00:00
|
|
|
files_search_home(alsa_t)
|
|
|
|
files_read_etc_files(alsa_t)
|
2008-10-13 15:06:23 +00:00
|
|
|
files_read_usr_files(alsa_t)
|
2006-01-12 16:00:55 +00:00
|
|
|
|
2010-03-12 13:59:23 +00:00
|
|
|
term_dontaudit_use_console(alsa_t)
|
2010-06-17 12:22:43 +00:00
|
|
|
term_dontaudit_use_generic_ptys(alsa_t)
|
|
|
|
term_dontaudit_use_all_ptys(alsa_t)
|
2010-03-12 13:59:23 +00:00
|
|
|
|
2008-02-18 14:55:25 +00:00
|
|
|
auth_use_nsswitch(alsa_t)
|
|
|
|
|
2008-10-13 15:06:23 +00:00
|
|
|
init_use_fds(alsa_t)
|
|
|
|
|
2006-01-12 16:00:55 +00:00
|
|
|
logging_send_syslog_msg(alsa_t)
|
|
|
|
|
|
|
|
miscfiles_read_localization(alsa_t)
|
|
|
|
|
|
|
|
userdom_manage_unpriv_user_semaphores(alsa_t)
|
|
|
|
userdom_manage_unpriv_user_shared_mem(alsa_t)
|
2008-11-05 16:10:46 +00:00
|
|
|
userdom_search_user_home_dirs(alsa_t)
|
2007-10-29 18:35:32 +00:00
|
|
|
|
|
|
|
optional_policy(`
|
|
|
|
hal_use_fds(alsa_t)
|
|
|
|
hal_write_log(alsa_t)
|
|
|
|
')
|