syscall.sh / microblaze / lchown32
lchown32
change ownership of a file
sys_lchown(const char *filename, uid_t user, gid_t group)
| number | 198 (0xc6) |
|---|---|
| abi | common |
| entry point | sys_lchown |
| since | Linux 5.0 |
| man page | lchown32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r12 | 198, the syscall number |
r5 | const char *filename |
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/lchown32