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.4 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, MENTIONS_GIT_HOSTING,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 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 B2AA6C49ED7 for ; Tue, 17 Sep 2019 00:52:35 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 7C0F820640 for ; Tue, 17 Sep 2019 00:52:35 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="XPcCuEWP" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729818AbfIQAwf (ORCPT ); Mon, 16 Sep 2019 20:52:35 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:46343 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728402AbfIQAwf (ORCPT ); Mon, 16 Sep 2019 20:52:35 -0400 Received: by mail-qt1-f195.google.com with SMTP id u22so2183899qtq.13 for ; Mon, 16 Sep 2019 17:52:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=d92nc+zfz/6d6oYNkD+/X/7quH2j63IGMqR1r674M7k=; b=XPcCuEWPprkyGkffavkv9F1r2VUiG3uF/iVlT2TUe5WJfZbY9FEoBiI1snr6v1Qu1f C7abRpNcgOWI4Tk+0WElX1G943SYSOouELFLz8M65HRMFfi+XI/glwG/ojZfT6e7hxjo ZZpecZaeiLfwsnQ1xrhqduhf9eTzoZHXgcQoY= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=d92nc+zfz/6d6oYNkD+/X/7quH2j63IGMqR1r674M7k=; b=L+eEvOqnagUL+EnT+MzySOvvD+aItNtLa25cCvCw8SYHbE/3MdknWhyA16jYk/gTLh xjgi/DT+n212cf/WaoexW9fesxwxz1xywvt18bmkhYUw4j9ITJi5L4uOvmlVlwlbccrM bVhvyQQTZ7OXxMCFQdQ9BQMmxwK+yDV687vm6oJsSP9MDKvPBA/36GLe1YRNyek/Ab1G 7U2hL7dpdz8ADx2ykhMh0+4vsqoSkE0sPv/7Hr8I2EaM0Kda6xttw/IRKOZZiAS89wA0 Aer5tblngkvzf5fCm6LujXKo+/KjusFoFUTPebTlrH/vxibvZUFoHLSl+8GILU7daAqG IjBw== X-Gm-Message-State: APjAAAVQYOnROjCYGHT0TqouQbbn6s+UzlCK3fnc/JONUQdoY7X9DnLz ZaWp72y76tPtgBI5NXZhAYnD69Bl81E= X-Google-Smtp-Source: APXvYqzZf01A8SfLgNVoCX8hwhB45n2AGV7DGO3zLTvjnICnwHLMipByy97GTvJLIKwjWiHffd52fA== X-Received: by 2002:a0c:a5a5:: with SMTP id z34mr1042539qvz.110.1568681553714; Mon, 16 Sep 2019 17:52:33 -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 d133sm369180qkg.31.2019.09.16.17.52.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 16 Sep 2019 17:52:33 -0700 (PDT) Subject: Re: [RFC] Rename *_var_run_t to *_runtime_t To: Nicolas Iooss Cc: refpolicy References: <581e9bcc-b5f9-1219-c520-d4dbf2b5f9eb@ieee.org> From: Chris PeBenito Message-ID: <7a4077a7-e889-226a-26c3-891db800755d@ieee.org> Date: Mon, 16 Sep 2019 20:52:32 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 MIME-Version: 1.0 In-Reply-To: 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 9/15/19 6:33 AM, Nicolas Iooss wrote: > On Sat, Sep 14, 2019 at 11:52 PM Chris PeBenito wrote: >> >> /var/run has moved to /run on most systems and it's use has increased >> beyond pid files and sockets. Because of this, new types used in /run >> have for some time followed the convention *_runtime_t. This change >> would rename all *_var_run_t types to *_runtime_t. >> >> Since this adds many aliases to the policy, the patch set also drops all >> old backwards-compatibility aliases. >> >> https://github.com/SELinuxProject/refpolicy/pull/106 >> >> Any objections to this? > > Hello, > I agree with this change. > > When I loaded the policy with your patch on my test system, my kernel > logs issued a warning: > > SELinux: Context sysadm_u:sysadm_r:samba_net_t became invalid (unmapped). > SELinux: Context sysadm_u:sysadm_r:smbcontrol_t became invalid (unmapped). > SELinux: Context sysadm_u:sysadm_r:winbind_helper_t became invalid (unmapped). > > This is because the following optional block from sysadm.te is now dropped: > > optional_policy(` > samba_admin(sysadm_t, sysadm_r) > samba_run_smbcontrol(sysadm_t, sysadm_r) > samba_run_smbmount(sysadm_t, sysadm_r) > samba_run_net(sysadm_t, sysadm_r) > samba_run_winbind_helper(sysadm_t, sysadm_r) > ') > > This block is dropped because it required two types that are not > defined: nmbd_runtime_t and smbd_runtime_t. > > In the current refpolicy (git master), there is: > > typealias samba_var_run_t alias { nmbd_var_run_t smbd_var_run_t }; > > Your pull request changes this to: > > typealias samba_runtime_t alias { nmbd_var_run_t smbd_var_run_t }; > > Should nmbd_runtime_t and smbd_runtime_t be changed to samba_runtime_t > in interface samba_admin()? Yes. There was another interface that also had that issue. I updated the PR to fix it. > Other than that, I did not find other issues. > > Thanks, > Nicolas > -- Chris PeBenito