syscall.sh / x86 / lchown32
lchown32
change ownership of a file
sys_lchown(const char *filename, uid_t user, gid_t group)
| number | 198 (0xc6) |
|---|---|
| abi | i386 |
| entry point | sys_lchown |
| since | Linux 3.3 |
| man page | lchown32(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
eax | 198, the syscall number |
ebx | const char *filename |
ecx | uid_t user |
edx | gid_t group |
eax | the return value |
Then run int 0x80 to enter the kernel.
Same syscall on other architectures
- arm 198
- m68k 212
- microblaze 198
- sh 198
- sparc 31
Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/lchown32