[CRIU] [PATCH 18/19] unix: unix_prepare_bindmount -- Allow to connect via relative name

Cyrill Gorcunov gorcunov at gmail.com
Fri Sep 14 17:08:41 MSK 2018


Once socket is bounded we should allow to connect to us
via relative name.

Signed-off-by: Cyrill Gorcunov <gorcunov at gmail.com>
---
 criu/sk-unix.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/criu/sk-unix.c b/criu/sk-unix.c
index ef087bada886..d24bfe0ff5e5 100644
--- a/criu/sk-unix.c
+++ b/criu/sk-unix.c
@@ -2416,6 +2416,12 @@ int unix_prepare_bindmount(struct mount_info *mi)
 		goto out;
 	}
 
+	/*
+	 * Once we are pre-created and bounded, clear
+	 * the USK_NOCWD flag so other sockets migh connect
+	 * to us via relative name.
+	 */
+	ui->flags &= ~USK_NOCWD;
 	ret = 0;
 out:
 	close_safe(&prev_cwd_fd);
-- 
2.17.1



More information about the CRIU mailing list