Skip to content

Commit

Permalink
update(driver): update syscalls tables and driver report.
Browse files Browse the repository at this point in the history
Signed-off-by: GitHub <[email protected]>
  • Loading branch information
poiana authored Aug 1, 2024
1 parent 3ce0a2d commit accfd85
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 12 deletions.
10 changes: 6 additions & 4 deletions docs/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
| fsmount | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| fsopen | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| fspick | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| fstat | 🟢 | aarch64,ppc64le,riscv64,s390x,x86_64 |
| fstat | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| fstatat | 🟡 | aarch64,loongarch64,riscv64 |
| fstatfs | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| fstatfs64 | 🟡 | ppc64le,s390x |
| fsync | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
Expand Down Expand Up @@ -201,7 +202,7 @@
| munmap | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| name_to_handle_at | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| nanosleep | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| newfstatat | 🟢 | aarch64,ppc64le,riscv64,s390x,x86_64 |
| newfstatat | 🟢 | ppc64le,s390x,x86_64 |
| nice | 🟡 | ppc64le,s390x |
| oldfstat | 🟡 | ppc64le |
| oldlstat | 🟡 | ppc64le |
Expand Down Expand Up @@ -320,10 +321,10 @@
| setns | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setpgid | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setpriority | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setregid | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setregid | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setresgid | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setresuid | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setreuid | 🟡 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setreuid | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setrlimit | 🟢 | aarch64,ppc64le,riscv64,s390x,x86_64 |
| setsid | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| setsockopt | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
Expand Down Expand Up @@ -396,6 +397,7 @@
| unlink | 🟢 | ppc64le,s390x,x86_64 |
| unlinkat | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| unshare | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| uretprobe | 🟡 | aarch64,loongarch64,riscv64,x86_64 |
| userfaultfd | 🟢 | aarch64,loongarch64,ppc64le,riscv64,s390x,x86_64 |
| ustat | 🟡 | ppc64le,s390x,x86_64 |
| utime | 🟡 | ppc64le,s390x,x86_64 |
Expand Down
2 changes: 1 addition & 1 deletion driver/SCHEMA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.21.1
2.21.2
4 changes: 3 additions & 1 deletion driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -1964,7 +1964,9 @@ enum extra_event_prog_code
PPM_SC_X(LSM_GET_SELF_ATTR, 439) \
PPM_SC_X(LSM_SET_SELF_ATTR, 440) \
PPM_SC_X(LSM_LIST_MODULES, 441) \
PPM_SC_X(MSEAL, 442)
PPM_SC_X(MSEAL, 442) \
PPM_SC_X(FSTATAT, 443) \
PPM_SC_X(URETPROBE, 444)

typedef enum {
#define PPM_SC_X(name, value) PPM_SC_##name = (value),
Expand Down
7 changes: 5 additions & 2 deletions driver/syscall_compat_aarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -248,8 +248,8 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_readlinkat
#define __NR_readlinkat 78
#endif
#ifndef __NR_newfstatat
#define __NR_newfstatat 79
#ifndef __NR_fstatat
#define __NR_fstatat 79
#endif
#ifndef __NR_fstat
#define __NR_fstat 80
Expand Down Expand Up @@ -965,3 +965,6 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
#ifndef __NR_uretprobe
#define __NR_uretprobe 467
#endif
9 changes: 9 additions & 0 deletions driver/syscall_compat_loongarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,12 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_readlinkat
#define __NR_readlinkat 78
#endif
#ifndef __NR_fstatat
#define __NR_fstatat 79
#endif
#ifndef __NR_fstat
#define __NR_fstat 80
#endif
#ifndef __NR_sync
#define __NR_sync 81
#endif
Expand Down Expand Up @@ -947,3 +953,6 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
#ifndef __NR_uretprobe
#define __NR_uretprobe 467
#endif
7 changes: 5 additions & 2 deletions driver/syscall_compat_riscv64.h
Original file line number Diff line number Diff line change
Expand Up @@ -245,8 +245,8 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_readlinkat
#define __NR_readlinkat 78
#endif
#ifndef __NR_newfstatat
#define __NR_newfstatat 79
#ifndef __NR_fstatat
#define __NR_fstatat 79
#endif
#ifndef __NR_fstat
#define __NR_fstat 80
Expand Down Expand Up @@ -968,3 +968,6 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
#ifndef __NR_uretprobe
#define __NR_uretprobe 467
#endif
3 changes: 3 additions & 0 deletions driver/syscall_compat_x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -1100,3 +1100,6 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
#ifndef __NR_uretprobe
#define __NR_uretprobe 467
#endif
6 changes: 6 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1015,4 +1015,10 @@ const struct syscall_evt_pair g_syscall_table[SYSCALL_TABLE_SIZE] = {
#ifdef __NR_mseal
[__NR_mseal - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_MSEAL},
#endif
#ifdef __NR_fstatat
[__NR_fstatat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_FSTATAT},
#endif
#ifdef __NR_uretprobe
[__NR_uretprobe - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_URETPROBE},
#endif
};
Loading

0 comments on commit accfd85

Please sign in to comment.