## Ainit ALSA configuration tool
########################################
##
## Domain transition to alsa
##
##
##
## Domain allowed access.
##
##
#
interface(`alsa_domtrans',`
gen_require(`
type alsa_t;
type alsa_exec_t;
')
domtrans_pattern($1, alsa_exec_t, alsa_t)
')
########################################
##
## Allow read and write access to alsa semaphores.
##
##
##
## Domain allowed access.
##
##
#
interface(`alsa_rw_semaphores',`
gen_require(`
type alsa_t;
')
allow $1 alsa_t:sem { unix_read unix_write associate read write };
')
########################################
##
## Allow read and write access to alsa shared memory.
##
##
##
## Domain allowed access.
##
##
#
interface(`alsa_rw_shared_mem',`
gen_require(`
type alsa_t;
')
allow $1 alsa_t:shm { unix_read unix_write create_shm_perms };
')
########################################
##
## Read alsa writable config files.
##
##
##
## Domain allowed access.
##
##
#
interface(`alsa_read_rw_config',`
gen_require(`
type alsa_etc_rw_t;
')
allow $1 alsa_etc_rw_t:dir list_dir_perms;
read_files_pattern($1,alsa_etc_rw_t,alsa_etc_rw_t)
read_lnk_files_pattern($1,alsa_etc_rw_t,alsa_etc_rw_t)
')