[CRIU] [PATCH cr 10/10] restore: check own sid instead of parent's one

Andrey Vagin avagin at openvz.org
Tue Jun 19 08:47:01 EDT 2012


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cr-restore.c b/cr-restore.c
index f636f87..ea56d76 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -737,7 +737,7 @@ static void restore_sid(void)
 			xid_fail();
 		}
 	} else {
-		sid = getsid(getppid());
+		sid = getsid(getpid());
 		if (sid != me->sid) {
 			/* Skip the root task if it's not init */
 			if (me == root_item && root_item->pid != 1)
-- 
1.7.1



More information about the CRIU mailing list