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 2352B13835B for ; Tue, 13 Oct 2020 03:02:10 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6C5D4E084A; Tue, 13 Oct 2020 03:02:09 +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 57DDDE084A for ; Tue, 13 Oct 2020 03:02:09 +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 464D5340A3B for ; Tue, 13 Oct 2020 03:02:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 82E353A8 for ; Tue, 13 Oct 2020 03:02:05 +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: <1602450880.a8cb98adc8518f860b25d7afb7fe35886db3c763.perfinion@gentoo> Subject: [gentoo-commits] proj/hardened-refpolicy:master commit in: policy/modules/services/ X-VCS-Repository: proj/hardened-refpolicy X-VCS-Files: policy/modules/services/dbus.if X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: a8cb98adc8518f860b25d7afb7fe35886db3c763 X-VCS-Branch: master Date: Tue, 13 Oct 2020 03:02:05 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 3bb5ab5d-477e-455c-8025-9460443eb17a X-Archives-Hash: 812b11b08db7f68acafef0a31ca1f860 commit: a8cb98adc8518f860b25d7afb7fe35886db3c763 Author: Antoine Tenart bootlin com> AuthorDate: Mon Sep 21 14:13:02 2020 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Oct 11 21:14:40 2020 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=a8cb98ad dbus: allow clients to list runtime dirs and named sockets Fixes: avc: denied { read } for pid=77 comm="systemd-resolve" name="dbus" dev="tmpfs" ino=2748 scontext=system_u:system_r:systemd_resolved_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=dir permissive=1 avc: denied { read } for pid=77 comm="systemd-resolve" name="system_bus_socket" dev="tmpfs" ino=2765 scontext=system_u:system_r:systemd_resolved_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=sock_file permissive=1 avc: denied { read } for pid=59 comm="systemd-network" name="dbus" dev="tmpfs" ino=2777 scontext=system_u:system_r:systemd_networkd_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=dir permissive=1 avc: denied { read } for pid=59 comm="systemd-network" name="system_bus_socket" dev="tmpfs" ino=2791 scontext=system_u:system_r:systemd_networkd_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=sock_file permissive=1 Signed-off-by: Antoine Tenart bootlin.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/dbus.if | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/dbus.if b/policy/modules/services/dbus.if index 13675aaf..540147c7 100644 --- a/policy/modules/services/dbus.if +++ b/policy/modules/services/dbus.if @@ -149,6 +149,8 @@ interface(`dbus_system_bus_client',` stream_connect_pattern($1, system_dbusd_runtime_t, system_dbusd_runtime_t, system_dbusd_t) dbus_read_config($1) + dbus_list_system_bus_runtime($1) + dbus_read_system_bus_runtime_named_sockets($1) ifdef(`distro_gentoo',` # The /var/lib/dbus/machine-id file is a link to /etc/machine-id