Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.3 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_PASS,UNWANTED_LANGUAGE_BODY, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7E2A0C43381 for ; Sun, 24 Mar 2019 18:44:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 4E57F206BA for ; Sun, 24 Mar 2019 18:44:00 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="g7fdHu8G" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726347AbfCXSoA (ORCPT ); Sun, 24 Mar 2019 14:44:00 -0400 Received: from mail-qt1-f193.google.com ([209.85.160.193]:34800 "EHLO mail-qt1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbfCXSn7 (ORCPT ); Sun, 24 Mar 2019 14:43:59 -0400 Received: by mail-qt1-f193.google.com with SMTP id k2so7976761qtm.1 for ; Sun, 24 Mar 2019 11:43:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-language:content-transfer-encoding; bh=jyYVWyw+u3EOh6Fic4fVnIqzZ0+FrXTfLwo6xf0wHFo=; b=g7fdHu8GO2jR5K2pgsZ+FiTfvxBoaKEPTfLssf9ZhoOdfJqhno2I+2u+gDhPRaYNyh eGqXXpVtGmjpsYOJ4oIpjd63gXvM7C4aEy3sDb/dtf6GuEgf5tsyWYEyH55CGDMsU/93 HVvwukrAyA1rRRXJLGIfWZmg9gM/gy9rxrDTg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=jyYVWyw+u3EOh6Fic4fVnIqzZ0+FrXTfLwo6xf0wHFo=; b=I8gykEyOxbJdOh5AWziJwTLBz6CR0NLUyLoFzYQcYeFSbNZgIcbwe4AaTyjg10H1JY JzSLogEnqg7aN8EmzRxYa3o1yJ5ksIwYZSiXI7E91RyojiCRVTUU6VyHtgxQ33Lplw94 UUUBMVA6a7qmTvKWeAZ3gaJHEJFwE/UOZtzRpnY5ocE626g75enZrJzASA6i3YhntGQi KEBRwH5cRuVBk8PmuQueQ8YbeGQPemqWTNsuoKVDIxrENkDiMiLw9KiiBGOiA6BWHOTL NKQG1poQBbimgeMbjYUWCidpkP7OQF0v4tfIaYi77iPeUgLSaruxlUBPPVYGT4u76kgy fMdw== X-Gm-Message-State: APjAAAUfmoKjUzRh8Bdhs/2/t5nKxOFEaN1bffWIT891XE5L5k2G6ded 6RVKOvHQ8sy7MxiYkAHR3VOUAik+VlU= X-Google-Smtp-Source: APXvYqyF4MjIgAdLIIxxnWb9dsF5P/3vQvbxPwQuNxbryY5ShevkbKn4IgHi39LfGbyIf5Ytc4CZjQ== X-Received: by 2002:aed:2a3b:: with SMTP id c56mr17662703qtd.110.1553453038346; Sun, 24 Mar 2019 11:43:58 -0700 (PDT) Received: from [192.168.1.190] (pool-108-15-23-247.bltmmd.fios.verizon.net. [108.15.23.247]) by smtp.gmail.com with ESMTPSA id j25sm5625049qtc.24.2019.03.24.11.43.57 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 11:43:58 -0700 (PDT) Subject: Re: [PATCH 2/4] Allow ntpd to update chronyd service To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" References: <20190320002012.21220-1-dsugar@tresys.com> <20190320002012.21220-3-dsugar@tresys.com> From: Chris PeBenito Message-ID: <67a2922c-2dcf-70d6-0290-f54a2e110ef5@ieee.org> Date: Sun, 24 Mar 2019 14:36:14 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.3.0 MIME-Version: 1.0 In-Reply-To: <20190320002012.21220-3-dsugar@tresys.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 3/19/19 8:20 PM, Sugar, David wrote: > type=USER_AVC msg=audit(1553013917.361:9938): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { disable } for auid=n/a uid=0 gid=0 path="/usr/lib/systemd/system/chronyd.service" cmdline="/usr/lib/systemd/systemd-timedated" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:chronyd_unit_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=? > type=USER_AVC msg=audit(1553013917.406:9943): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { stop } for auid=n/a uid=0 gid=0 path="/usr/lib/systemd/system/chronyd.service" cmdline="/usr/lib/systemd/systemd-timedated" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:chronyd_unit_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?' > type=USER_AVC msg=audit(1553021100.061:9970): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { enable } for auid=n/a uid=0 gid=0 path="/usr/lib/systemd/system/chronyd.service" cmdline="/usr/lib/systemd/systemd-timedated" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:chronyd_unit_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?' > type=USER_AVC msg=audit(1553021100.104:9973): pid=1 uid=0 auid=4294967295 ses=4294967295 subj=system_u:system_r:init_t:s0 msg='avc: denied { start } for auid=n/a uid=0 gid=0 path="/usr/lib/systemd/system/chronyd.service" cmdline="/usr/lib/systemd/systemd-timedated" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:chronyd_unit_t:s0 tclass=service exe="/usr/lib/systemd/systemd" sauid=0 hostname=? addr=? terminal=?' > > Signed-off-by: Dave Sugar > --- > policy/modules/services/ntp.te | 5 +++++ > 1 file changed, 5 insertions(+) > > diff --git a/policy/modules/services/ntp.te b/policy/modules/services/ntp.te > index dc953784..d882fc59 100644 > --- a/policy/modules/services/ntp.te > +++ b/policy/modules/services/ntp.te > @@ -153,6 +153,11 @@ ifdef(`init_systemd',` > # for /run/systemd/netif/links > systemd_list_networkd_runtime(ntpd_t) > > + optional_policy(` > + chronyd_enabledisable(ntpd_t) > + chronyd_startstop(ntpd_t) > + ') > + > optional_policy(` > unconfined_dbus_send(ntpd_t) > ') Merged. -- Chris PeBenito