strace/tests/setfsuid32.c
Dmitry V. Levin 2def3d4a04 tests: check decoding of setfsuid32 syscall
* tests/setfsuid32.c: New file.
* tests/setfsuid32.test: New test.
* tests/.gitignore: Add setfsuid32.
* tests/Makefile.am (check_PROGRAMS): Likewise.
(DECODER_TESTS): Add setfsuid32.test.
2016-04-20 01:08:13 +00:00

17 lines
269 B
C

#include "tests.h"
#include <sys/syscall.h>
#ifdef __NR_setfsuid32
# define SYSCALL_NR __NR_setfsuid32
# define SYSCALL_NAME "setfsuid32"
# define UGID_TYPE int
# define GETUGID geteuid()
# include "setfsugid.c"
#else
SKIP_MAIN_UNDEFINED("__NR_setfsuid32")
#endif