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] Allow systemd-networkd to get IP address from dhcp server
Date: Sat, 9 Feb 2019 09:07:18 -0500 [thread overview]
Message-ID: <f8b8e7ad-8603-2f40-0710-f6211d4b9eb3@ieee.org> (raw)
In-Reply-To: <20190207211422.10855-1-dsugar@tresys.com>
On 2/7/19 4:15 PM, Sugar, David wrote:
> I'm seeing the following denials when attempting to get a DHCP address.
>
> type=AVC msg=audit(1549471325.440:199): avc: denied { name_bind } for pid=6964 comm="systemd-network" src=68 scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:object_r:dhcpc_port_t:s0 tclass=udp_socket permissive=1
> type=AVC msg=audit(1549471325.440:199): avc: denied { node_bind } for pid=6964 comm="systemd-network" saddr=10.1.12.61 src=68 scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:object_r:node_t:s0 tclass=udp_socket permissive=1
> type=AVC msg=audit(1549471325.440:199): avc: denied { net_bind_service } for pid=6964 comm="systemd-network" capability=10 scontext=system_u:system_r:systemd_networkd_t:s0 tcontext=system_u:system_r:systemd_networkd_t:s0 tclass=capability permissive=1
> type=SYSCALL msg=audit(1549471325.440:199): arch=c000003e syscall=49 success=yes exit=0 a0=b a1=7fff09388780 a2=10 a3=7fff09388778 items=0 ppid=1 pid=6964 auid=4294967295 uid=192 gid=192 euid=192 suid=192 fsuid=192 egid=192 sgid=192 fsgid=192 tty=(none) ses=4294967295 comm="systemd-network" exe="/usr/lib/systemd/systemd-networkd" subj=system_u:system_r:systemd_networkd_t:s0 key=(null)
>
> Signed-off-by: Dave Sugar <dsugar@tresys.com>
> ---
> policy/modules/system/systemd.te | 2 ++
> 1 file changed, 2 insertions(+)
>
> diff --git a/policy/modules/system/systemd.te b/policy/modules/system/systemd.te
> index 64e36c66..cd88e621 100644
> --- a/policy/modules/system/systemd.te
> +++ b/policy/modules/system/systemd.te
> @@ -651,6 +651,8 @@ corecmd_bin_entry_type(systemd_networkd_t)
> corecmd_exec_bin(systemd_networkd_t)
>
> corenet_rw_tun_tap_dev(systemd_networkd_t)
> +corenet_udp_bind_dhcpc_port(systemd_networkd_t)
> +corenet_udp_bind_generic_node(systemd_networkd_t)
>
> dev_read_urand(systemd_networkd_t)
> dev_read_sysfs(systemd_networkd_t)
Merged.
--
Chris PeBenito
prev parent reply other threads:[~2019-02-09 14:07 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-02-07 21:15 [PATCH] Allow systemd-networkd to get IP address from dhcp server Sugar, David
2019-02-07 21:15 ` [PATCH] Separate domain for systemd-modules-load Sugar, David
2019-02-09 14:07 ` Chris PeBenito
2019-02-09 14:07 ` 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=f8b8e7ad-8603-2f40-0710-f6211d4b9eb3@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).