Alsa update from Miroslav Grepl
* alsa creates tmp files * add alsa_run() interface * fix interface calling for alsa config files
This commit is contained in:
parent
8103e7c1f4
commit
4202ab7bf8
|
@ -19,6 +19,32 @@ interface(`alsa_domtrans',`
|
|||
domtrans_pattern($1, alsa_exec_t, alsa_t)
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Execute a domain transition to run
|
||||
## Alsa, and allow the specified role
|
||||
## the Alsa domain.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed to transition.
|
||||
## </summary>
|
||||
## </param>
|
||||
## <param name="role">
|
||||
## <summary>
|
||||
## Role allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`alsa_run',`
|
||||
gen_require(`
|
||||
type alsa_t;
|
||||
')
|
||||
|
||||
alsa_domtrans($1)
|
||||
role $2 types alsa_t;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read and write Alsa semaphores.
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
policy_module(alsa, 1.10.0)
|
||||
policy_module(alsa, 1.10.1)
|
||||
|
||||
########################################
|
||||
#
|
||||
|
@ -11,7 +11,10 @@ init_system_domain(alsa_t, alsa_exec_t)
|
|||
role system_r types alsa_t;
|
||||
|
||||
type alsa_etc_rw_t;
|
||||
files_type(alsa_etc_rw_t)
|
||||
files_config_file(alsa_etc_rw_t)
|
||||
|
||||
type alsa_tmp_t;
|
||||
files_tmp_file(alsa_tmp_t)
|
||||
|
||||
type alsa_var_lib_t;
|
||||
files_type(alsa_var_lib_t)
|
||||
|
@ -39,6 +42,11 @@ files_etc_filetrans(alsa_t, alsa_etc_rw_t, file)
|
|||
|
||||
can_exec(alsa_t, alsa_exec_t)
|
||||
|
||||
manage_dirs_pattern(alsa_t, alsa_tmp_t, alsa_tmp_t)
|
||||
manage_files_pattern(alsa_t, alsa_tmp_t, alsa_tmp_t)
|
||||
files_tmp_filetrans(alsa_t, alsa_tmp_t, { dir file })
|
||||
userdom_user_tmp_filetrans(alsa_t, alsa_tmp_t, { dir file })
|
||||
|
||||
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)
|
||||
|
|
Loading…
Reference in New Issue