add files_search_src()

required by loadkeys
This commit is contained in:
cgzones 2017-01-05 12:47:58 +01:00
parent a67c2a819d
commit ab652e1f59
1 changed files with 18 additions and 0 deletions

View File

@ -5212,6 +5212,24 @@ interface(`files_usr_filetrans',`
filetrans_pattern($1, usr_t, $2, $3, $4)
')
########################################
## <summary>
## Search directories in /usr/src.
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`files_search_src',`
gen_require(`
type src_t;
')
allow $1 src_t:dir search_dir_perms;
')
########################################
## <summary>
## Do not audit attempts to search /usr/src.