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=-11.7 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 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 3DACCC43387 for ; Mon, 7 Jan 2019 23:49:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0D84A2183E for ; Mon, 7 Jan 2019 23:49:02 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=ieee.org header.i=@ieee.org header.b="PS9/oV0Z" Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727346AbfAGXtB (ORCPT ); Mon, 7 Jan 2019 18:49:01 -0500 Received: from mail-qt1-f196.google.com ([209.85.160.196]:36728 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727344AbfAGXtB (ORCPT ); Mon, 7 Jan 2019 18:49:01 -0500 Received: by mail-qt1-f196.google.com with SMTP id t13so2551183qtn.3 for ; Mon, 07 Jan 2019 15:49:00 -0800 (PST) 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=CbmN8/QXW8ABB6WxYK+ONnW2vHYSA+WjfDdGE0OpwtI=; b=PS9/oV0Zm/QIXIijM22NHFO3bfVm4uTfiVR2oLGaTbXPWcJZMj9Y4qLay6s+spL8FE 7AR5vYx2V5Ag2gLFDRFUn53vjDEPKROU0BgRz8oBj9AXNRE+JXfb9I6U6LLYfWbdxosJ WHQb7FsHiLqmZKurxe2NWgf4Oc1EcRK/U3rlg= 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=CbmN8/QXW8ABB6WxYK+ONnW2vHYSA+WjfDdGE0OpwtI=; b=V71tQxiLogpE2IBVuuW/mtqoZY4CJn6Zw/DxHE1OQ3CWSs82nAicnQuZ/GOeEpnmpV pynas0MZAO9nE68atPUQNN6hM0jtt2ry/zfKvD8UM/RGiNtKKQPMB8cLwMB2Si6EQARV 7C+k2AQz9NG5hqZG/yrEflwdBwAuO5VuIl4GueON+rzsuJECXUskZq/sKglgaOtmaGEe sM8S5eFyRdPgW34gKe9qWaBYB8Q7pQcnyfLhLkgcYolo270kLrKczz5J0/p9/wjLyLvo hTdoeWpVStW75eZZ+VW3lpr9ausd5NQCIVY0LB5YP8HcfBL1+Q3hxziP5wA7Kh+9Rrjf uLdg== X-Gm-Message-State: AJcUukdG12om0TURG3TYaSim0C5YQTp/SLp6bhVo29CuCDhE7DZBbF2B G4dcLjpwIRK8w62gLMSL4Yh2FinSmms= X-Google-Smtp-Source: ALg8bN6wdj8fYIl1rv4GQiMTqATdp6DPtom3sUaCdH9L+HIYF62/wBjoy21TzaMWWNhDlt70YV38CQ== X-Received: by 2002:aed:3e49:: with SMTP id m9mr57072938qtf.99.1546904940037; Mon, 07 Jan 2019 15:49:00 -0800 (PST) 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 n72sm35673361qki.26.2019.01.07.15.48.59 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 07 Jan 2019 15:48:59 -0800 (PST) Subject: Re: [PATCH] Add interface to get status of iptables service To: "Sugar, David" , "selinux-refpolicy@vger.kernel.org" References: <20190107194942.21508-1-dsugar@tresys.com> From: Chris PeBenito Message-ID: <7c51d5d5-0d57-63bc-b7f3-f54d2a113232@ieee.org> Date: Mon, 7 Jan 2019 18:48:59 -0500 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: <20190107194942.21508-1-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 1/7/19 2:50 PM, Sugar, David wrote: > Signed-off-by: Dave Sugar > --- > policy/modules/system/iptables.if | 19 +++++++++++++++++++ > 1 file changed, 19 insertions(+) > > diff --git a/policy/modules/system/iptables.if b/policy/modules/system/iptables.if > index 7d8f1821..725a6a3d 100644 > --- a/policy/modules/system/iptables.if > +++ b/policy/modules/system/iptables.if > @@ -183,6 +183,25 @@ interface(`iptables_dontaudit_read_pids',` > dontaudit $1 iptables_runtime_t:file read; > ') > > +######################################## > +## > +## Allow specified domain to get status of iptables service > +## > +## > +## > +## Domain allowed access. > +## > +## > +# > +interface(`iptables_status',` > + gen_require(` > + type iptables_unit_t; > + class service status; > + ') > + > + allow $1 iptables_unit_t:service status; > +') > + > ######################################## > ## > ## All of the rules required to Merged. -- Chris PeBenito