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.2 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 864F2C43381 for ; Thu, 21 Feb 2019 03:40:54 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 5724920651 for ; Thu, 21 Feb 2019 03:40:54 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="MvtCEnRf" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726172AbfBUDky (ORCPT ); Wed, 20 Feb 2019 22:40:54 -0500 Received: from mail-pl1-f194.google.com ([209.85.214.194]:43757 "EHLO mail-pl1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726016AbfBUDkx (ORCPT ); Wed, 20 Feb 2019 22:40:53 -0500 Received: by mail-pl1-f194.google.com with SMTP id m10so3752591plt.10 for ; Wed, 20 Feb 2019 19:40:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ieee.org; s=google; h=message-id:subject:from:to:date:in-reply-to:references:user-agent :mime-version:content-transfer-encoding; bh=WBx+UAZIvAAmhxGy1EXOsnvluqAVffDRKDN5PptciNw=; b=MvtCEnRf4kaWMy3yw8bEhGPjf7vBYLOxlDuuCr5jtBafr09aiSoa+ZDlh963Iu7KT8 hH5mDBCC80vwLAMOWwCtc6TXbXnrfh4Z79hRmNbfOHzsRednpHNATA3UfwQz+W3OZafP SgZz4shBYNpVmT6/NJyKefqfwnVouSslG9NIE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:subject:from:to:date:in-reply-to :references:user-agent:mime-version:content-transfer-encoding; bh=WBx+UAZIvAAmhxGy1EXOsnvluqAVffDRKDN5PptciNw=; b=TeOej6+emMjjQWfb0Y2EtSU7mVot3zDFHzS7QfrtQ1xhEDqBmPkoXv4iRK3bhz3J+A +sm4qcX9fv2eWodUH3vkdvKjQikeYaHGgZe0WB+1x/X0+D47KyuItaN4pg6c30lUjh7b QWtoV3TW0eBz7jNpIwJzo01wJmih4fQJxw2CCi/Thh0nMSI8Zaa+88l2uoAWCP0ufuO9 2IC96oT0xM5Vkj99yiK2P6T4gDuSC3DFogPzZl1viueS0shdX5rOI1Gr1Z+r2JNw4Rop FoTR/wmA7bHILA5WaRgMQoM/QIXnYeihZZukkW2E0/UDDG1V+Y0GcjpvprA/4aZPo6vI N/fg== X-Gm-Message-State: AHQUAubkV27pZlHoSZvk4x+urrE/uTrDLFIfmLIQKgUAf4YwU/F8W3zl j/U74f64ppg/btBBrl3gbcghRbpyy6yW0g== X-Google-Smtp-Source: AHgI3IY/AXQHDvaKRfChHVcfYo78i+JfJHO+ZomqzQSG8w7ArQFeEEy/pZ30gMFgcoJXGG0idK3aBg== X-Received: by 2002:a17:902:8344:: with SMTP id z4mr20339346pln.77.1550720453322; Wed, 20 Feb 2019 19:40:53 -0800 (PST) Received: from lenovo.pebenito.net ([173.239.195.15]) by smtp.gmail.com with ESMTPSA id v1sm15997087pff.9.2019.02.20.19.40.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Wed, 20 Feb 2019 19:40:52 -0800 (PST) Message-ID: <1ba3afe491c9edfb71ce7e280511d71e96efaf6f.camel@ieee.org> Subject: Re: [PATCH v2] Add interface to get status of rsyslog service From: Chris PeBenito To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" Date: Wed, 20 Feb 2019 19:40:52 -0800 In-Reply-To: <20190220163709.27002-1-dsugar@tresys.com> References: <20190220163709.27002-1-dsugar@tresys.com> Content-Type: text/plain; charset="UTF-8" User-Agent: Evolution 3.30.5 (3.30.5-1.fc29) MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: selinux-refpolicy-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: selinux-refpolicy@vger.kernel.org On Wed, 2019-02-20 at 16:37 +0000, Sugar, David wrote: > Updated based on feedback. > > Signed-off-by: Dave Sugar > --- > policy/modules/system/logging.if | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/policy/modules/system/logging.if > b/policy/modules/system/logging.if > index 16091eb6..c86c4bd9 100644 > --- a/policy/modules/system/logging.if > +++ b/policy/modules/system/logging.if > @@ -427,6 +427,25 @@ interface(`logging_domtrans_syslog',` > ') > ') > > +######################################## > +## > +## Allow specified domain to check status of syslog unit > +## > +## > +## > +## Domain allowed access. > +## > +## > +# > +interface(`logging_status_syslog',` > + gen_require(` > + type syslogd_unit_t; > + class service status; > + ') > + > + allow $1 syslogd_unit_t:service status; > +') > + > ######################################## > ## > ## Set the attributes of syslog temporary files. Merged. -- Chris PeBenito