Allow dhcpcd to use generic netlink and raw IP sockets
PATCH 1/1 Allow dhcpcd to use generic netlink and raw IP sockets
dhcpcd uses a raw IPv6 socket to receive router advertisement and neighbor advertisement packets in
https://roy.marples.name/git/dhcpcd.git/tree/ipv6nd.c?h=dhcpcd-6.11.5
and uses NETLINK_GENERIC in
https://roy.marples.name/git/dhcpcd.git/tree/if-linux.c?h=dhcpcd-6.11.5
for some NetLink sockets.
--- policy/modules/system/sysnetwork.te | 2 ++ 1 file changed, 2 insertions(+)
policy/modules/system/sysnetwork.te +2 -0
@@ -57,7 +57,9 @@ allow dhcpc_t self:fifo_file rw_fifo_file_perms; allow dhcpc_t self:tcp_socket create_stream_socket_perms; allow dhcpc_t self:udp_socket create_socket_perms; allow dhcpc_t self:packet_socket create_socket_perms; +allow dhcpc_t self:netlink_generic_socket create_socket_perms; allow dhcpc_t self:netlink_route_socket create_netlink_socket_perms; +allow dhcpc_t self:rawip_socket create_socket_perms; allow dhcpc_t dhcp_etc_t:dir list_dir_perms; read_lnk_files_pattern(dhcpc_t, dhcp_etc_t, dhcp_etc_t)
Signature · 1 line
2.14.1
PATCH 1/1 Allow dhcpcd to use generic netlink and raw IP sockets
Quoted 15 lines · Nicolas Iooss via refpolicy
dhcpcd uses a raw IPv6 socket to receive router advertisement and neighbor advertisement packets in
https://roy.marples.name/git/dhcpcd.git/tree/ipv6nd.c?h=dhcpcd-6.11.5
and usesNETLINK_GENERICin
https://roy.marples.name/git/dhcpcd.git/tree/if-linux.c?h=dhcpcd-6.11.5
for some NetLink sockets.--- policy/modules/system/sysnetwork.te | 2 ++ 1 file changed, 2 insertions(+)policy/modules/system/sysnetwork.te +0
-0
policy/modules/system/sysnetwork.te allow dhcpc_t self:fifo_file rw_fifo_file_perms; · line 65
Quoted 9 lines
policy/modules/system/sysnetwork.te +2
-0@@ -57,7 +57,9 @@ allow dhcpc_t self:fifo_file rw_fifo_file_perms; allow dhcpc_t self:tcp_socket create_stream_socket_perms; allow dhcpc_t self:udp_socket create_socket_perms; allow dhcpc_t self:packet_socket create_socket_perms; +allow dhcpc_t self:netlink_generic_socket create_socket_perms; allow dhcpc_t self:netlink_route_socket create_netlink_socket_perms; +allow dhcpc_t self:rawip_socket create_socket_perms; allow dhcpc_t dhcp_etc_t:dir list_dir_perms; read_lnk_files_pattern(dhcpc_t, dhcp_etc_t, dhcp_etc_t)
Merged.
Signature · 1 line
Chris PeBenito