mirror of
https://github.com/SELinuxProject/refpolicy
synced 2025-03-21 10:37:48 +00:00
dontaudit mount writes to newly mounted filesystems
Signed-off-by: Chris Richards <gizmo@giz-works.com>
This commit is contained in:
parent
3e99a17663
commit
7644a58c1f
@ -1463,7 +1463,25 @@ interface(`files_list_root',`
|
||||
allow $1 root_t:lnk_file { read_lnk_file_perms ioctl lock };
|
||||
')
|
||||
|
||||
########################################
|
||||
#############################################################
|
||||
## <summary>
|
||||
## Do not audit attempts to write to / dirs.
|
||||
## </summary>
|
||||
## <param name="domain">
|
||||
## <summary>
|
||||
## Domain to not audit.
|
||||
## </summary>
|
||||
## </param>
|
||||
#
|
||||
interface(`files_dontaudit_write_root_dirs',`
|
||||
gen_require(`
|
||||
type root_t;
|
||||
')
|
||||
|
||||
dontaudit $1 root_t:dir write;
|
||||
')
|
||||
|
||||
###################
|
||||
## <summary>
|
||||
## Do not audit attempts to write
|
||||
## files in the root directory.
|
||||
|
Loading…
Reference in New Issue
Block a user