syscall.sh / microblaze / 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 |
|---|---|
r12 | 207, the syscall number |
r5 | unsigned int fd |
r6 | uid_t user |
r7 | gid_t group |
r3 | the return value |
Then run brki r14,8 to enter the kernel.
Same syscall on other architectures
Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/fchown32