1. 10 Mar, 2016 8 commits
  2. 09 Mar, 2016 5 commits
  3. 08 Mar, 2016 8 commits
  4. 07 Mar, 2016 6 commits
    • Beniamino Galvani's avatar
      device: don't assert the presence of old vpn configurations · 639f2d4b
      Beniamino Galvani authored
      When a VPN connection is active and the parent device becomes
      unmanaged (due to device removal or system entering sleep), all
      configurations are removed from the interface and the device is taken
      down. After that, the VPN is disconnected and tries to remove the old
      VPN configuration from device, causing the following assertion to
        _replace_vpn_config_in_list: assertion '!old' failed
      Remove the assertion as @old can be missing for valid reasons.
    • Thomas Haller's avatar
    • Thomas Haller's avatar
      platform: add network namespace support to platform · c7b38625
      Thomas Haller authored
      Add a new NMPNetns class. This allows creation, deletion and
      switching of network namespaces. The API only offers push/pop
      operations to switch the namespace. This way the API enforces
      the user to always restore the previous namespace.
      A NMPlatform instance not only uses the netlink socket, but also
      sysfs, udev, ethtool, mii. Still, a NMPlatform instance lives
      entirely inside one namespace and is not spanning multiple namespaces.
      To properly support network namespaces, the platform instance must
      switch the namespace as necessary, transparent to the caller.
      Udev is only supported in the main namespace.
      For now, network namespaces are not actually used and are disabled
      via the NM_PLATFORM_NETNS_SUPPORT argument.
    • Thomas Haller's avatar
      platform: don't create udev client if udev isn't used · 1a1c5fb7
      Thomas Haller authored
      Inside container, where we don't use udev we don't receive
      any events from udev client. Thus the client only returns
      devices when iterating it initially, but no events for newly
      added devices that appear later.
      Thus, inside containers we don't want to create a udev client
      at all.
    • Thomas Haller's avatar
      core: move simple utils function from "nm-platform-utils.h" · 6165df78
      Thomas Haller authored
      Most functions defined in "nm-platform-utils.h" perform a lookup
      of link properties, for example via ethtool or sysfs. Those functions
      depend on the system configuration, such as the current network namespace.
      Move the simple helper functions away to "nm-core-internal.h", so that
      all remaining functions from "nm-platform-utils.h" are really related to
      somthing that interacts with the system/kernel.
    • Thomas Haller's avatar
      platform: add and use nm_utils_ifname_cpy() helper · 0e90f1ba
      Thomas Haller authored
      Coverity complains rightly about "strncpy (dst, ifname, IFNAMSIZ)"
      because it might leave @dst non-NULL-terminated, in case @ifname
      is too long (which already would be a bug in the first place).
      Replace the strcpy() uses by a new helper nm_utils_ifname_cpy()
      that asserts against valid arguments.
  5. 06 Mar, 2016 2 commits
  6. 05 Mar, 2016 2 commits
  7. 04 Mar, 2016 9 commits