From: aranea@aixah.de (Luis Ressel) Date: Sun, 16 Feb 2014 17:34:36 +0100 Subject: [refpolicy] [PATCH 2/3] system/fstools.if: Add fstools_use_fds interface In-Reply-To: <1392568477-15921-1-git-send-email-aranea@aixah.de> References: <1392568477-15921-1-git-send-email-aranea@aixah.de> Message-ID: <1392568477-15921-3-git-send-email-aranea@aixah.de> To: refpolicy@oss.tresys.com List-Id: refpolicy.oss.tresys.com --- policy/modules/system/fstools.if | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/policy/modules/system/fstools.if b/policy/modules/system/fstools.if index 016a770..c4bbd88 100644 --- a/policy/modules/system/fstools.if +++ b/policy/modules/system/fstools.if @@ -83,6 +83,24 @@ interface(`fstools_signal',` ######################################## ## +## Inherit fstools file descriptors. +## +## +## +## The type of the process performing this action. +## +## +# +interface(`fstools_use_fds',` + gen_require(` + type fsadm_t; + ') + + allow $1 fsadm_t:fd use; +') + +######################################## +## ## Read fstools unnamed pipes. ## ## -- 1.8.5.5