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 10D451395E2 for ; Tue, 6 Dec 2016 13:40:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7648721C303; Tue, 6 Dec 2016 13:39:55 +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 501B421C303 for ; Tue, 6 Dec 2016 13:39:45 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 476B93415B6 for ; Tue, 6 Dec 2016 13:39:39 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C5D8D24C5 for ; Tue, 6 Dec 2016 13:39:35 +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: <1481028119.b90d7f0d0f52f0b0847be67866c6bd34984bf625.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/pcscd.if policy/modules/contrib/pcscd.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: b90d7f0d0f52f0b0847be67866c6bd34984bf625 X-VCS-Branch: master Date: Tue, 6 Dec 2016 13:39:35 +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: 4a50a895-a0e4-42e2-9fbd-53849efed031 X-Archives-Hash: b600427d75f83c9fa9a287e6500261d3 commit: b90d7f0d0f52f0b0847be67866c6bd34984bf625 Author: Jason Zaman perfinion com> AuthorDate: Wed Oct 26 17:19:18 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Dec 6 12:41:59 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b90d7f0d pcscd: dbus and domain lookup Allow dbus chat to policykit. pcscd needs to lookup the domain that connects to the 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 +++ policy/modules/contrib/pcscd.te | 4 ++++ 2 files changed, 7 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; ') ######################################## diff --git a/policy/modules/contrib/pcscd.te b/policy/modules/contrib/pcscd.te index 1828900..bcc863c 100644 --- a/policy/modules/contrib/pcscd.te +++ b/policy/modules/contrib/pcscd.te @@ -73,6 +73,10 @@ optional_policy(` optional_policy(` hal_dbus_chat(pcscd_t) ') + + optional_policy(` + policykit_dbus_chat(pcscd_t) + ') ') optional_policy(` 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 BA0DA1395E2 for ; Tue, 6 Dec 2016 14:25:05 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 18358E0C4E; Tue, 6 Dec 2016 14:25:05 +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 E74A9E0C4E for ; Tue, 6 Dec 2016 14:25:04 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (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 EFE823415FA for ; Tue, 6 Dec 2016 14:25:02 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 02BE224BE for ; Tue, 6 Dec 2016 14:25:00 +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: <1481028119.b90d7f0d0f52f0b0847be67866c6bd34984bf625.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 policy/modules/contrib/pcscd.te X-VCS-Directories: policy/modules/contrib/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: b90d7f0d0f52f0b0847be67866c6bd34984bf625 X-VCS-Branch: next Date: Tue, 6 Dec 2016 14:25:00 +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: 1ef9a3e8-7cfb-4ad0-b971-1625a19d9842 X-Archives-Hash: 67af00bce70ada2a1feaf1aa73dd525a Message-ID: <20161206142500.jza4aL70KieNOuoXG6XufRSv1UDeHFG4X4gKpHakozE@z> commit: b90d7f0d0f52f0b0847be67866c6bd34984bf625 Author: Jason Zaman perfinion com> AuthorDate: Wed Oct 26 17:19:18 2016 +0000 Commit: Jason Zaman gentoo org> CommitDate: Tue Dec 6 12:41:59 2016 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=b90d7f0d pcscd: dbus and domain lookup Allow dbus chat to policykit. pcscd needs to lookup the domain that connects to the 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 +++ policy/modules/contrib/pcscd.te | 4 ++++ 2 files changed, 7 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; ') ######################################## diff --git a/policy/modules/contrib/pcscd.te b/policy/modules/contrib/pcscd.te index 1828900..bcc863c 100644 --- a/policy/modules/contrib/pcscd.te +++ b/policy/modules/contrib/pcscd.te @@ -73,6 +73,10 @@ optional_policy(` optional_policy(` hal_dbus_chat(pcscd_t) ') + + optional_policy(` + policykit_dbus_chat(pcscd_t) + ') ') optional_policy(`