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
yzewei authored Aug 1, 2024
1 parent 91e8aa8 commit c0f0213
Show file tree
Hide file tree
Showing 12 changed files with 471 additions and 419 deletions.
825 changes: 414 additions & 411 deletions docs/report.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion driver/SCHEMA_VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.19.6
2.19.7
5 changes: 4 additions & 1 deletion driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -1960,7 +1960,10 @@ enum extra_event_prog_code
PPM_SC_X(STATMOUNT, 438) \
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(LSM_LIST_MODULES, 441) \
PPM_SC_X(URETPROBE, 442) \
PPM_SC_X(FSTATAT, 443) \
PPM_SC_X(MSEAL, 444)

typedef enum {
#define PPM_SC_X(name, value) PPM_SC_##name = (value),
Expand Down
10 changes: 8 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 @@ -962,3 +962,9 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_lsm_list_modules
#define __NR_lsm_list_modules 461
#endif
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
#ifndef __NR_uretprobe
#define __NR_uretprobe 467
#endif
12 changes: 12 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 @@ -944,3 +950,9 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_lsm_list_modules
#define __NR_lsm_list_modules 461
#endif
#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_ppc64le.h
Original file line number Diff line number Diff line change
Expand Up @@ -1193,3 +1193,6 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_lsm_list_modules
#define __NR_lsm_list_modules 461
#endif
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
10 changes: 8 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 @@ -965,3 +965,9 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_lsm_list_modules
#define __NR_lsm_list_modules 461
#endif
#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_s390x.h
Original file line number Diff line number Diff line change
Expand Up @@ -1121,3 +1121,6 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_lsm_list_modules
#define __NR_lsm_list_modules 461
#endif
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
6 changes: 6 additions & 0 deletions driver/syscall_compat_x86_64.h
Original file line number Diff line number Diff line change
Expand Up @@ -1097,3 +1097,9 @@ or GPL2.txt for full copies of the license.
#ifndef __NR_lsm_list_modules
#define __NR_lsm_list_modules 461
#endif
#ifndef __NR_mseal
#define __NR_mseal 462
#endif
#ifndef __NR_uretprobe
#define __NR_uretprobe 467
#endif
1 change: 1 addition & 0 deletions driver/syscall_ia32_64_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,4 +453,5 @@ const int g_ia32_64_map[SYSCALL_TABLE_SIZE] = {
[459] = 459,
[460] = 460,
[461] = 461,
[462] = 462,
};
9 changes: 9 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -1009,4 +1009,13 @@ const struct syscall_evt_pair g_syscall_table[SYSCALL_TABLE_SIZE] = {
#ifdef __NR_listmount
[__NR_listmount - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_LISTMOUNT},
#endif
#ifdef __NR_mseal
[__NR_mseal - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_MSEAL},
#endif
#ifdef __NR_uretprobe
[__NR_uretprobe - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_URETPROBE},
#endif
#ifdef __NR_fstatat
[__NR_fstatat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_FSTATAT},
#endif
};
4 changes: 2 additions & 2 deletions userspace/libscap/linux/scap_ppm_sc.c

Large diffs are not rendered by default.

0 comments on commit c0f0213

Please sign in to comment.