1 /* SETxID functions which only have to change the local thread and
2 none of the possible other threads. */
3 #include <kernel-features.h>
6 /* If we can use the syscall directly, use it. */
7 #if __ASSUME_32BITUIDS > 0 && defined __NR_setresuid32
8 # define local_seteuid(id) INLINE_SYSCALL (setresuid32, 3, -1, id, -1)
9 #elif __ASSUME_SETRESUID_SYSCALL > 0
10 # define local_seteuid(id) INLINE_SYSCALL (setresuid, 3, -1, id, -1)
12 # define local_seteuid(id) seteuid (id)
16 /* If we can use the syscall directly, use it. */
17 #if __ASSUME_32BITUIDS > 0 && defined __NR_setresgid32
18 # define local_setegid(id) INLINE_SYSCALL (setresgid32, 3, -1, id, -1)
19 #elif __ASSUME_SETRESGID_SYSCALL > 0
20 # define local_setegid(id) INLINE_SYSCALL (setresgid, 3, -1, id, -1)
22 # define local_setegid(id) setegid (id)