syscall.sh / x32 / fchown
fchown
change ownership of a file
sys_fchown(unsigned int fd, uid_t user, gid_t group)
| number | 1073741917 (0x4000005d) |
|---|---|
| abi | common |
| entry point | sys_fchown |
| since | Linux 3.4 |
| man page | fchown(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
rax | 1073741917, the syscall number |
rdi | unsigned int fd |
rsi | uid_t user |
rdx | gid_t group |
rax | the return value |
Then run syscall to enter the kernel.
Same syscall on other architectures
- x64 93
- x86 95
- arm64 55
- arm 95
- riscv64 55
- loongarch64 55
- ppc64 95
- ppc 95
- s390x 207
- mips64 5091
- mipsn32 6091
- mipso32 4095
- alpha 123
- arc 55
- csky 55
- hexagon 55
- m68k 95
- microblaze 95
- nios2 55
- openrisc 55
- parisc 95
- sh 95
- sparc 123
- sparc64 123
- xtensa 53
Get this as JSON: https://api.syscall.sh/v2/syscalls/x32/fchown