Chris PeBenito de8af9
Chris PeBenito 495df4
policy_module(alsa,1.2.1)
Chris PeBenito de8af9
Chris PeBenito de8af9
########################################
Chris PeBenito de8af9
#
Chris PeBenito de8af9
# Declarations
Chris PeBenito de8af9
#
Chris PeBenito de8af9
Chris PeBenito de8af9
type alsa_t;
Chris PeBenito de8af9
type alsa_exec_t;
Chris PeBenito d46cfe
application_domain(alsa_t, alsa_exec_t)
Chris PeBenito de8af9
role system_r types alsa_t;
Chris PeBenito de8af9
Chris PeBenito de8af9
type alsa_etc_rw_t;
Chris PeBenito de8af9
files_type(alsa_etc_rw_t)
Chris PeBenito de8af9
Chris PeBenito de8af9
########################################
Chris PeBenito de8af9
#
Chris PeBenito de8af9
# Local policy
Chris PeBenito de8af9
#
Chris PeBenito de8af9
Chris PeBenito 495df4
allow alsa_t self:capability { dac_read_search dac_override setgid setuid ipc_owner };
Chris PeBenito de8af9
dontaudit alsa_t self:capability sys_admin;
Chris PeBenito de8af9
allow alsa_t self:sem create_sem_perms;
Chris PeBenito de8af9
allow alsa_t self:shm create_shm_perms;
Chris PeBenito de8af9
allow alsa_t self:unix_stream_socket create_stream_socket_perms;
Chris PeBenito de8af9
allow alsa_t self:unix_dgram_socket create_socket_perms;
Chris PeBenito de8af9
Chris PeBenito c0868a
manage_files_pattern(alsa_t,alsa_etc_rw_t,alsa_etc_rw_t)
Chris PeBenito c0868a
manage_lnk_files_pattern(alsa_t,alsa_etc_rw_t,alsa_etc_rw_t)
Chris PeBenito 495df4
files_etc_filetrans(alsa_t, alsa_etc_rw_t, file)
Chris PeBenito de8af9
Chris PeBenito 495df4
kernel_read_system_state(alsa_t)
Chris PeBenito 495df4
Chris PeBenito 495df4
dev_read_sound(alsa_t)
Chris PeBenito 495df4
dev_write_sound(alsa_t)
Chris PeBenito de8af9
Chris PeBenito 495df4
files_search_home(alsa_t)
Chris PeBenito 495df4
files_read_etc_files(alsa_t)
Chris PeBenito de8af9
Chris PeBenito de8af9
libs_use_ld_so(alsa_t)
Chris PeBenito de8af9
libs_use_shared_libs(alsa_t)
Chris PeBenito de8af9
Chris PeBenito de8af9
logging_send_syslog_msg(alsa_t)
Chris PeBenito de8af9
Chris PeBenito de8af9
miscfiles_read_localization(alsa_t)
Chris PeBenito de8af9
Chris PeBenito de8af9
userdom_manage_unpriv_user_semaphores(alsa_t)
Chris PeBenito de8af9
userdom_manage_unpriv_user_shared_mem(alsa_t)
Chris PeBenito 495df4
userdom_search_generic_user_home_dirs(alsa_t)
Chris PeBenito de8af9
Chris PeBenito bb7170
optional_policy(`
Chris PeBenito 1815ba
	nscd_socket_use(alsa_t)
Chris PeBenito de8af9
')
Chris PeBenito 495df4
Chris PeBenito 495df4
optional_policy(`
Chris PeBenito 495df4
	hal_use_fds(alsa_t)
Chris PeBenito 495df4
	hal_write_log(alsa_t)
Chris PeBenito 495df4
')