NetworkManager/shared/nm-platform
Thomas Haller c7fa8d0a16
platform: downgrade severity of message for failure to create NMPNetns
Under restricted permissions (like inside a podman container) opening
"/proc/self/ns/net" fails with Permission denied. Consequently we cannot
create our bottom NMPNetns instance. That is mostly fine, however we
would log an error message with severity <error>.

Note that test "src/core/platform/tests/test-platform-general" asserts
that no <warn> and <error> messages get logged. Hence, the test will
fail.

That is undesirable. Downgrade the message to <debug> so that the test
passes. Also, it's not clear that this error message is useful here.
Being unable to open a netns fd is fine and not necessarily an error
condition.

(cherry picked from commit 0213300dce)
2021-02-15 21:18:06 +01:00
..
tests all: add "nm-default-systemd{,-shared}.h" as replacement for "nm-default.h" 2021-02-09 12:38:18 +01:00
nm-netlink.c all: add "nm-glib-aux/nm-default-glib-i18n-lib.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-netlink.h shared,platform: add "shared/nm-platform" library 2021-01-15 11:32:30 +01:00
nm-platform-utils.c all: add "nm-glib-aux/nm-default-glib-i18n-lib.h" as replacement for "nm-default.h" 2021-02-09 12:38:17 +01:00
nm-platform-utils.h platform: move "nm-platform-utils.[hc]" to "shared/nm-platform" library 2021-01-15 11:32:53 +01:00
nmp-base.h platform: move types from "nm-platform-utils.h" to nmp-base.h" 2021-01-15 11:32:34 +01:00
nmp-netns.c platform: downgrade severity of message for failure to create NMPNetns 2021-02-15 21:18:06 +01:00
nmp-netns.h shared,platform: move "nmp-netns.[hc]" to shared/nm-platform 2021-01-15 11:32:31 +01:00