syscall.sh / x32 / fchownat
fchownat
change ownership of a file
sys_fchownat(int dfd, const char *filename, uid_t user, gid_t group, int flag)
| number | 1073742084 (0x40000104) |
|---|---|
| abi | common |
| entry point | sys_fchownat |
| since | Linux 3.4 |
| man page | fchownat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073742084, the syscall number |
rdi | int dfd |
rsi | const char *filename |
rdx | uid_t user |
r10 | gid_t group |
r8 | int flag |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 260
- x86 298
- arm64 54
- arm 325
- riscv64 54
- loongarch64 54
- ppc64 289
- ppc 289
- s390x 291
- mips64 5250
- mipsn32 6254
- mipso32 4291
- alpha 453
- arc 54
- csky 54
- hexagon 54
- m68k 291
- microblaze 298
- nios2 54
- openrisc 54
- parisc 278
- sh 298
- sparc 287
- sparc64 287
- xtensa 297
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/fchownat