blob: d6faf9711fb263395f5db8f1ba2beb7d328d9074 [file] [log] [blame]
Dmitry V. Levin281e4572016-04-18 15:59:28 +00001#include "tests.h"
Dmitry V. Levin6a2f43c2016-08-09 14:38:29 +00002#include <asm/unistd.h>
Dmitry V. Levin281e4572016-04-18 15:59:28 +00003
4#ifdef __NR_setfsuid
5
6# define SYSCALL_NR __NR_setfsuid
7# define SYSCALL_NAME "setfsuid"
8
9# if defined __NR_setfsuid32 && __NR_setfsuid != __NR_setfsuid32
10# define UGID_TYPE short
11# define GETUGID syscall(__NR_geteuid)
12# else
13# define UGID_TYPE int
14# define GETUGID geteuid()
15# endif
16
17# include "setfsugid.c"
18
19#else
20
21SKIP_MAIN_UNDEFINED("__NR_setfsuid")
22
23#endif