[CRIU] [PATCH 2/3] namespace: move definition of CLONE_SUBNS

Laurent Dufour ldufour at linux.vnet.ibm.com
Wed Feb 3 08:13:47 PST 2016


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: Laurent Dufour <ldufour at linux.vnet.ibm.com>
---
 include/namespaces.h    | 3 +++
 include/syscall-types.h | 3 ---
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/include/namespaces.h b/include/namespaces.h
index bb2ac1e4c077..4ce5a3470b98 100644
--- a/include/namespaces.h
+++ b/include/namespaces.h
@@ -4,6 +4,9 @@
 #include "compiler.h"
 #include "files.h"
 
+/* Nested namespaces are supported only for these types */
+#define CLONE_SUBNS	(CLONE_NEWNS)
+
 struct ns_desc {
 	unsigned int	cflag;
 	char		*str;
diff --git a/include/syscall-types.h b/include/syscall-types.h
index 5aff6dfa704d..e3a114d6c280 100644
--- a/include/syscall-types.h
+++ b/include/syscall-types.h
@@ -67,9 +67,6 @@ struct itimerspec;
 
 #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
 
 struct rlimit;
-- 
1.9.1



More information about the CRIU mailing list