files: add files_watch_etc_symlinks interface

Signed-off-by: bauen1 <j2468h@gmail.com>
This commit is contained in:
bauen1 2020-04-17 20:40:12 +02:00
parent 14acb02b90
commit 70e0d26988
No known key found for this signature in database
GPG Key ID: FF0AAF5E0812BA9C
1 changed files with 18 additions and 0 deletions

View File

@ -3200,6 +3200,24 @@ interface(`files_read_etc_symlinks',`
read_lnk_files_pattern($1, etc_t, etc_t)
')
########################################
## <summary>
## Watch /etc symlinks
## </summary>
## <param name="domain">
## <summary>
## Domain allowed access.
## </summary>
## </param>
#
interface(`files_watch_etc_symlinks', `
gen_require(`
type etc_t;
')
allow $1 etc_t:lnk_file watch;
')
########################################
## <summary>
## Create, read, write, and delete symbolic links in /etc.