1 /*
2 * Check decoding of setuid syscall.
3 *
4 * Copyright (c) 2016-2021 The strace developers.
5 * All rights reserved.
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10 #include "tests.h"
11 #include "scno.h"
12
13 #define SYSCALL_NR __NR_setuid
14 #define SYSCALL_NAME "setuid"
15
16 #if defined __NR_setuid32 && __NR_setuid != __NR_setuid32
17 # define UGID_TYPE short
18 # define GETUGID syscall(__NR_geteuid)
19 # define CHECK_OVERFLOWUGID(arg) check_overflowuid(arg)
20 #else
21 # define UGID_TYPE int
22 # define GETUGID geteuid()
23 # define CHECK_OVERFLOWUGID(arg)
24 #endif
25
26 #include "setugid.c"