From: Chris PeBenito <pebenito@ieee.org>
To: "Sugar, David" <dsugar@tresys.com>,
"selinux-refpolicy@vger.kernel.org"
<selinux-refpolicy@vger.kernel.org>
Subject: Re: [PATCH] Add interface to get status of iptables service
Date: Mon, 7 Jan 2019 18:48:59 -0500 [thread overview]
Message-ID: <7c51d5d5-0d57-63bc-b7f3-f54d2a113232@ieee.org> (raw)
In-Reply-To: <20190107194942.21508-1-dsugar@tresys.com>
On 1/7/19 2:50 PM, Sugar, David wrote:
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
> 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;
> ')
>
> +########################################
> +## <summary>
> +## Allow specified domain to get status of iptables service
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`iptables_status',`
> + gen_require(`
> + type iptables_unit_t;
> + class service status;
> + ')
> +
> + allow $1 iptables_unit_t:service status;
> +')
> +
> ########################################
> ## <summary>
> ## All of the rules required to
Merged.
--
Chris PeBenito
prev parent reply other threads:[~2019-01-07 23:49 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-01-07 19:50 [PATCH] Add interface to get status of iptables service Sugar, David
2019-01-07 23:48 ` Chris PeBenito [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=7c51d5d5-0d57-63bc-b7f3-f54d2a113232@ieee.org \
--to=pebenito@ieee.org \
--cc=dsugar@tresys.com \
--cc=selinux-refpolicy@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).