jail: remove accidentally added lines
authorDaniel Golle <daniel@makrotopia.org>
Mon, 30 Dec 2019 18:22:45 +0000 (20:22 +0200)
committerDaniel Golle <daniel@makrotopia.org>
Mon, 30 Dec 2019 18:22:45 +0000 (20:22 +0200)
The previous commit accidentally added unrelated lines which broke
build. Remove them.

Fixes: 2c5c19 ("jail: set user and group inside jail")
Signed-off-by: Daniel Golle <daniel@makrotopia.org>
jail/jail.c

index 47da1c1229a9481a97ba79be90a92301d38e0499..c6096f89502936509589f47ae506ec8088b2a4be 100644 (file)
@@ -479,9 +479,6 @@ int main(int argc, char **argv)
                        add_mount("/etc/group", 0, -1);
                }
 
-               if (opts.namespace & NAMESPACE_IPC)
-                       flags |= CLONE_NEWIPC;
-
                int flags = CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD;
                if (opts.hostname)
                        flags |= CLONE_NEWUTS;