diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2015-05-15 11:52:24 +0200 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2015-05-18 17:48:36 +0200 |
commit | 75872cfd22fe38f233062f28043ebb66d8774e9c (patch) | |
tree | 5c39ab38b528ed3e3a767b5bdd3cb92b1c7bfd59 | |
parent | a4f1042efe668f83db4b971289c5a2adae13bb91 (diff) | |
download | NetworkManager-75872cfd22fe38f233062f28043ebb66d8774e9c.tar.gz |
platform-linux: allow netlink messages from non-privileged user namespaces
Just check they're from kernel.
-rw-r--r-- | src/platform/nm-linux-platform.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/platform/nm-linux-platform.c b/src/platform/nm-linux-platform.c index 910eb91795..cafcd2d3ae 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -4456,10 +4456,9 @@ verify_source (struct nl_msg *msg, gpointer user_data) { struct ucred *creds = nlmsg_get_creds (msg); - if (!creds || creds->pid || creds->uid || creds->gid) { + if (!creds || creds->pid) { if (creds) - warning ("netlink: received non-kernel message (pid %d uid %d gid %d)", - creds->pid, creds->uid, creds->gid); + warning ("netlink: received non-kernel message (pid %d)", creds->pid); else warning ("netlink: received message without credentials"); return NL_STOP; |