mirror of
https://github.com/checkpoint-restore/criu
synced 2025-09-01 23:05:39 +00:00
check: Add fcntl stub
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
92b26d8804
commit
88ca24bb38
12
cr-check.c
12
cr-check.c
@@ -1,5 +1,6 @@
|
|||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <sys/socket.h>
|
#include <sys/socket.h>
|
||||||
|
#include <fcntl.h>
|
||||||
#include "sockets.h"
|
#include "sockets.h"
|
||||||
#include "crtools.h"
|
#include "crtools.h"
|
||||||
#include "log.h"
|
#include "log.h"
|
||||||
@@ -108,6 +109,16 @@ static int check_prctl(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int check_fcntl(void)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* FIXME Add test for F_GETOWNER_UIDS once
|
||||||
|
* it's merged into mainline and kernel part
|
||||||
|
* settle down.
|
||||||
|
*/
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
int cr_check(void)
|
int cr_check(void)
|
||||||
{
|
{
|
||||||
int ret = 0;
|
int ret = 0;
|
||||||
@@ -118,6 +129,7 @@ int cr_check(void)
|
|||||||
ret |= check_sock_peek_off();
|
ret |= check_sock_peek_off();
|
||||||
ret |= check_kcmp();
|
ret |= check_kcmp();
|
||||||
ret |= check_prctl();
|
ret |= check_prctl();
|
||||||
|
ret |= check_fcntl();
|
||||||
|
|
||||||
if (!ret)
|
if (!ret)
|
||||||
pr_msg("Looks good.\n");
|
pr_msg("Looks good.\n");
|
||||||
|
Reference in New Issue
Block a user