From 55d8395f49fb1f1b89f4705db81b88f00f3f8811 Mon Sep 17 00:00:00 2001 From: Chris Richards Date: Mon, 8 Nov 2010 19:25:33 -0600 Subject: [PATCH] dontaudit mount writes to newly mounted filesystems Signed-off-by: Chris Richards --- policy/modules/kernel/filesystem.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/kernel/filesystem.if b/policy/modules/kernel/filesystem.if index 437a42af0..b8714e528 100644 --- a/policy/modules/kernel/filesystem.if +++ b/policy/modules/kernel/filesystem.if @@ -3789,6 +3789,25 @@ interface(`fs_manage_tmpfs_dirs',` allow $1 tmpfs_t:dir manage_dir_perms; ') +######################################## +## +## Do not audit attempts to write +## tmpfs directories +## +## +## +## Domain allowed access. +## +## +# +interface(`fs_dontaudit_write_tmpfs_dirs',` + gen_require(` + type tmpfs_t; + ') + + dontaudit $1 tmpfs_t:dir write; +') + ######################################## ## ## Create an object in a tmpfs filesystem, with a private