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 135CF13835A 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 57035E0841; Tue, 13 Oct 2020 03:02:09 +0000 (UTC) Received: from smtp.gentoo.org (smtp.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 42695E0841 for ; Tue, 13 Oct 2020 03:02:09 +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 1C262340A60 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 7059B3A7 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: <1602450466.70268bb783c124594191f4c789b5b1eb2277340d.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: 70268bb783c124594191f4c789b5b1eb2277340d 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: 24c592ee-d451-47d1-8c3d-759cf9d699d7 X-Archives-Hash: b41c1c96aad2eb59028a220f979c9ab2 commit: 70268bb783c124594191f4c789b5b1eb2277340d Author: Antoine Tenart bootlin com> AuthorDate: Mon Sep 14 14:31:54 2020 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Oct 11 21:07:46 2020 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=70268bb7 dbus: add two interfaces to allow reading from directories and named sockets Signed-off-by: Antoine Tenart bootlin.com> Signed-off-by: Jason Zaman gentoo.org> policy/modules/services/dbus.if | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/policy/modules/services/dbus.if b/policy/modules/services/dbus.if index e547337c..13675aaf 100644 --- a/policy/modules/services/dbus.if +++ b/policy/modules/services/dbus.if @@ -605,6 +605,24 @@ interface(`dbus_watch_system_bus_runtime_dirs',` allow $1 system_dbusd_runtime_t:dir watch; ') +######################################## +## +## List system bus runtime directories. +## +## +## +## Domain allowed access. +## +## +# +interface(`dbus_list_system_bus_runtime',` + gen_require(` + type system_dbusd_runtime_t; + ') + + allow $1 system_dbusd_runtime_t:dir list_dir_perms; +') + ######################################## ## ## Watch system bus runtime named sockets. @@ -623,6 +641,24 @@ interface(`dbus_watch_system_bus_runtime_named_sockets',` allow $1 system_dbusd_runtime_t:sock_file watch; ') +######################################## +## +## Read system bus runtime named sockets. +## +## +## +## Domain allowed access. +## +## +# +interface(`dbus_read_system_bus_runtime_named_sockets',` + gen_require(` + type system_dbusd_runtime_t; + ') + + allow $1 system_dbusd_runtime_t:sock_file read; +') + ######################################## ## ## Unconfined access to DBUS.