Merge pull request #789 from yizhao1/update
userdomain: allow administrative user to get attributes of shadow his…
This commit is contained in:
commit
73c2c68ee7
|
@ -745,6 +745,25 @@ interface(`auth_etc_filetrans_shadow',`
|
||||||
files_etc_filetrans($1, shadow_t, file, $2)
|
files_etc_filetrans($1, shadow_t, file, $2)
|
||||||
')
|
')
|
||||||
|
|
||||||
|
########################################
|
||||||
|
## <summary>
|
||||||
|
## Get the attributes of the shadow history file.
|
||||||
|
## </summary>
|
||||||
|
## <param name="domain">
|
||||||
|
## <summary>
|
||||||
|
## Domain allowed access.
|
||||||
|
## </summary>
|
||||||
|
## </param>
|
||||||
|
#
|
||||||
|
interface(`auth_getattr_shadow_history',`
|
||||||
|
gen_require(`
|
||||||
|
type shadow_history_t;
|
||||||
|
')
|
||||||
|
|
||||||
|
files_search_etc($1)
|
||||||
|
allow $1 shadow_history_t:file getattr;
|
||||||
|
')
|
||||||
|
|
||||||
########################################
|
########################################
|
||||||
## <summary>
|
## <summary>
|
||||||
## Read the shadow history file.
|
## Read the shadow history file.
|
||||||
|
|
|
@ -1428,6 +1428,7 @@ template(`userdom_admin_user_template',`
|
||||||
term_use_all_terms($1_t)
|
term_use_all_terms($1_t)
|
||||||
|
|
||||||
auth_getattr_shadow($1_t)
|
auth_getattr_shadow($1_t)
|
||||||
|
auth_getattr_shadow_history($1_t)
|
||||||
# Manage almost all files
|
# Manage almost all files
|
||||||
files_manage_non_auth_files($1_t)
|
files_manage_non_auth_files($1_t)
|
||||||
files_map_non_auth_files($1_t)
|
files_map_non_auth_files($1_t)
|
||||||
|
|
Loading…
Reference in New Issue