Re: [PATCH net-next] unix: add ioctl to open a unix socket file with O_PATH

2017-02-02 Thread David Miller
From: Andrei Vagin Date: Wed, 1 Feb 2017 11:00:45 -0800 > This ioctl opens a file to which a socket is bound and > returns a file descriptor. The caller has to have CAP_NET_ADMIN > in the socket network namespace. > > Currently it is impossible to get a path and a mount

[PATCH net-next] unix: add ioctl to open a unix socket file with O_PATH

2017-02-01 Thread Andrei Vagin
This ioctl opens a file to which a socket is bound and returns a file descriptor. The caller has to have CAP_NET_ADMIN in the socket network namespace. Currently it is impossible to get a path and a mount point for a socket file. socket_diag reports address, device ID and inode number for unix