]> git.ipfire.org Git - thirdparty/lxc.git/commit
netns_ifaddrs: check for NETLINK_DUMP_STRICT_CHK 2681/head
authorChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 Oct 2018 19:08:10 +0000 (21:08 +0200)
committerChristian Brauner <christian.brauner@ubuntu.com>
Mon, 8 Oct 2018 19:13:44 +0000 (21:13 +0200)
commitc6b647205d5cd56f24f6e4189d607dd0e80f3960
tree1bfbaa8e6bad5b4a4670ca938baccd017700fc20
parentd38f5b17b716667bb5edb0b306f4caca7c1029b5
netns_ifaddrs: check for NETLINK_DUMP_STRICT_CHK

Make use of the new socket option, NETLINK_DUMP_STRICT_CHK, that
userspace can use via setsockopt to request strict checking of headers
and attributes on dump requests.

To get dump features such as kernel side filtering based on data in
the header or attributes appended to the dump request, userspace
must call setsockopt() for NETLINK_DUMP_STRICT_CHK and a non-zero
value. This is necessary to make use of the IFA_TARGET_NETNSID property.

Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/include/netns_ifaddrs.c