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=-7.1 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,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 1377CC43381 for ; Sun, 24 Mar 2019 18:44:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7DB1320880 for ; Sun, 24 Mar 2019 18:44:01 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="eJ16xSaF" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727192AbfCXSoB (ORCPT ); Sun, 24 Mar 2019 14:44:01 -0400 Received: from mail-qk1-f195.google.com ([209.85.222.195]:46861 "EHLO mail-qk1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726139AbfCXSoB (ORCPT ); Sun, 24 Mar 2019 14:44:01 -0400 Received: by mail-qk1-f195.google.com with SMTP id s81so4043964qke.13 for ; Sun, 24 Mar 2019 11:44:00 -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=3n//PI9b0gG+Wv/pNMI8RXuhHIyl78mYqoWxo00nvxA=; b=eJ16xSaFupaeU0oOpLS+MLMEuPT1PhOS6DmBikd/cEY0bDZ7we4X0E3bTli88SUwQX urfHDgPJTVM6y8Ri0mvQyTMi7+h0noy/XkOqDQHP4RjiPsDnPMGV+wapqa4g3ULzJxxD xUGw2aOFIJEdXeKucI/CfuCe3PjP0EYGG1kzo= 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=3n//PI9b0gG+Wv/pNMI8RXuhHIyl78mYqoWxo00nvxA=; b=FccaIsb7A/Czvvw3lfvn1vp0u8Nf8vcb06g4m1gNAPXMDrhsdmo5tCRZ+bsoE/Hjqq O/D+5ZdC3bLuYgzMn37gW/yfG0623tbGv6Bn56w0j4hTAQRhQvIinADckek7ExVVK6bQ TRwB85egEon9Uah5Qq9EdnhNdSvxb8zV6c3uZ1h+5vwEmhtZbtMQ1kipuVpVgjqm+jA5 jdPJhn9vYghE746Kbde2mWvJfuRrHbZdMXSCc+OeZGKi6YBIGj2Qqygr36E5feSGwkD1 4Ge5JKN/u63juzKljgdzYkk9dkiLnFJ0dksC7LQHph1dRcqKY/M+k9DHyXD85PzJNcdv JWpw== X-Gm-Message-State: APjAAAWC6Uuzq3V6bjZ8H/cmb81cVMh7e/jr8Q4PtWm5BgIarsWEMDJE prh6tVqgLJxdMWHwcNXbrvmaEGHpSiQ= X-Google-Smtp-Source: APXvYqwo+3Ef3qxu0y2Vx/5BpDKdpE46kTbDn0xKvnj9vvPPiO8/ghxbSkqy+7NLwjJIkiSaGUAapQ== X-Received: by 2002:a05:620a:1201:: with SMTP id u1mr5635051qkj.357.1553453039791; Sun, 24 Mar 2019 11:43:59 -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 d34sm9797642qta.18.2019.03.24.11.43.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 24 Mar 2019 11:43:59 -0700 (PDT) Subject: Re: [PATCH 3/4] Allow ntpd to update timezone symlink To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" References: <20190320002012.21220-1-dsugar@tresys.com> <20190320002012.21220-4-dsugar@tresys.com> From: Chris PeBenito Message-ID: <9e4db8b1-6264-7015-729f-51b3097a7a78@ieee.org> Date: Sun, 24 Mar 2019 14:36:20 -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-4-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=AVC msg=audit(1553013821.624:9907): avc: denied { create } for pid=16281 comm="systemd-timedat" name=".#localtime69bc4c9ad513a247" scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1 > type=AVC msg=audit(1553013821.624:9908): avc: denied { rename } for pid=16281 comm="systemd-timedat" name=".#localtime69bc4c9ad513a247" dev="dm-1" ino=714303 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1 > type=AVC msg=audit(1553013821.624:9908): avc: denied { unlink } for pid=16281 comm="systemd-timedat" name="localtime" dev="dm-1" ino=1063377 scontext=system_u:system_r:ntpd_t:s0 tcontext=system_u:object_r:etc_t:s0 tclass=lnk_file permissive=1 > > Signed-off-by: Dave Sugar > --- > 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 d882fc59..eff38486 100644 > --- a/policy/modules/services/ntp.te > +++ b/policy/modules/services/ntp.te > @@ -116,6 +116,7 @@ dev_rw_realtime_clock(ntpd_t) > domain_use_interactive_fds(ntpd_t) > domain_dontaudit_list_all_domains_state(ntpd_t) > > +files_manage_etc_symlinks(ntpd_t) > files_read_etc_runtime_files(ntpd_t) > files_read_usr_files(ntpd_t) > files_list_var_lib(ntpd_t) Merged. -- Chris PeBenito