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 93E44139277 for ; Wed, 26 Oct 2016 11:08:22 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC3CF21C081; Wed, 26 Oct 2016 11:08:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 95A8121C081 for ; Wed, 26 Oct 2016 11:08:20 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 7C52F341643 for ; Wed, 26 Oct 2016 11:08:18 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 5ECF524A4 for ; Wed, 26 Oct 2016 11:08:16 +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: <1477410496.34e87a577d7e36e88dfa19bd013b25d78637247a.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:next commit in: policy/modules/contrib/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/contrib/pcscd.if X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: 34e87a577d7e36e88dfa19bd013b25d78637247a X-VCS-Branch: next Date: Wed, 26 Oct 2016 11:08:16 +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: 0d73a3ed-f384-415b-a2c8-5d3e32f1f38c X-Archives-Hash: 9b2f0645d45025ea18482f36c79ca3c5 commit: 34e87a577d7e36e88dfa19bd013b25d78637247a Author: Jason Zaman perfinion com> AuthorDate: Tue Oct 25 15:42:24 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Oct 25 15:48:16 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=34e87a57 pcscd: look up the pid that is connecting pcscd tries to look at the pid of the process that is connecting to its socket. type=AVC msg=audit(1477409841.224:12512): avc: denied { open } for pid=16611 comm="pcscd" path="/proc/10610/stat" dev="proc" ino=29254 scontext=system_u:system_r:pcscd_t:s0 tcontext=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 tclass=file permissive=1 type=AVC msg=audit(1477409841.224:12513): avc: denied { getattr } for pid=16611 comm="pcscd" path="/proc/10610/stat" dev="proc" ino=29254 scontext=system_u:system_r:pcscd_t:s0 tcontext=staff_u:staff_r:gpg_agent_t:s0-s0:c0.c1023 tclass=file permissive=1 policy/modules/contrib/pcscd.if | 3 +++ 1 file changed, 3 insertions(+) diff --git a/policy/modules/contrib/pcscd.if b/policy/modules/contrib/pcscd.if index ac7e60c..b5c522d 100644 --- a/policy/modules/contrib/pcscd.if +++ b/policy/modules/contrib/pcscd.if @@ -101,6 +101,9 @@ interface(`pcscd_stream_connect',` files_search_pids($1) stream_connect_pattern($1, pcscd_var_run_t, pcscd_var_run_t, pcscd_t) + + allow pcscd_t $1:dir list_dir_perms; + allow pcscd_t $1:file read_file_perms; ') ########################################