setxattr on score
set an extended attribute value
sys_setxattr(const char *path, const char *name, const void *value, size_t size, int flags)
| number | 5 (0x5) |
|---|---|
| abi | common |
| entry point | sys_setxattr |
| since | Linux 3.7 or earlier (3.7 is the first release scanned for score) |
| man page | setxattr(2) |
| source | elixir.bootlin.com |
Registers
| register | value |
|---|---|
r27 | 5, the syscall number |
r4 | const char *path |
r5 | const char *name |
r6 | const void *value |
r7 | size_t size |
r8 | int flags |
r4 | the return value |
Then run syscall to enter the kernel.
r7 is the error flag and r4 then holds the positive error number.
This architecture was removed from the Linux kernel in Linux 4.17. The newest release with a syscall table here is Linux 4.16. The other removed architectures live on the historical architectures page.
Same syscall on other architectures
- x64 188
- x86 226
- arm64 5
- arm 226
- riscv64 5
- ia32 226
- x32 1073742012
- loongarch64 5
- ppc64 209
- ppc 209
- s390x 224
- mips64 5180
- mipsn32 6180
- mipso32 4224
- alpha 382
- arc 5
- blackfin 226, removed in 4.17
- cris 226, removed in 4.17
- csky 5
- frv 226, removed in 4.17
- hexagon 5
- ia64 1217, removed in 6.7
- m32r 226, removed in 4.17
- m68k 223
- metag 5, removed in 4.17
- microblaze 226
- mn10300 226, removed in 4.17
- nds32 5, removed in 5.18
- nios2 5
- openrisc 5
- parisc 238
- sh 226
- sparc 169
- sparc64 169
- tilegx 5, removed in 4.17
- tilepro 5, removed in 4.17
- xtensa 68
Get this as JSON: https://api.syscall.sh/v2/syscalls/score/setxattr?kernel=all