Commit 72b73510 authored by Andrew Vagin's avatar Andrew Vagin Committed by Pavel Emelyanov

loginuid: save value of loginuid from a target userns

It is restored from the userns.

21:22:31.443:     4: FAIL: loginuid.c:93: loginuid value 3 is different after restore: 100003

Cc: Dmitry Safonov <dsafonov@odin.com>
Signed-off-by: 's avatarAndrew Vagin <avagin@virtuozzo.com>
Reviewed-by: 's avatarDmitry Safonov <dsafonov@odin.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9b4d7acf
...@@ -331,6 +331,7 @@ static int dump_pid_misc(pid_t pid, TaskCoreEntry *tc) ...@@ -331,6 +331,7 @@ static int dump_pid_misc(pid_t pid, TaskCoreEntry *tc)
tc->has_loginuid = true; tc->has_loginuid = true;
tc->loginuid = parse_pid_loginuid(pid, &ret); tc->loginuid = parse_pid_loginuid(pid, &ret);
tc->loginuid = userns_uid(tc->loginuid);
/* /*
* loginuid dumping is critical, as if not correctly * loginuid dumping is critical, as if not correctly
* restored, you may loss ability to login via SSH to CT * restored, you may loss ability to login via SSH to CT
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment