unix_diag: Unix inode info NLA
authorPavel Emelyanov <xemul@parallels.com>
Thu, 15 Dec 2011 02:45:43 +0000 (02:45 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 16 Dec 2011 18:48:28 +0000 (13:48 -0500)
commit5f7b0569460b7d8d01ca776430a00505a68b7584
treef67c5033fb1fe17b45e4b45cbbb162428216f37d
parentf5248b48a64c221dd6157ab9cbee5a36ee45e6ed
unix_diag: Unix inode info NLA

Actually, the socket path if it's not anonymous doesn't give
a clue to which file the socket is bound to. Even if the path
is absolute, it can be unlinked and then new socket can be
bound to it.

With this NLA it's possible to check which file a particular
socket is really bound to.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/unix_diag.h
net/unix/diag.c