From: Chris PeBenito <pebenito@ieee.org>
To: David Sugar <dsugar@tresys.com>,
"selinux-refpolicy@vger.kernel.org"
<selinux-refpolicy@vger.kernel.org>
Subject: Re: [PATCH 2/2] interface to enable/disable systemd_networkd service
Date: Sat, 17 Nov 2018 18:54:11 -0500 [thread overview]
Message-ID: <a38b3ed5-d8e5-f3c0-1a3f-77e77346deb6@ieee.org> (raw)
In-Reply-To: <20181117042305.23949-2-dsugar@tresys.com>
On 11/16/18 11:23 PM, David Sugar wrote:
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
> policy/modules/system/systemd.if | 19 +++++++++++++++++++
> 1 file changed, 19 insertions(+)
>
> diff --git a/policy/modules/system/systemd.if b/policy/modules/system/systemd.if
> index 9247924b..74f0b215 100644
> --- a/policy/modules/system/systemd.if
> +++ b/policy/modules/system/systemd.if
> @@ -467,6 +467,25 @@ interface(`systemd_manage_networkd_units',`
> manage_files_pattern($1, systemd_networkd_unit_t, systemd_networkd_unit_t)
> ')
>
> +########################################
> +## <summary>
> +## Allow specified domain to enable systemd-networkd units
> +## </summary>
> +## <param name="domain">
> +## <summary>
> +## Domain allowed access.
> +## </summary>
> +## </param>
> +#
> +interface(`systemd_enabledisable_networkd',`
> + gen_require(`
> + type systemd_networkd_unit_t;
> + class service { enable disable };
> + ')
> +
> + allow $1 systemd_networkd_unit_t:service { enable disable };
> +')
> +
> ########################################
> ## <summary>
> ## Allow specified domain to start systemd-networkd units
Merged.
--
Chris PeBenito
next prev parent reply other threads:[~2018-11-18 0:03 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-11-17 4:23 [PATCH 1/2] Add interfaces to control ntpd_unit_t systemd services David Sugar
2018-11-17 4:23 ` [PATCH 2/2] interface to enable/disable systemd_networkd service David Sugar
2018-11-17 23:54 ` Chris PeBenito [this message]
2018-11-17 23:54 ` [PATCH 1/2] Add interfaces to control ntpd_unit_t systemd services Chris PeBenito
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=a38b3ed5-d8e5-f3c0-1a3f-77e77346deb6@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).