Allow common users to manage and relabel Alsa home files.
Signed-off-by: Dominick Grift <domg472@gmail.com>
This commit is contained in:
parent
329138beba
commit
413aac13de
|
@ -105,6 +105,25 @@ interface(`alsa_manage_rw_config',`
|
|||
')
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Manage alsa home files.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`alsa_manage_home_files',`
|
||||
gen_require(`
|
||||
type alsa_home_t;
|
||||
')
|
||||
|
||||
userdom_search_user_home_dirs($1)
|
||||
allow $1 alsa_home_t:file manage_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read Alsa home files.
|
||||
|
@ -124,6 +143,25 @@ interface(`alsa_read_home_files',`
|
|||
allow $1 alsa_home_t:file read_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Relabel alsa home files.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain allowed access.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`alsa_relabel_home_files',`
|
||||
gen_require(`
|
||||
type alsa_home_t;
|
||||
')
|
||||
|
||||
userdom_search_user_home_dirs($1)
|
||||
allow $1 alsa_home_t:file relabel_file_perms;
|
||||
')
|
||||
|
||||
########################################
|
||||
## <summary>
|
||||
## Read Alsa lib files.
|
||||
|
|
|
@ -574,7 +574,9 @@ template(`userdom_common_user_template',`
|
|||
')
|
||||
|
||||
optional_policy(`
|
||||
alsa_manage_home_files($1_t)
|
||||
alsa_read_rw_config($1_t)
|
||||
alsa_relabel_home_files($1_t)
|
||||
')
|
||||
|
||||
optional_policy(`
|
||||
|
|
Loading…
Reference in New Issue