Commit 02b2f197 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Pavel Emelyanov

check: Implement F_GETOWNER_UIDS

It is in mainline and required for proper CRIU work.
Signed-off-by: 's avatarCyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 19961979
...@@ -217,11 +217,21 @@ static int check_prctl(void) ...@@ -217,11 +217,21 @@ static int check_prctl(void)
static int check_fcntl(void) static int check_fcntl(void)
{ {
/* u32 v[2];
* FIXME Add test for F_GETOWNER_UIDS once int fd;
* it's merged into mainline and kernel part
* settle down. fd = open("/proc/self/comm", O_RDONLY);
*/ if (fd < 0) {
pr_perror("Can't open self comm file");
return -1;
}
if (fcntl(fd, F_GETOWNER_UIDS, (long)v)) {
pr_perror("Can'r fetch file owner UIDs");
return -1;
}
close(fd);
return 0; return 0;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment