Skip to content

Commit

Permalink
Merge pull request #789 from yizhao1/update
Browse files Browse the repository at this point in the history
userdomain: allow administrative user to get attributes of shadow his…
  • Loading branch information
pebenito authored Jul 1, 2024
2 parents 7c79790 + 5f7f494 commit 73c2c68
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
19 changes: 19 additions & 0 deletions policy/modules/system/authlogin.if
Original file line number Diff line number Diff line change
Expand Up @@ -745,6 +745,25 @@ interface(`auth_etc_filetrans_shadow',`
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>
## Read the shadow history file.
Expand Down
1 change: 1 addition & 0 deletions policy/modules/system/userdomain.if
Original file line number Diff line number Diff line change
Expand Up @@ -1428,6 +1428,7 @@ template(`userdom_admin_user_template',`
term_use_all_terms($1_t)

auth_getattr_shadow($1_t)
auth_getattr_shadow_history($1_t)
# Manage almost all files
files_manage_non_auth_files($1_t)
files_map_non_auth_files($1_t)
Expand Down

0 comments on commit 73c2c68

Please sign in to comment.