]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit58c9c9b50f8bb36cbaf804ada4e8879fd7e29f70
treef67c5033fb1fe17b45e4b45cbbb162428216f37d
parent87772cdd8a7620440915bdb34f1ffdfcee362f34
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