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 B3E731396D9 for ; Sun, 5 Nov 2017 08:01:47 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id B46A6E0E5E; Sun, 5 Nov 2017 08:01:45 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 9353BE0E5E for ; Sun, 5 Nov 2017 08:01:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 AE73234176B for ; Sun, 5 Nov 2017 08:01:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A9CDF9595 for ; Sun, 5 Nov 2017 08:01:41 +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: <1509864035.09b3bbc4d767812375a72461e0247a6d6e8da97f.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: 09b3bbc4d767812375a72461e0247a6d6e8da97f X-VCS-Branch: master Date: Sun, 5 Nov 2017 08:01:41 +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: e1b349ee-32de-4420-8138-e60984684912 X-Archives-Hash: c36e5827d7b1023e72931cab53861be5 commit: 09b3bbc4d767812375a72461e0247a6d6e8da97f Author: Jason Zaman perfinion com> AuthorDate: Thu Nov 2 17:31:21 2017 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Nov 5 06:40:35 2017 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=09b3bbc4 gpg: search dir when connecting to agent socket commit 96ac8920f55e5a652c20aba99a599ce23a4d3c0d (gpg: manage user runtime socket files and directories) moved /run/user/UID/gnupg/ to gpg_runtime_t. this updates the interface so it grants search perms on the dir too. policy/modules/contrib/gpg.if | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/policy/modules/contrib/gpg.if b/policy/modules/contrib/gpg.if index c4b7c4cd..6266019b 100644 --- a/policy/modules/contrib/gpg.if +++ b/policy/modules/contrib/gpg.if @@ -191,11 +191,11 @@ interface(`gpg_rw_agent_pipes',` interface(`gpg_stream_connect_agent',` gen_require(` type gpg_agent_t, gpg_agent_tmp_t; - type gpg_secret_t; + type gpg_secret_t, gpg_runtime_t; ') stream_connect_pattern($1, gpg_agent_tmp_t, gpg_agent_tmp_t, gpg_agent_t) - allow $1 gpg_secret_t:dir search_dir_perms; + allow $1 { gpg_secret_t gpg_runtime_t }:dir search_dir_perms; userdom_search_user_runtime($1) userdom_search_user_home_dirs($1) ')