Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1512596 > unrolled thread
| Started by | David Miller <davem@davemloft.net> |
|---|---|
| First post | 2016-10-31 16:00 +0100 |
| Last post | 2016-10-31 16:00 +0100 |
| Articles | 1 — 1 participant |
Back to article view | Back to linux.kernel
This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by
below is the oldest one visible, not the original post.
Re: [PATCH net-next] net: add an ioctl to get a socket network namespace David Miller <davem@davemloft.net> - 2016-10-31 16:00 +0100
| From | David Miller <davem@davemloft.net> |
|---|---|
| Date | 2016-10-31 16:00 +0100 |
| Subject | Re: [PATCH net-next] net: add an ioctl to get a socket network namespace |
| Message-ID | <syme5-3Ly-13@gated-at.bofh.it> |
From: Andrei Vagin <avagin@openvz.org> Date: Mon, 24 Oct 2016 18:29:13 -0700 > From: Andrey Vagin <avagin@openvz.org> > > Each socket operates in a network namespace where it has been created, > so if we want to dump and restore a socket, we have to know its network > namespace. > > We have a socket_diag to get information about sockets, it doesn't > report sockets which are not bound or connected. > > This patch introduces a new socket ioctl, which is called SIOCGSKNS > and used to get a file descriptor for a socket network namespace. > > A task must have CAP_NET_ADMIN in a target network namespace to > use this ioctl. > > Cc: "David S. Miller" <davem@davemloft.net> > Cc: Eric W. Biederman <ebiederm@xmission.com> > Signed-off-by: Andrei Vagin <avagin@openvz.org> Applied.
Back to top | Article view | linux.kernel
csiph-web