Dmitry V. Levin
619a96a295
* tests/setreuid32.c: New file. * tests/setreuid32.test: New test. * tests/.gitignore: Add setreuid32. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add setreuid32.test.
18 lines
302 B
C
18 lines
302 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_setreuid32
|
|
|
|
# define SYSCALL_NR __NR_setreuid32
|
|
# define SYSCALL_NAME "setreuid32"
|
|
# define UGID_TYPE int
|
|
# define GETUGID geteuid()
|
|
# define CHECK_OVERFLOWUGID(arg)
|
|
# include "setreugid.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_setreuid32")
|
|
|
|
#endif
|