syscall.sh / sh / fchown32
fchown32
change ownership of a file
sys_fchown(unsigned int fd, uid_t user, gid_t group)
| number | 207 (0xcf) |
|---|---|
| abi | common |
| entry point | sys_fchown |
| since | Linux 5.0 |
| man page | fchown32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 207, the syscall number |
r4 | unsigned int fd |
r5 | uid_t user |
r6 | gid_t group |
r0 | the return value |
Then run trapa #31 to enter the kernel.
Same syscall on other architectures
- x86 207
- arm 207
- m68k 207
- microblaze 207
- sparc 32
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/fchown32