Skip to content

Commit 6ed9c66

Browse files
committed
sysnetwork: allow dhcpcd to send and receive messages from systemd resolved
The dhcpcd can send DNS information to systemd-resolved to update resolv.conf. Fixes: avc: denied { send_msg } for msgtype=method_call interface=org.freedesktop.resolve1.Manager member=RevertLink dest=org.freedesktop.resolve1 spid=340 tpid=345 scontext=system_u:system_r:dhcpc_t:s0-s15:c0.c1023 tcontext=system_u:system_r:systemd_resolved_t:s0-s15:c0.c1023 tclass=dbus permissive=0 avc: denied { send_msg } for msgtype=method_return dest=:1.6 spid=345 tpid=340 scontext=system_u:system_r:systemd_resolved_t:s0-s15:c0.c1023 tcontext=system_u:system_r:dhcpc_t:s0-s15:c0.c1023 tclass=dbus permissive=0 Signed-off-by: Yi Zhao <[email protected]>
1 parent 77fd73e commit 6ed9c66

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

policy/modules/system/sysnetwork.te

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ ifdef(`init_systemd',`
187187
init_stream_connect(dhcpc_t)
188188
init_get_all_units_status(dhcpc_t)
189189
init_search_units(dhcpc_t)
190+
191+
optional_policy(`
192+
systemd_dbus_chat_resolved(dhcpc_t)
193+
')
190194
')
191195

192196
optional_policy(`

0 commit comments

Comments
 (0)