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 42C4AC43381 for ; Wed, 20 Feb 2019 03:32:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0F75C2146F for ; Wed, 20 Feb 2019 03:32:07 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="TXOFYRd+" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727797AbfBTDcG (ORCPT ); Tue, 19 Feb 2019 22:32:06 -0500 Received: from mail-pg1-f194.google.com ([209.85.215.194]:42856 "EHLO mail-pg1-f194.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726312AbfBTDcG (ORCPT ); Tue, 19 Feb 2019 22:32:06 -0500 Received: by mail-pg1-f194.google.com with SMTP id b2so5401171pgl.9 for ; Tue, 19 Feb 2019 19:32:06 -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=FxfJfsqvQhbe5ctsduYvoyCH47mWuyddQ/jAGZPjpj0=; b=TXOFYRd+QCu9jPNggjkzGaRrVYR4xcbxgAylHXpVhylUQxcdZqy4Wov4hPr4Gl01IY vUjgLKjSHyAOhXJ9oHzREdItoLB2UxbsYPUFg4fJCksye2yiGQArepRIh2JYtYgIVE6O pjzzJAxNcT2W615hI9dpUBc5VNycUbGL5XBA0= 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=FxfJfsqvQhbe5ctsduYvoyCH47mWuyddQ/jAGZPjpj0=; b=nwRjVCDQvFTfW32K30Vb63u6pi9ttBk+vuxZ55fGFHR4rFe+lgjZU1J/gtquXGkj/Y dHBKOr7P2P/MiozhSf+aGezXIvtD5QVTOulF5QWwbegkyiSdyZjxQu8LALwuA3IYIlS/ y9AdXb0+yJLjg5LowFtc9KICJcpUVpK16W1Vl2VK4s0UAUGdyImpig+pdI9XL8/Hx43Z 2dX1Vc5oksQBylAYI2A/1T//QblWGVyW2oTpjQ3Kgosw58qdcLNKIuhwIfOcsQ9Y/wvr 6CKnQFVlq0JvqsnVUpkmGt0/M5TA6HZOLN+cS6SR66rLx+Drxu/KoCAL7QHdU779q1gd l51Q== X-Gm-Message-State: AHQUAubB+Ztax5eNft30KKIkf53ltmj84cFntgazwAISHA06iocjxWyd lmDmFfUHR2YBt9AqnCYpmCvMEwB2fU0Lk2Et X-Google-Smtp-Source: AHgI3IbOBcWmWcdHxcuobWNgKHtMnNO6o+e3TkIjydCXJJ3n9DyFaevYNjBR1kG+hYgDEUGlsE7rlw== X-Received: by 2002:a62:e082:: with SMTP id d2mr33657622pfm.240.1550633526047; Tue, 19 Feb 2019 19:32:06 -0800 (PST) Received: from lenovo.pebenito.net ([173.239.195.26]) by smtp.gmail.com with ESMTPSA id o5sm17075623pfi.118.2019.02.19.19.32.05 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Tue, 19 Feb 2019 19:32:05 -0800 (PST) Message-ID: Subject: Re: [PATCH] Add interface to get status of rsyslog service From: Chris PeBenito To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" Date: Tue, 19 Feb 2019 19:32:05 -0800 In-Reply-To: <20190218200017.4439-1-dsugar@tresys.com> References: <20190218200017.4439-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 Mon, 2019-02-18 at 20:00 +0000, Sugar, David wrote: > 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..21ec6501 100644 > --- a/policy/modules/system/logging.if > +++ b/policy/modules/system/logging.if > @@ -1222,6 +1222,25 @@ interface(`logging_admin_audit',` > dontaudit $1 auditd_log_t:file map; > ') > > +######################################## > +## > +## 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; > +') > + > ######################################## > ## > ## All of the rules required to administrate This should be up after logging_domtrans_syslog(). -- Chris PeBenito