[CRIU] [PATCH 2/4] check: Add fcntl stub

Cyrill Gorcunov gorcunov at openvz.org
Thu Apr 5 07:43:46 EDT 2012


Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
 cr-check.c |   12 ++++++++++++
 1 files changed, 12 insertions(+), 0 deletions(-)

diff --git a/cr-check.c b/cr-check.c
index 2ed70e8..9536a10 100644
--- a/cr-check.c
+++ b/cr-check.c
@@ -1,5 +1,6 @@
 #include <unistd.h>
 #include <sys/socket.h>
+#include <fcntl.h>
 #include "sockets.h"
 #include "crtools.h"
 #include "log.h"
@@ -108,6 +109,16 @@ static int check_prctl(void)
 	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 ret = 0;
@@ -118,6 +129,7 @@ int cr_check(void)
 	ret |= check_sock_peek_off();
 	ret |= check_kcmp();
 	ret |= check_prctl();
+	ret |= check_fcntl();
 
 	if (!ret)
 		pr_msg("Looks good.\n");
-- 
1.7.7.6



More information about the CRIU mailing list