From: jason@perfinion.com (Jason Zaman)
Date: Fri, 8 Jun 2018 19:23:59 +0800
Subject: [refpolicy] [PATCH 1/2] gpg: Introduce gpg_exec_agent()
Message-ID: <20180608112400.34685-1-jason@perfinion.com>
To: refpolicy@oss.tresys.com
List-Id: refpolicy.oss.tresys.com
---
gpg.if | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/gpg.if b/gpg.if
index 359560f..78efb18 100644
--- a/gpg.if
+++ b/gpg.if
@@ -123,6 +123,25 @@ interface(`gpg_spec_domtrans',`
domain_auto_transition_pattern($1, gpg_exec_t, $2)
')
+########################################
+##
+## Execute the gpg-agent in the caller domain.
+##
+##
+##
+## Domain allowed access.
+##
+##
+#
+interface(`gpg_exec_agent',`
+ gen_require(`
+ type gpg_agent_exec_t;
+ ')
+
+ corecmd_search_bin($1)
+ can_exec($1, gpg_agent_exec_t)
+')
+
######################################
##
## Make gpg executable files an
--
2.16.4