From: gizmo@giz-works.com (Chris Richards) Date: Mon, 8 Nov 2010 19:25:34 -0600 Subject: [refpolicy] [PATCH 4/5] dontaudit mount writes to newly mounted filesystems In-Reply-To: <1289265935-2604-1-git-send-email-gizmo@giz-works.com> References: <1289265935-2604-1-git-send-email-gizmo@giz-works.com> Message-ID: <1289265935-2604-4-git-send-email-gizmo@giz-works.com> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com Signed-off-by: Chris Richards --- policy/modules/kernel/kernel.if | 37 +++++++++++++++++++++++++++++++++++++ 1 files changed, 37 insertions(+), 0 deletions(-) diff --git a/policy/modules/kernel/kernel.if b/policy/modules/kernel/kernel.if index ed7667a..9d6df6d 100644 --- a/policy/modules/kernel/kernel.if +++ b/policy/modules/kernel/kernel.if @@ -678,6 +678,24 @@ interface(`kernel_dontaudit_search_debugfs',` ######################################## ## +## Do not audit attempts to write kernel debugging filesystem dirs. +## +## +## +## Domain to not audit. +## +## +# +interface(`kernel_dontaudit_write_debugfs_dirs',` + gen_require(` + type debugfs_t; + ') + + dontaudit $1 debugfs_t:dir write; +') + +######################################## +## ## Read information from the debugging filesystem. ## ## @@ -807,6 +825,25 @@ interface(`kernel_dontaudit_list_proc',` ######################################## ## +## Do not audit attempts to write the +## directories in /proc. +## +## +## +## Domain to not audit. +## +## +# +interface(`kernel_dontaudit_write_proc_dirs',` + gen_require(` + type proc_t; + ') + + dontaudit $1 proc_t:dir write; +') + +######################################## +## ## Get the attributes of files in /proc. ## ## -- 1.7.3.2