diff options
Diffstat (limited to 'jail/jail.c')
-rw-r--r-- | jail/jail.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/jail/jail.c b/jail/jail.c index 834d677..8e7cddc 100644 --- a/jail/jail.c +++ b/jail/jail.c @@ -398,6 +398,11 @@ int main(int argc, char **argv) uloop_init(); if (opts.namespace) { + add_mount("/dev/full", 0, -1); + add_mount("/dev/null", 0, -1); + add_mount("/dev/urandom", 0, -1); + add_mount("/dev/zero", 0, -1); + int flags = CLONE_NEWPID | CLONE_NEWNS | CLONE_NEWIPC | SIGCHLD; if (opts.hostname) flags |= CLONE_NEWUTS; |