selinux-refpolicy.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: jason@perfinion.com (Jason Zaman)
To: refpolicy@oss.tresys.com
Subject: [refpolicy] [PATCH 1/2] gpg: Introduce gpg_exec_agent()
Date: Fri,  8 Jun 2018 19:23:59 +0800	[thread overview]
Message-ID: <20180608112400.34685-1-jason@perfinion.com> (raw)

---
 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)
 ')
 
+########################################
+## <summary>
+##	Execute the gpg-agent in the caller domain.
+## </summary>
+## <param name="domain">
+##	<summary>
+##	Domain allowed access.
+##	</summary>
+## </param>
+#
+interface(`gpg_exec_agent',`
+	gen_require(`
+		type gpg_agent_exec_t;
+	')
+
+	corecmd_search_bin($1)
+	can_exec($1, gpg_agent_exec_t)
+')
+
 ######################################
 ## <summary>
 ##	Make gpg executable files an
-- 
2.16.4

             reply	other threads:[~2018-06-08 11:23 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-08 11:23 Jason Zaman [this message]
2018-06-08 11:24 ` [refpolicy] [PATCH 2/2] portage: allow gpg for tree signature verification Jason Zaman
2018-06-10 17:09   ` Chris PeBenito
2018-06-10 17:09 ` [refpolicy] [PATCH 1/2] gpg: Introduce gpg_exec_agent() Chris PeBenito

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180608112400.34685-1-jason@perfinion.com \
    --to=jason@perfinion.com \
    --cc=refpolicy@oss.tresys.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).