Dmitry V. Levin
2b42d8e32f
* tests/setresuid32.c: New file. * tests/setresuid32.test: New test. * tests/.gitignore: Add setresuid32. * tests/Makefile.am (check_PROGRAMS): Likewise. (DECODER_TESTS): Add setresuid32.test.
18 lines
307 B
C
18 lines
307 B
C
#include "tests.h"
|
|
#include <sys/syscall.h>
|
|
|
|
#ifdef __NR_setresuid32
|
|
|
|
# define SYSCALL_NR __NR_setresuid32
|
|
# define SYSCALL_NAME "setresuid32"
|
|
# define UGID_TYPE int
|
|
# define GETUGID geteuid()
|
|
# define CHECK_OVERFLOWUGID(arg)
|
|
# include "setresugid.c"
|
|
|
|
#else
|
|
|
|
SKIP_MAIN_UNDEFINED("__NR_setresuid32")
|
|
|
|
#endif
|