[CRIU] [PATCH 2/3] zdtm: Cleanup uid setup check in ns creation code

Pavel Emelyanov xemul at parallels.com
Tue Dec 1 02:03:37 PST 2015


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 test/zdtm/lib/ns.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/test/zdtm/lib/ns.c b/test/zdtm/lib/ns.c
index ed3c241..b65107b 100644
--- a/test/zdtm/lib/ns.c
+++ b/test/zdtm/lib/ns.c
@@ -355,7 +355,7 @@ void ns_create(int argc, char **argv)
 
 	close(args.status_pipe[1]);
 
-	if (val) {
+	if (flags & CLONE_NEWUSER) {
 		snprintf(pname, sizeof(pname), "/proc/%d/uid_map", pid);
 		fd = open(pname, O_WRONLY);
 		if (fd < 0) {
-- 
1.9.3




More information about the CRIU mailing list