files: Create files_map_usr_files interface
This commit is contained in:
parent
c772611817
commit
c695860748
|
@ -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.
|
||||
|
|
Loading…
Reference in New Issue