From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-1214331-garchives=archives.gentoo.org@lists.gentoo.org> 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 6DEBD138359 for <garchives@archives.gentoo.org>; Tue, 13 Oct 2020 03:02:14 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 255DEE086F; Tue, 13 Oct 2020 03:02:11 +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 0CE76E086E for <gentoo-commits@lists.gentoo.org>; Tue, 13 Oct 2020 03:02:11 +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 EC3BF340AF0 for <gentoo-commits@lists.gentoo.org>; Tue, 13 Oct 2020 03:02:09 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 700343BB for <gentoo-commits@lists.gentoo.org>; Tue, 13 Oct 2020 03:02:06 +0000 (UTC) From: "Jason Zaman" <perfinion@gentoo.org> 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" <perfinion@gentoo.org> Message-ID: <1602450880.cb663b200b61b96128f908d286ef1370b8c5cd1c.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/ntp.te X-VCS-Directories: policy/modules/services/ X-VCS-Committer: perfinion X-VCS-Committer-Name: Jason Zaman X-VCS-Revision: cb663b200b61b96128f908d286ef1370b8c5cd1c X-VCS-Branch: master Date: Tue, 13 Oct 2020 03:02:06 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8bc2d73e-724f-49fb-b020-2ff58206e8cb X-Archives-Hash: e3d3d689693cdf216ebc0a3f989416f2 commit: cb663b200b61b96128f908d286ef1370b8c5cd1c Author: Antoine Tenart <antoine.tenart <AT> bootlin <DOT> com> AuthorDate: Mon Oct 5 14:54:57 2020 +0000 Commit: Jason Zaman <perfinion <AT> gentoo <DOT> org> CommitDate: Sun Oct 11 21:14:40 2020 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=cb663b20 ntp: allow systemd-timesyn to watch dbus objects Fixes: avc: denied { watch } for pid=68 comm="systemd-timesyn" path="/run/dbus" dev="tmpfs" ino=2707 scontext=system_u:system_r:ntpd_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=dir permissive=1 avc: denied { watch } for pid=68 comm="systemd-timesyn" path="/run/dbus/system_bus_socket" dev="tmpfs" ino=2716 scontext=system_u:system_r:ntpd_t tcontext=system_u:object_r:system_dbusd_runtime_t tclass=sock_file permissive=1 Signed-off-by: Antoine Tenart <antoine.tenart <AT> bootlin.com> Signed-off-by: Jason Zaman <perfinion <AT> gentoo.org> policy/modules/services/ntp.te | 2 ++ 1 file changed, 2 insertions(+) diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te index 86bfc9ff..b9cc0ea2 100644 --- a/policy/modules/services/ntp.te +++ b/policy/modules/services/ntp.te @@ -145,6 +145,8 @@ ifdef(`init_systemd',` dbus_system_bus_client(ntpd_t) dbus_connect_system_bus(ntpd_t) + dbus_watch_system_bus_runtime_dirs(ntpd_t) + dbus_watch_system_bus_runtime_named_sockets(ntpd_t) init_dbus_chat(ntpd_t) init_get_system_status(ntpd_t) init_list_unit_dirs(ntpd_t)