diff --git a/policy/modules/system/authlogin.if b/policy/modules/system/authlogin.if index fca13171e..51ed1a081 100644 --- a/policy/modules/system/authlogin.if +++ b/policy/modules/system/authlogin.if @@ -745,6 +745,25 @@ interface(`auth_etc_filetrans_shadow',` files_etc_filetrans($1, shadow_t, file, $2) ') +######################################## +## +## Get the attributes of the shadow history file. +## +## +## +## Domain allowed access. +## +## +# +interface(`auth_getattr_shadow_history',` + gen_require(` + type shadow_history_t; + ') + + files_search_etc($1) + allow $1 shadow_history_t:file getattr; +') + ######################################## ## ## Read the shadow history file. diff --git a/policy/modules/system/userdomain.if b/policy/modules/system/userdomain.if index a2a96e263..73bb7c410 100644 --- a/policy/modules/system/userdomain.if +++ b/policy/modules/system/userdomain.if @@ -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)