syscall.sh / sh / chown32
chown32
change ownership of a file
sys_chown(const char *filename, uid_t user, gid_t group)
| number | 212 (0xd4) |
|---|---|
| abi | common |
| entry point | sys_chown |
| since | Linux 5.0 |
| man page | chown32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r3 | 212, the syscall number |
r4 | const char *filename |
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 212
- arm 212
- m68k 198
- microblaze 212
- sparc 35
Get this as JSON: https://api.syscall.sh/v2/syscalls/sh/chown32