All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH net-next] [RFC] netns: enable cross-ve Unix sockets
@ 2008-10-01 10:54 Denis V. Lunev
       [not found] ` <1222858454-7843-1-git-send-email-den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
  2008-10-01 11:13 ` Daniel Lezcano
  0 siblings, 2 replies; 43+ messages in thread
From: Denis V. Lunev @ 2008-10-01 10:54 UTC (permalink / raw)
  To: containers; +Cc: xemul, netdev, dlezcano, benjamin.thery, ebiederm, den

This patch opens a way to connect via Unix socket from one namespace
to another if these sockets are opened via conventional filesystem
interface. Such approach allows to share important services between
namespaces in efficient way.

This breach is controlled by the means of shared filesystem, i.e. if
somebody really wants to isolate containers, he should start from
filesystem separation.

Signed-off-by: Denis V. Lunev <den@openvz.org>
---
 net/unix/af_unix.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 39d2173..0e1eccd 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -297,9 +297,6 @@ static struct sock *unix_find_socket_byinode(struct net *net, struct inode *i)
 		    &unix_socket_table[i->i_ino & (UNIX_HASH_SIZE - 1)]) {
 		struct dentry *dentry = unix_sk(s)->dentry;
 
-		if (!net_eq(sock_net(s), net))
-			continue;
-
 		if(dentry && dentry->d_inode == i)
 		{
 			sock_hold(s);
-- 
1.5.3.rc5


^ permalink raw reply related	[flat|nested] 43+ messages in thread
* [PATCH net-next] [RFC] netns: enable cross-ve Unix sockets
@ 2008-10-01 10:54 Denis V. Lunev
  0 siblings, 0 replies; 43+ messages in thread
From: Denis V. Lunev @ 2008-10-01 10:54 UTC (permalink / raw)
  To: containers-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA
  Cc: netdev-u79uwXL29TY76Z2rM5mHXA, ebiederm-aS9lmoZGLiVWk0Htik3J/w,
	den-GEFAQzZX7r8dnm+yROfE0A, dlezcano-NmTC/0ZBporQT0dZR+AlfA,
	xemul-GEFAQzZX7r8dnm+yROfE0A, benjamin.thery-6ktuUTfB/bM

This patch opens a way to connect via Unix socket from one namespace
to another if these sockets are opened via conventional filesystem
interface. Such approach allows to share important services between
namespaces in efficient way.

This breach is controlled by the means of shared filesystem, i.e. if
somebody really wants to isolate containers, he should start from
filesystem separation.

Signed-off-by: Denis V. Lunev <den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
---
 net/unix/af_unix.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)

diff --git a/net/unix/af_unix.c b/net/unix/af_unix.c
index 39d2173..0e1eccd 100644
--- a/net/unix/af_unix.c
+++ b/net/unix/af_unix.c
@@ -297,9 +297,6 @@ static struct sock *unix_find_socket_byinode(struct net *net, struct inode *i)
 		    &unix_socket_table[i->i_ino & (UNIX_HASH_SIZE - 1)]) {
 		struct dentry *dentry = unix_sk(s)->dentry;
 
-		if (!net_eq(sock_net(s), net))
-			continue;
-
 		if(dentry && dentry->d_inode == i)
 		{
 			sock_hold(s);
-- 
1.5.3.rc5

^ permalink raw reply related	[flat|nested] 43+ messages in thread

end of thread, other threads:[~2008-10-02 20:05 UTC | newest]

Thread overview: 43+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-01 10:54 [PATCH net-next] [RFC] netns: enable cross-ve Unix sockets Denis V. Lunev
     [not found] ` <1222858454-7843-1-git-send-email-den-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-10-01 11:13   ` Daniel Lezcano
2008-10-01 11:13 ` Daniel Lezcano
     [not found]   ` <48E35B4C.1040303-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 11:32     ` Denis V. Lunev
2008-10-01 11:32   ` Denis V. Lunev
     [not found]     ` <1222860776.23573.49.camel-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2008-10-01 11:55       ` Daniel Lezcano
2008-10-01 11:55     ` Daniel Lezcano
     [not found]       ` <48E3653C.1070701-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 12:03         ` Denis V. Lunev
2008-10-01 12:19           ` Daniel Lezcano
     [not found]             ` <48E36ABF.8030908-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 12:24               ` Pavel Emelyanov
2008-10-01 12:24             ` Pavel Emelyanov
2008-10-01 12:31               ` Daniel Lezcano
2008-10-01 12:40                 ` Pavel Emelyanov
2008-10-01 13:08                   ` Cedric Le Goater
     [not found]                     ` <48E37637.8080408-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 13:50                       ` Daniel Lezcano
2008-10-01 13:50                     ` Daniel Lezcano
2008-10-01 15:07                       ` Cedric Le Goater
     [not found]                       ` <48E3800F.1020806-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 15:07                         ` Cedric Le Goater
     [not found]                   ` <48E36FDA.5090808-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-10-01 13:08                     ` Cedric Le Goater
     [not found]                 ` <48E36DA0.9080400-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 12:40                   ` Pavel Emelyanov
2008-10-01 13:11                   ` Denis V. Lunev
2008-10-01 13:11                 ` Denis V. Lunev
2008-10-01 13:46                   ` Daniel Lezcano
2008-10-01 14:54                     ` Denis V. Lunev
     [not found]                       ` <1222872885.23573.64.camel-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2008-10-01 15:18                         ` Daniel Lezcano
2008-10-01 15:18                       ` Daniel Lezcano
     [not found]                         ` <48E394D2.5090709-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 15:31                           ` Pavel Emelyanov
2008-10-01 15:31                         ` Pavel Emelyanov
2008-10-01 15:38                           ` Daniel Lezcano
2008-10-01 15:42                             ` Pavel Emelyanov
     [not found]                               ` <48E39A7A.8090800-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-10-01 16:15                                 ` Daniel Lezcano
2008-10-01 16:15                               ` Daniel Lezcano
2008-10-02 10:21                                 ` Denis V. Lunev
2008-10-02 20:03                                   ` Eric W. Biederman
     [not found]                                   ` <1222942883.6327.13.camel-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2008-10-02 20:03                                     ` Eric W. Biederman
     [not found]                                 ` <48E3A21E.3060504-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-02 10:21                                   ` Denis V. Lunev
     [not found]                             ` <48E3998D.4040709-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 15:42                               ` Pavel Emelyanov
     [not found]                           ` <48E397C1.6050407-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-10-01 15:38                             ` Daniel Lezcano
     [not found]                     ` <48E37F1B.20601-NmTC/0ZBporQT0dZR+AlfA@public.gmane.org>
2008-10-01 14:54                       ` Denis V. Lunev
     [not found]                   ` <1222866717.23573.58.camel-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2008-10-01 13:46                     ` Daniel Lezcano
     [not found]               ` <48E36BFA.3040904-GEFAQzZX7r8dnm+yROfE0A@public.gmane.org>
2008-10-01 12:31                 ` Daniel Lezcano
     [not found]           ` <1222862583.23573.54.camel-aPCOdVxUTlgvJsYlp49lxw@public.gmane.org>
2008-10-01 12:19             ` Daniel Lezcano
  -- strict thread matches above, loose matches on Subject: below --
2008-10-01 10:54 Denis V. Lunev

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.