Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp370889pxu; Sun, 22 Nov 2020 11:05:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJzvi/U6LHW+A0Ng/iHRIc8f68pX8usKdLgFYJ/75cy6iYGIc2G/UQBxMw8FAKF7kplVsXBa X-Received: by 2002:a17:907:250c:: with SMTP id y12mr19760708ejl.367.1606071942525; Sun, 22 Nov 2020 11:05:42 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606071942; cv=none; d=google.com; s=arc-20160816; b=Scxt6w6a2Fz9FJYRf9jdT0mE3DwMM4M8/W0eP7PIKHcEyAiNZoSblK4w90iP0CWQEr BMJvVfd6UQnwZ0IjMj6sPTjLsBqfeT8OrKHo7+mUaEA1TvLje3XadodWdRh/b8Ixy++L GVp7eSgUFlfAPra7S4wgeDnMX1fQWp0Tdu3+lRU/fLBFO58abNv9z83V1JQC2/LKXfv7 85JyAi3ii2X9vU38G1dErHwDNMcNDHPruWx9lFIzfs3NBHrTs8+BCXOTjCgcUaGiox1F W06+wPsIWKCxMnSc34SS6fcED9BAjBki9Y2loV02+QBUH/KsbZ58k/JaWqyWEHXcj2sQ c9BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=xvVuYh+F5e/JhDJJIVaw3T3ahRWB4+stzHgdUUsXHVg=; b=ezLyq/kO3UHoWAD1yFpkRdGafmx5ggEXoGjiuCbla45Eex6L8yUpLClhkzmq/aJQ2X DGf0m+Rw8jShklplxORNH1YgOe/A24ZMvoIi40e1p+RrLGy4pCn8CXLrhwhUzxanWW35 4Q6hRm1KpY9YwoJAGqoyC/RPsYyvKcLPs/gp85fzIATEeWkFKubBwjJgZvfqhzcWZjNJ syQllmUo8aXAbHoIJI7ehOKAn3lC/amw/NeIrHFNh0vtjJoASKuZTZgZn0XIBN6unNmM mksayT9+Rdyyrrju0PHwusQrt6VWSHEIGKOTsHcarJLS9ryQWIGkvBP+25+4UGssLKbn QSYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b="WGuLmy/Y"; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bl7si5161722ejb.3.2020.11.22.11.05.38; Sun, 22 Nov 2020 11:05:42 -0800 (PST) Received-SPF: pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@ieee.org header.s=google header.b="WGuLmy/Y"; spf=pass (google.com: domain of selinux-refpolicy-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=selinux-refpolicy-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=ieee.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728126AbgKVTEu (ORCPT + 16 others); Sun, 22 Nov 2020 14:04:50 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36740 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727795AbgKVTEt (ORCPT ); Sun, 22 Nov 2020 14:04:49 -0500 Received: from mail-qt1-x844.google.com (mail-qt1-x844.google.com [IPv6:2607:f8b0:4864:20::844]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 407B8C0613CF for ; Sun, 22 Nov 2020 11:04:48 -0800 (PST) Received: by mail-qt1-x844.google.com with SMTP id f93so11427594qtb.10 for ; Sun, 22 Nov 2020 11:04:48 -0800 (PST) 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=xvVuYh+F5e/JhDJJIVaw3T3ahRWB4+stzHgdUUsXHVg=; b=WGuLmy/YGMNdH/X/7QgwIgm6QcOmYxZkazvRDWNbcTihGu8JJGsB5eN6kRekt6bsF0 hjwSvRKueir2ZLmC2jQ0ixdHXLGU3n0V+JFwukC9HwMYlX1/pP74H6J1UlO/5bHTML+r denQFfNs778k4LhnFoe0FArcbG6XGdHqYfPeY= 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=xvVuYh+F5e/JhDJJIVaw3T3ahRWB4+stzHgdUUsXHVg=; b=ibIbv6GwKJzCPExTfZmFzrytzBG2wLz09+zDrni4KSrNhnfsHBx2ffil1bM0zi1R0s oaJWw9a1NjlX1GUjh1hi5Z2drpzqoY3jRPO2Xj2csghtB/yswSFds1Zyay60+Xp7tCVb gORYtp8z6g9X7JKD6Asw6rYQGoHJCavk+KcAsCuGvkhzlo1b0If+GNuCeqqfkPQGPIQN q2JDPfLP9uJsb2MjlrWOB+8fB2Fkmr1/cDVPaJJmnCffU18HN0RQ5ocGAO3J4htVKK2H VEh4tSGiaOYJOom0KizQVQsNODDLIEp+3nOQZayToyZZuBlsIk5f64wJpnMZajCY4BNB ZTAg== X-Gm-Message-State: AOAM533HBa6FprzGQXQm6wXL/+8H7IATFtX4NUg02xsO8XjjJERgpuGh td4Psk8KCzT8NyCRpbSjKo9+hw== X-Received: by 2002:aed:2823:: with SMTP id r32mr24376785qtd.199.1606071887516; Sun, 22 Nov 2020 11:04:47 -0800 (PST) Received: from fedora.pebenito.net (pool-96-234-173-17.bltmmd.fios.verizon.net. [96.234.173.17]) by smtp.gmail.com with ESMTPSA id y35sm7914704qty.58.2020.11.22.11.04.46 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 22 Nov 2020 11:04:47 -0800 (PST) Subject: Re: [PATCH 2/8] getty: allow watching file /run/agetty.reload To: Jason Zaman , selinux-refpolicy@vger.kernel.org Cc: Jason Zaman References: <20201117034628.2461-1-jason@perfinion.com> <20201117034628.2461-2-jason@perfinion.com> From: Chris PeBenito Message-ID: Date: Sun, 22 Nov 2020 14:03:44 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.0 MIME-Version: 1.0 In-Reply-To: <20201117034628.2461-2-jason@perfinion.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On 11/16/20 10:46 PM, Jason Zaman wrote: > From: Jason Zaman > > avc: denied { watch } for pid=2485 comm="agetty" path="/run/agetty.reload" dev="tmpfs" ino=22050 scontext=system_u:system_r:getty_t:s0 tcontext=system_u:object_r:getty_runtime_t:s0 tclass=file permissive=0 > > Signed-off-by: Jason Zaman > Signed-off-by: Jason Zaman > --- > policy/modules/system/getty.te | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/policy/modules/system/getty.te b/policy/modules/system/getty.te > index ce9e4dedb..f9514c771 100644 > --- a/policy/modules/system/getty.te > +++ b/policy/modules/system/getty.te > @@ -47,6 +47,7 @@ allow getty_t getty_log_t:file { append_file_perms create_file_perms setattr_fil > logging_log_filetrans(getty_t, getty_log_t, file) > > allow getty_t getty_runtime_t:dir watch; > +allow getty_t getty_runtime_t:file watch; > manage_files_pattern(getty_t, getty_runtime_t, getty_runtime_t) > files_runtime_filetrans(getty_t, getty_runtime_t, file) Merged. -- Chris PeBenito