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 054E4138335 for ; Sun, 9 Dec 2018 11:49:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 21D52E0900; Sun, 9 Dec 2018 11:49:01 +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 F1F0CE0900 for ; Sun, 9 Dec 2018 11:49:00 +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 850D7335C9F for ; Sun, 9 Dec 2018 11:48:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 8A9914DE for ; Sun, 9 Dec 2018 11:48:57 +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: <1542538607.4f0bb0f94aff4aa39bd3be21704100e12da6f042.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: 4f0bb0f94aff4aa39bd3be21704100e12da6f042 X-VCS-Branch: master Date: Sun, 9 Dec 2018 11:48:57 +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: 251d6246-4f25-40ff-b0f9-b926e299697e X-Archives-Hash: fd79375246051f040f78c6a0deda644e commit: 4f0bb0f94aff4aa39bd3be21704100e12da6f042 Author: Laurent Bigonville bigon be> AuthorDate: Thu Nov 1 15:09:00 2018 +0000 Commit: Jason Zaman gentoo org> CommitDate: Sun Nov 18 10:56:47 2018 +0000 URL: https://gitweb.gentoo.org/proj/hardened-refpolicy.git/commit/?id=4f0bb0f9 Allow ntpd_t to read init state With systemd-timesyncd, the following AVC denials are generated: type=AVC msg=audit(01/11/18 15:44:39.564:48) : avc: denied { open } for pid=397 comm=systemd-timesyn path=/proc/1/sched dev="proc" ino=1128 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file permissive=1 type=AVC msg=audit(01/11/18 15:44:39.564:48) : avc: denied { read } for pid=397 comm=systemd-timesyn name=sched dev="proc" ino=1128 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file permissive=1 type=AVC msg=audit(01/11/18 15:44:39.564:49) : avc: denied { getattr } for pid=397 comm=systemd-timesyn path=/proc/1/sched dev="proc" ino=1128 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:system_r:init_t:s0 tclass=file permissive=1 Signed-off-by: Jason Zaman perfinion.com> policy/modules/services/ntp.te | 1 + 1 file changed, 1 insertion(+) diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te index 39ea1c5e..76ce4da9 100644 --- a/policy/modules/services/ntp.te +++ b/policy/modules/services/ntp.te @@ -145,6 +145,7 @@ ifdef(`init_systemd',` init_dbus_chat(ntpd_t) init_get_system_status(ntpd_t) allow ntpd_t self:capability { fowner setpcap }; + init_read_state(ntpd_t) init_reload(ntpd_t) # for /var/lib/systemd/clock