syscall.sh / microblaze / fchmodat
fchmodat
change permissions of a file
sys_fchmodat(int dfd, const char *filename, umode_t mode)
| number | 306 (0x132) |
|---|---|
| abi | common |
| entry point | sys_fchmodat |
| since | Linux 5.0 |
| man page | fchmodat(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r12 | 306, the syscall number |
r5 | int dfd |
r6 | const char *filename |
r7 | umode_t mode |
r3 | the return value |
Then run brki r14,8 to enter the kernel.
Same syscall on other architectures
- x64 268
- x86 306
- arm64 53
- arm 333
- riscv64 53
- x32 1073742092
- loongarch64 53
- ppc64 297
- ppc 297
- s390x 299
- mips64 5258
- mipsn32 6262
- mipso32 4299
- alpha 461
- arc 53
- csky 53
- hexagon 53
- m68k 299
- nios2 53
- openrisc 53
- parisc 286
- sh 306
- sparc 295
- sparc64 295
- xtensa 300
Get this as JSON: https://api.syscall.sh/v2/syscalls/microblaze/fchmodat