files: Create files_map_usr_files interface

This commit is contained in:
Luis Ressel 2017-09-11 08:40:52 +02:00 committed by Chris PeBenito
parent c772611817
commit c695860748
1 changed files with 19 additions and 0 deletions

View File

@ -4838,6 +4838,25 @@ interface(`files_getattr_usr_files',`
getattr_files_pattern($1, usr_t, usr_t)
')
########################################
## <summary>
## Map generic files in /usr.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
## <infoflow type="read" weight="10"/>
#
interface(`files_map_usr_files',`
gen_require(`
type usr_t;
')
allow $1 usr_t:file map;
')
########################################
## <summary>
## Read generic files in /usr.