5 Commits
Author SHA1 Message Date
Andrei VaginandgVisor bot 01142fe599 netlink: socket controls a network namespace where it has been created
Each socket has to hold a reference on its network namespace.

PiperOrigin-RevId: 640691038
2024-06-05 16:46:01 -07:00
Andrei VaginandgVisor bot ea1a15131f Move helpers to parse netlink message to the separate module
It will be used in following changes.

PiperOrigin-RevId: 622287107
2024-04-05 14:49:39 -07:00
Ting-Yu WangandgVisor bot 665b614e4a Support RTM_NEWADDR and RTM_GETLINK in (rt)netlink.
PiperOrigin-RevId: 293271055
2020-02-04 18:05:03 -08:00
Adin ScannellandgVisor bot 0e2f1b7abd Update package locations.
Because the abi will depend on the core types for marshalling (usermem,
context, safemem, safecopy), these need to be flattened from the sentry
directory. These packages contain no sentry-specific details.

PiperOrigin-RevId: 291811289
2020-01-27 15:31:32 -08:00
Michael PrattandgVisor bot b23b36e701 Add NETLINK_KOBJECT_UEVENT socket support
NETLINK_KOBJECT_UEVENT sockets send udev-style messages for device events.
gVisor doesn't have any device events, so our sockets don't need to do anything
once created.

systemd's device manager needs to be able to create one of these sockets. It
also wants to install a BPF filter on the socket. Since we'll never send any
messages, the filter would never be invoked, thus we just fake it out.

Fixes #1117
Updates #1119

PiperOrigin-RevId: 278405893
2019-11-04 10:07:52 -08:00