From 137f7366ee4f566cdac45338f95eb8098dbbe6b7 Mon Sep 17 00:00:00 2001 From: Sven Vermeulen Date: Tue, 23 Aug 2011 15:39:13 +0200 Subject: [PATCH] Introduce portage_dontaudit_use_fds Support the interface to not audit portage_t:fd use (file descriptors, leaked or not) Signed-off-by: Sven Vermeulen --- policy/modules/admin/portage.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/admin/portage.if b/policy/modules/admin/portage.if index 08b361bfd..a1bfbaa51 100644 --- a/policy/modules/admin/portage.if +++ b/policy/modules/admin/portage.if @@ -293,3 +293,22 @@ interface(`portage_dontaudit_rw_tmp_files',` dontaudit $1 portage_tmp_t:file rw_file_perms; ') + +######################################## +## +## Do not audit attempts to use +## portage file descriptors. +## +## +## +## Domain to not audit. +## +## +# +interface(`portage_dontaudit_use_fds',` + gen_require(` + type portage_t; + ') + + dontaudit $1 portage_t:fds use; +')