Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | platform: preserve errno in nm_auto_pop_netns | Thomas Haller | 2016-12-13 | 1 | -1/+5 |
| | |||||
* | core: refactor private data for NMExportedObject and others | Thomas Haller | 2016-10-03 | 1 | -10/+1 |
| | |||||
* | platform: add nmp_netns_bind_to_path() helper function | Thomas Haller | 2016-03-15 | 1 | -0/+3 |
| | | | | Based-on-patch-by: Stjepan Gros <stjepan.gros@gmail.com> | ||||
* | platform: support switching partial namespaces | Thomas Haller | 2016-03-15 | 1 | -0/+1 |
| | | | | | | | | | | | Previously, the push/pop API to switch between namespaces would always switch both the net and mount namespace together. There are situations, where we want to only switch one namespace. For example, the function nmp_netns_bind_to_path() introduced next only wants to switch the net namespace to get /proc/self/ns/net, but must not switch the mount namespace as it bind-mounds in the namespace of the caller. | ||||
* | platform: add network namespace support to platform | Thomas Haller | 2016-03-07 | 1 | -0/+70 |
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. https://bugzilla.gnome.org/show_bug.cgi?id=762408 |