mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-03-25 04:26:37 +00:00
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:
parent
65bfd23fbb
commit
c149cf9fc3
@ -1472,6 +1472,26 @@ interface(`files_manage_non_auth_files',`
|
|||||||
files_manage_kernel_modules($1)
|
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>
|
## <summary>
|
||||||
## Relabel all non-authentication related
|
## Relabel all non-authentication related
|
||||||
|
@ -1233,6 +1233,7 @@ template(`userdom_admin_user_template',`
|
|||||||
auth_getattr_shadow($1_t)
|
auth_getattr_shadow($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)
|
||||||
# Relabel almost all files
|
# Relabel almost all files
|
||||||
files_relabel_non_auth_files($1_t)
|
files_relabel_non_auth_files($1_t)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user