unix_diag: Unix peer inode NLA
Report the peer socket inode ID as NLA. With this it's finally possible to find out the other end of an interesting unix connection. Signed-off-by: Pavel Emelyanov <xemul@parallels.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
5f7b056946
commit
ac02be8d96
@@ -13,6 +13,7 @@ struct unix_diag_req {
|
||||
|
||||
#define UDIAG_SHOW_NAME 0x00000001 /* show name (not path) */
|
||||
#define UDIAG_SHOW_VFS 0x00000002 /* show VFS inode info */
|
||||
#define UDIAG_SHOW_PEER 0x00000004 /* show peer socket info */
|
||||
|
||||
struct unix_diag_msg {
|
||||
__u8 udiag_family;
|
||||
@@ -27,6 +28,7 @@ struct unix_diag_msg {
|
||||
enum {
|
||||
UNIX_DIAG_NAME,
|
||||
UNIX_DIAG_VFS,
|
||||
UNIX_DIAG_PEER,
|
||||
|
||||
UNIX_DIAG_MAX,
|
||||
};
|
||||
|
Reference in New Issue
Block a user