projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
net/unix: don't show information about sockets from other namespaces
[linux-2.6-microblaze.git]
/
net
/
unix
/
diag.c
diff --git
a/net/unix/diag.c
b/net/unix/diag.c
index
4d96797
..
384c84e
100644
(file)
--- a/
net/unix/diag.c
+++ b/
net/unix/diag.c
@@
-257,6
+257,8
@@
static int unix_diag_get_exact(struct sk_buff *in_skb,
err = -ENOENT;
if (sk == NULL)
goto out_nosk;
+ if (!net_eq(sock_net(sk), net))
+ goto out;
err = sock_diag_check_cookie(sk, req->udiag_cookie);
if (err)