Commit 166162dc authored by Pavel Emelyanov's avatar Pavel Emelyanov

zdtm: Cleanup uid setup check in ns creation code

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 6460badf
......@@ -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) {
......
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