X-Git-Url: http://git.linux-vserver.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=src%2Fvnamespace.c;h=aa42d193a2eaeb4feb2971c546ca6bbaadf87e55;hb=c7cfc614cbd193d7c8dd613c6e2b78ca7252f84f;hp=628dbe2f6cf524b5a0cd7be23d9507a911d220d6;hpb=9c78378bebc1a9f3d400f422df8ede9efea57dea;p=util-vserver.git diff --git a/src/vnamespace.c b/src/vnamespace.c index 628dbe2..aa42d19 100644 --- a/src/vnamespace.c +++ b/src/vnamespace.c @@ -36,6 +36,13 @@ #define ENSC_WRAPPERS_VSERVER 1 #include +#ifndef CLONE_NEWUTS +# define CLONE_NEWUTS 0x04000000 +#endif +#ifndef CLONE_NEWIPC +# define CLONE_NEWIPC 0x08000000 +#endif + #define CMD_HELP 0x1000 #define CMD_VERSION 0x1001 @@ -95,9 +102,9 @@ newNamespace(char const *cmd) signal(SIGCHLD, SIG_DFL); #ifdef NDEBUG - pid = sys_clone(CLONE_NEWNS|CLONE_VFORK|SIGCHLD, 0); + pid = sys_clone(CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|CLONE_VFORK|SIGCHLD, 0); #else - pid = sys_clone(CLONE_NEWNS|SIGCHLD, 0); + pid = sys_clone(CLONE_NEWNS|CLONE_NEWUTS|CLONE_NEWIPC|SIGCHLD, 0); #endif switch (pid) {