|
Chris PeBenito |
de8af9 |
## <summary>Ainit ALSA configuration tool</summary>
|
|
Chris PeBenito |
de8af9 |
|
|
Chris PeBenito |
de8af9 |
########################################
|
|
Chris PeBenito |
de8af9 |
## <summary>
|
|
Chris PeBenito |
de8af9 |
## Domain transition to alsa
|
|
Chris PeBenito |
de8af9 |
## </summary>
|
|
Chris PeBenito |
de8af9 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
de8af9 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
de8af9 |
## </param>
|
|
Chris PeBenito |
de8af9 |
#
|
|
Chris PeBenito |
de8af9 |
interface(`alsa_domtrans',`
|
|
Chris PeBenito |
de8af9 |
gen_require(`
|
|
Chris PeBenito |
de8af9 |
type alsa_t;
|
|
Chris PeBenito |
de8af9 |
type alsa_exec_t;
|
|
Chris PeBenito |
de8af9 |
')
|
|
Chris PeBenito |
de8af9 |
|
|
Chris PeBenito |
de8af9 |
domain_auto_trans($1, alsa_exec_t, alsa_t)
|
|
Chris PeBenito |
de8af9 |
|
|
Chris PeBenito |
de8af9 |
allow $1 alsa_t:fd use;
|
|
Chris PeBenito |
de8af9 |
allow alsa_t $1:fd use;
|
|
Chris PeBenito |
de8af9 |
allow alsa_t $1:fifo_file rw_file_perms;
|
|
Chris PeBenito |
de8af9 |
allow alsa_t $1:process sigchld;
|
|
Chris PeBenito |
de8af9 |
')
|
|
Chris PeBenito |
de8af9 |
|
|
Chris PeBenito |
de8af9 |
########################################
|
|
Chris PeBenito |
de8af9 |
## <summary>
|
|
Chris PeBenito |
de8af9 |
## Allow read and write access to alsa semaphores.
|
|
Chris PeBenito |
de8af9 |
## </summary>
|
|
Chris PeBenito |
de8af9 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
de8af9 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
de8af9 |
## </param>
|
|
Chris PeBenito |
de8af9 |
#
|
|
Chris PeBenito |
de8af9 |
interface(`alsa_rw_semaphores',`
|
|
Chris PeBenito |
de8af9 |
gen_require(`
|
|
Chris PeBenito |
de8af9 |
type alsa_t;
|
|
Chris PeBenito |
de8af9 |
')
|
|
Chris PeBenito |
de8af9 |
|
|
Chris PeBenito |
de8af9 |
allow $1 alsa_t:sem { unix_read unix_write associate read write };
|
|
Chris PeBenito |
de8af9 |
')
|
|
Chris PeBenito |
de8af9 |
|
|
Chris PeBenito |
de8af9 |
########################################
|
|
Chris PeBenito |
de8af9 |
## <summary>
|
|
Chris PeBenito |
de8af9 |
## Allow read and write access to alsa shared memory.
|
|
Chris PeBenito |
de8af9 |
## </summary>
|
|
Chris PeBenito |
de8af9 |
## <param name="domain">
|
|
Chris PeBenito |
885b83 |
## <summary>
|
|
Chris PeBenito |
de8af9 |
## Domain allowed access.
|
|
Chris PeBenito |
885b83 |
## </summary>
|
|
Chris PeBenito |
de8af9 |
## </param>
|
|
Chris PeBenito |
de8af9 |
#
|
|
Chris PeBenito |
de8af9 |
interface(`alsa_rw_shared_mem',`
|
|
Chris PeBenito |
de8af9 |
gen_require(`
|
|
Chris PeBenito |
de8af9 |
type alsa_t;
|
|
Chris PeBenito |
de8af9 |
')
|
|
Chris PeBenito |
de8af9 |
|
|
Chris PeBenito |
de8af9 |
allow $1 alsa_t:shm { unix_read unix_write create_shm_perms };
|
|
Chris PeBenito |
de8af9 |
')
|
|
Chris PeBenito |
77b81c |
|
|
Chris PeBenito |
77b81c |
########################################
|
|
Chris PeBenito |
77b81c |
## <summary>
|
|
Chris PeBenito |
77b81c |
## Read alsa writable config files.
|
|
Chris PeBenito |
77b81c |
## </summary>
|
|
Chris PeBenito |
77b81c |
## <param name="domain">
|
|
Chris PeBenito |
77b81c |
## <summary>
|
|
Chris PeBenito |
77b81c |
## Domain allowed access.
|
|
Chris PeBenito |
77b81c |
## </summary>
|
|
Chris PeBenito |
77b81c |
## </param>
|
|
Chris PeBenito |
77b81c |
#
|
|
Chris PeBenito |
77b81c |
interface(`alsa_read_rw_config',`
|
|
Chris PeBenito |
77b81c |
gen_require(`
|
|
Chris PeBenito |
77b81c |
type alsa_etc_rw_t;
|
|
Chris PeBenito |
77b81c |
')
|
|
Chris PeBenito |
77b81c |
|
|
Chris PeBenito |
77b81c |
allow $1 alsa_etc_rw_t:dir r_dir_perms;
|
|
Chris PeBenito |
77b81c |
allow $1 alsa_etc_rw_t:file r_file_perms;
|
|
Chris PeBenito |
77b81c |
allow $1 alsa_etc_rw_t:lnk_file { getattr read };
|
|
Chris PeBenito |
77b81c |
')
|