Commit 34faa89b authored by Laurent Dufour's avatar Laurent Dufour Committed by Pavel Emelyanov

namespace: move definition of CLONE_SUBNS

The CRIU internal define of CLONE_SUBNS should not be put in
syscall-types.h since this define is not part of a system call.

This move is required to prepare the removal of syscall.h from the
component of crtools binary.
Signed-off-by: 's avatarLaurent Dufour <ldufour@linux.vnet.ibm.com>
Reviewed-by: 's avatarChristopher Covington <cov@codeaurora.org>
Reviewed-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent 62194b15
...@@ -4,6 +4,9 @@ ...@@ -4,6 +4,9 @@
#include "compiler.h" #include "compiler.h"
#include "files.h" #include "files.h"
/* Nested namespaces are supported only for these types */
#define CLONE_SUBNS (CLONE_NEWNS)
struct ns_desc { struct ns_desc {
unsigned int cflag; unsigned int cflag;
char *str; char *str;
......
...@@ -67,9 +67,6 @@ struct itimerspec; ...@@ -67,9 +67,6 @@ struct itimerspec;
#define CLONE_ALLNS (CLONE_NEWPID | CLONE_NEWNET | CLONE_NEWIPC | CLONE_NEWUTS | CLONE_NEWNS | CLONE_NEWUSER) #define CLONE_ALLNS (CLONE_NEWPID | CLONE_NEWNET | CLONE_NEWIPC | CLONE_NEWUTS | CLONE_NEWNS | CLONE_NEWUSER)
/* Nested namespaces are supported only for these types */
#define CLONE_SUBNS (CLONE_NEWNS)
#define setns sys_setns #define setns sys_setns
struct rlimit; struct rlimit;
......
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