setuid on arm64
set user identity
sys_setuid(uid_t uid)
| number | 146 (0x92) |
|---|---|
| abi | common |
| entry point | sys_setuid |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for arm64) |
| man page | setuid(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
x8 | 146, the syscall number |
x0 | uid_t uid |
x0 | the return value |
Then run svc #0 to enter the kernel.
Same syscall on other architectures
- x64 105
- x86 23
- arm 23
- riscv64 146
- ia32 23
- x32 1073741929
- loongarch64 146
- ppc64 23
- ppc 23
- s390x 213
- mips64 5103
- mipsn32 6103
- mipso32 4023
- alpha 23
- arc 146
- csky 146
- hexagon 146
- m68k 23
- microblaze 23
- nios2 146
- openrisc 146
- parisc 23
- sh 23
- sparc 23
- sparc64 23
- xtensa 136
Get this as JSON: https://api.syscall.sh/v2/syscalls/arm64/setuid