From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id ABE4E138334 for ; Sat, 9 Jun 2018 05:24:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2C99E0905; Sat, 9 Jun 2018 05:24:57 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A077FE0905 for ; Sat, 9 Jun 2018 05:24:57 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B5705335CB4 for ; Sat, 9 Jun 2018 05:24:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C26F92CC for ; Sat, 9 Jun 2018 05:24:52 +0000 (UTC) From: "Jason Zaman" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Jason Zaman" Message-ID: <1528456746.b7f21ed3852a1688dc52dc89f2f37b85e93a0d9c.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/gpg.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: b7f21ed3852a1688dc52dc89f2f37b85e93a0d9c X-VCS-Branch: master Date: Sat, 9 Jun 2018 05:24:52 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 7b2a9321-5629-499b-9b03-bd32225169ef X-Archives-Hash: 9071b279414589133519e26c9e5f052c commit: b7f21ed3852a1688dc52dc89f2f37b85e93a0d9c Author: Jason Zaman perfinion com> AuthorDate: Fri Jun 8 11:18:05 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Fri Jun 8 11:19:06 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b7f21ed3 gpg: Introduce gpg_exec_agent() policy/modules/contrib/gpg.if | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/policy/modules/contrib/gpg.if b/policy/modules/contrib/gpg.if index 359560f8..78efb186 100644 --- a/policy/modules/contrib/gpg.if +++ b/policy/modules/contrib/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