From f93d4fd85c1097f9f87f25f3c4559514f8967eab Mon Sep 17 00:00:00 2001 From: Sven Vermeulen Date: Thu, 22 Mar 2012 21:06:57 +0100 Subject: [PATCH] Adding dontaudit interfaces for files module Signed-off-by: Sven Vermeulen --- policy/modules/kernel/files.if | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/policy/modules/kernel/files.if b/policy/modules/kernel/files.if index deb24b4bc..7df46ac69 100644 --- a/policy/modules/kernel/files.if +++ b/policy/modules/kernel/files.if @@ -1480,6 +1480,42 @@ interface(`files_dontaudit_list_all_mountpoints',` dontaudit $1 mountpoint:dir list_dir_perms; ') +######################################## +## +## Do not audit write attempts on mount points. +## +## +## +## Domain to ignore write attempts from +## +## +# +interface(`files_dontaudit_write_all_mountpoints',` + gen_require(` + attribute mountpoint; + ') + + dontaudit $1 mountpoint:dir write; +') + +######################################## +## +## Do not audit setattr attempts on mount points. +## +## +## +## Domain to ignore setattr attempts from +## +## +# +interface(`files_dontaudit_setattr_all_mountpoints',` + gen_require(` + attribute mountpoint; + ') + + dontaudit $1 mountpoint:dir setattr; +') + ######################################## ## ## List the contents of the root directory.