[lxc-devel] [lxc/lxc] 8df6fa: macro: add NETLINK_DUMP_STRICT_CHK

GitHub noreply at github.com
Mon Oct 8 21:07:00 UTC 2018


  Branch: refs/heads/master
  Home:   https://github.com/lxc/lxc
  Commit: 8df6fa99bf2960014c9d53a5ec9b12270ba2ab6a
      https://github.com/lxc/lxc/commit/8df6fa99bf2960014c9d53a5ec9b12270ba2ab6a
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-10-08 (Mon, 08 Oct 2018)

  Changed paths:
    M src/lxc/macro.h

  Log Message:
  -----------
  macro: add NETLINK_DUMP_STRICT_CHK

This adds support for 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.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: d38f5b17b716667bb5edb0b306f4caca7c1029b5
      https://github.com/lxc/lxc/commit/d38f5b17b716667bb5edb0b306f4caca7c1029b5
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-10-08 (Mon, 08 Oct 2018)

  Changed paths:
    M src/lxc/macro.h

  Log Message:
  -----------
  macro: add SOL_NETLINK

This allows to set netlink socket properties.

Signed-off-by: Christian Brauner <christian.brauner at ubuntu.com>


  Commit: c6b647205d5cd56f24f6e4189d607dd0e80f3960
      https://github.com/lxc/lxc/commit/c6b647205d5cd56f24f6e4189d607dd0e80f3960
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-10-08 (Mon, 08 Oct 2018)

  Changed paths:
    M src/include/netns_ifaddrs.c

  Log Message:
  -----------
  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 at ubuntu.com>


  Commit: e2103b180acdd7ef85bb4469509cba8fef9a876f
      https://github.com/lxc/lxc/commit/e2103b180acdd7ef85bb4469509cba8fef9a876f
  Author: Stéphane Graber <stgraber at stgraber.org>
  Date:   2018-10-08 (Mon, 08 Oct 2018)

  Changed paths:
    M src/include/netns_ifaddrs.c
    M src/lxc/macro.h

  Log Message:
  -----------
  Merge pull request #2681 from brauner/2018-10-08/adapt_netns_ifaddrs_to_new_kernel

netns_ifaddrs: support NETLINK_DUMP_STRICT_CHK


Compare: https://github.com/lxc/lxc/compare/373376b25777...e2103b180acd
      **NOTE:** This service has been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the lxc-devel mailing list