[lxc-devel] [lxc/lxc] d69f3f: macro: add NETLINK_DUMP_STRICT_CHK

GitHub noreply at github.com
Mon Oct 8 21:11:36 UTC 2018


  Branch: refs/heads/stable-3.0
  Home:   https://github.com/lxc/lxc
  Commit: d69f3f4f308dc7233b812090e84037b6abc2e48c
      https://github.com/lxc/lxc/commit/d69f3f4f308dc7233b812090e84037b6abc2e48c
  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: fb82421411b65613878f163fb92887237d5cc513
      https://github.com/lxc/lxc/commit/fb82421411b65613878f163fb92887237d5cc513
  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: 929a141a050aa87b50e73704f3995292217cb020
      https://github.com/lxc/lxc/commit/929a141a050aa87b50e73704f3995292217cb020
  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: a284d9d5fe154a31dc98c8f98052c0fce31f2951
      https://github.com/lxc/lxc/commit/a284d9d5fe154a31dc98c8f98052c0fce31f2951
  Author: Christian Brauner <christian.brauner at ubuntu.com>
  Date:   2018-10-08 (Mon, 08 Oct 2018)

  Changed paths:
    M src/lxc/parse.c

  Log Message:
  -----------
  parse: do not mask failed parse

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


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

  Changed paths:
    M src/tests/get_item.c
    M src/tests/parse_config_file.c

  Log Message:
  -----------
  test: test invalid config keys

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


Compare: https://github.com/lxc/lxc/compare/69fdc46bf3da...491b23041b7f
      **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