Allow sysadm to map all non auth files

The idea and code are from perfinion. I support it, but we should
probably discuss it.
This commit is contained in:
Jason Zaman 2017-09-12 04:41:04 +02:00 committed by Chris PeBenito
parent 65bfd23fbb
commit c149cf9fc3
2 changed files with 21 additions and 0 deletions

View File

@ -1472,6 +1472,26 @@ interface(`files_manage_non_auth_files',`
files_manage_kernel_modules($1)
')
########################################
## <summary>
## Mmap non-authentication related
## files.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <rolecap/>
#
interface(`files_map_non_auth_files',`
gen_require(`
attribute non_auth_file_type;
')
allow $1 non_auth_file_type:file map;
')
########################################
## <summary>
## Relabel all non-authentication related

View File

@ -1233,6 +1233,7 @@ template(`userdom_admin_user_template',`
auth_getattr_shadow($1_t)
# Manage almost all files
files_manage_non_auth_files($1_t)
files_map_non_auth_files($1_t)
# Relabel almost all files
files_relabel_non_auth_files($1_t)