This PR adds a new "netlink" promise which enables making use of socket with type AF_NETLINK, type parameter SOCK_DGRAM or SOCK_RAW and protocol parameter NETLINK_ROUTE. Some applications make use of netlink sockets for IPC with the kernel to communicate network related information.
There are many more protocols in the netlink family, but NETLINK_ROUTE is the one I need right now; we can add more in the future if the use cases reveal themselves.
My specific immediate use case is in trying to run the envoy proxy under pledge, where without this change it aborts with
This PR adds a new
"netlink"
promise which enables making use of socket with typeAF_NETLINK
, type parameterSOCK_DGRAM
orSOCK_RAW
and protocol parameterNETLINK_ROUTE
. Some applications make use of netlink sockets for IPC with the kernel to communicate network related information.There are many more protocols in the netlink family, but
NETLINK_ROUTE
is the one I need right now; we can add more in the future if the use cases reveal themselves.My specific immediate use case is in trying to run the envoy proxy under pledge, where without this change it aborts with
Bear in mind I'm not familiar with
so I apologize if this is out in the weeds 🙂