2006-01-12 16:00:55 +00:00
|
|
|
## <summary>Ainit ALSA configuration tool</summary>
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Domain transition to alsa
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-12 16:00:55 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-12 16:00:55 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`alsa_domtrans',`
|
|
|
|
gen_require(`
|
2008-07-23 21:38:39 +00:00
|
|
|
type alsa_t, alsa_exec_t;
|
2006-01-12 16:00:55 +00:00
|
|
|
')
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
domtrans_pattern($1, alsa_exec_t, alsa_t)
|
2006-01-12 16:00:55 +00:00
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Allow read and write access to alsa semaphores.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-12 16:00:55 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-12 16:00:55 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`alsa_rw_semaphores',`
|
|
|
|
gen_require(`
|
|
|
|
type alsa_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 alsa_t:sem { unix_read unix_write associate read write };
|
|
|
|
')
|
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Allow read and write access to alsa shared memory.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
2006-02-10 18:41:53 +00:00
|
|
|
## <summary>
|
2006-01-12 16:00:55 +00:00
|
|
|
## Domain allowed access.
|
2006-02-10 18:41:53 +00:00
|
|
|
## </summary>
|
2006-01-12 16:00:55 +00:00
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`alsa_rw_shared_mem',`
|
|
|
|
gen_require(`
|
|
|
|
type alsa_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
allow $1 alsa_t:shm { unix_read unix_write create_shm_perms };
|
|
|
|
')
|
2006-03-09 20:28:51 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read alsa writable config files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`alsa_read_rw_config',`
|
|
|
|
gen_require(`
|
|
|
|
type alsa_etc_rw_t;
|
|
|
|
')
|
|
|
|
|
2006-12-12 20:08:08 +00:00
|
|
|
allow $1 alsa_etc_rw_t:dir list_dir_perms;
|
2008-07-23 21:38:39 +00:00
|
|
|
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)
|
2006-03-09 20:28:51 +00:00
|
|
|
')
|
2008-02-18 14:55:25 +00:00
|
|
|
|
|
|
|
########################################
|
|
|
|
## <summary>
|
|
|
|
## Read alsa lib files.
|
|
|
|
## </summary>
|
|
|
|
## <param name="domain">
|
|
|
|
## <summary>
|
|
|
|
## Domain allowed access.
|
|
|
|
## </summary>
|
|
|
|
## </param>
|
|
|
|
#
|
|
|
|
interface(`alsa_read_lib',`
|
|
|
|
gen_require(`
|
|
|
|
type alsa_var_lib_t;
|
|
|
|
')
|
|
|
|
|
|
|
|
read_files_pattern($1, alsa_var_lib_t, alsa_var_lib_t)
|
|
|
|
')
|