diff options
author | Lubomir Rintel <lkundrak@v3.sk> | 2015-05-15 11:52:24 +0200 |
---|---|---|
committer | Lubomir Rintel <lkundrak@v3.sk> | 2015-06-01 17:30:20 +0000 |
commit | ef295ddeef6bb872d0487578f431b378e9473a91 (patch) | |
tree | 2415d24fc2eb3059e755a56920da972ee833fd12 | |
parent | b8b1a01d9614c1f9da78fd44efbbf6f3431e0885 (diff) | |
download | NetworkManager-ef295ddeef6bb872d0487578f431b378e9473a91.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 9542747e49..3ae29dafab 100644 --- a/src/platform/nm-linux-platform.c +++ b/src/platform/nm-linux-platform.c @@ -4565,10 +4565,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; |