2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-03 07:45:17 +00:00

criu: Use __NR_memfd_create for testing memfd presence

We define own SYS_memfd_create in case if it's missing
in libc, but we need it for user-namespace restore.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
Cyrill Gorcunov
2016-03-15 15:41:00 +03:00
committed by Pavel Emelyanov
parent 74a265e74a
commit fa3c34c361
3 changed files with 4 additions and 2 deletions

View File

@@ -21,6 +21,7 @@
#include "lsm.h" #include "lsm.h"
#include "proc_parse.h" #include "proc_parse.h"
#include "config.h" #include "config.h"
#include "syscall-codes.h"
struct kerndat_s kdat = { struct kerndat_s kdat = {
/* /*

View File

@@ -13,6 +13,7 @@
#include "rst-malloc.h" #include "rst-malloc.h"
#include "vma.h" #include "vma.h"
#include "config.h" #include "config.h"
#include "syscall-codes.h"
#include "protobuf.h" #include "protobuf.h"
#include "images/pagemap.pb-c.h" #include "images/pagemap.pb-c.h"

View File

@@ -100,10 +100,10 @@ define FEATURE_TEST_MEMFD
int main(void) int main(void)
{ {
#ifdef SYS_memfd_create #ifdef __NR_memfd_create
return 0; return 0;
#else #else
#error No memfd support # error No memfd support
#endif #endif
} }