[CRIU] [PATCH] sockets: Fix file-bound socket check for dgram sockets

Cyrill Gorcunov gorcunov at openvz.org
Wed Feb 8 05:52:19 EST 2012


DGRAM sockets do not care about mount point of
file-bound sockets and at time of connect() kernel
do not update this information once socket is cretaed,
thus do not eliminate dumping of suck sockets name
if at least inode match.

Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 sockets.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sockets.c b/sockets.c
index 2b8a1b4..fd1bfe2 100644
--- a/sockets.c
+++ b/sockets.c
@@ -465,7 +465,7 @@ static int unix_collect_one(struct unix_diag_msg *m, struct rtattr **tb)
 				goto err;
 			}
 
-			if ((st.st_ino != uv->udiag_vfs_ino) ||
+			if ((st.st_ino != uv->udiag_vfs_ino) &&
 			    (st.st_dev != uv->udiag_vfs_dev)) {
 				/*
 				 * When a listen socket is bound to
-- 
1.7.7.6



More information about the CRIU mailing list