From 88ca24bb38d2000ae8795df46b76736a679208ba Mon Sep 17 00:00:00 2001 From: Cyrill Gorcunov Date: Thu, 5 Apr 2012 15:43:00 +0400 Subject: [PATCH] check: Add fcntl stub Signed-off-by: Cyrill Gorcunov Signed-off-by: Pavel Emelyanov --- cr-check.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/cr-check.c b/cr-check.c index 2ed70e851..9536a1001 100644 --- a/cr-check.c +++ b/cr-check.c @@ -1,5 +1,6 @@ #include #include +#include #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");