From: aranea@aixah.de (Luis Ressel)
Date: Mon, 11 Aug 2014 15:33:17 +0200
Subject: [refpolicy] [PATCH 2/3] system/fstools.if: Add fstools_use_fds
interface
In-Reply-To: <1407763998-26586-1-git-send-email-aranea@aixah.de>
References: <1407763998-26586-1-git-send-email-aranea@aixah.de>
Message-ID: <1407763998-26586-2-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.
##
##
--
2.0.4