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 Oct 1, 2023
1 parent 5333d0b commit b4b2501
Show file tree
Hide file tree
Showing 7 changed files with 25 additions and 3 deletions.
2 changes: 2 additions & 0 deletions docs/report.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
| fchdir | 🟢 |
| fchmod | 🟢 |
| fchmodat | 🟢 |
| fchmodat2 | 🟡 |
| fchown | 🟢 |
| fchownat | 🟢 |
| fcntl | 🟢 |
Expand Down Expand Up @@ -157,6 +158,7 @@
| lsetxattr | 🟡 |
| lstat | 🟢 |
| madvise | 🟡 |
| map_shadow_stack | 🟡 |
| mbind | 🟡 |
| membarrier | 🟡 |
| memfd_create | 🟢 |
Expand Down
4 changes: 3 additions & 1 deletion driver/ppm_events_public.h
Original file line number Diff line number Diff line change
Expand Up @@ -1867,7 +1867,9 @@ enum extra_event_prog_code
PPM_SC_X(S390_RUNTIME_INSTR, 409) \
PPM_SC_X(SIGRETURN, 410) \
PPM_SC_X(S390_GUARDED_STORAGE, 411) \
PPM_SC_X(CACHESTAT, 412)
PPM_SC_X(CACHESTAT, 412) \
PPM_SC_X(FCHMODAT2, 413) \
PPM_SC_X(MAP_SHADOW_STACK, 414)

typedef enum {
#define PPM_SC_X(name, value) PPM_SC_##name = (value),
Expand Down
3 changes: 3 additions & 0 deletions driver/syscall_compat_aarch64.h
Original file line number Diff line number Diff line change
Expand Up @@ -920,3 +920,6 @@
#ifndef __NR_cachestat
#define __NR_cachestat 451
#endif
#ifndef __NR_fchmodat2
#define __NR_fchmodat2 452
#endif
3 changes: 3 additions & 0 deletions driver/syscall_compat_s390x.h
Original file line number Diff line number Diff line change
Expand Up @@ -1103,3 +1103,6 @@
#ifndef __NR_cachestat
#define __NR_cachestat 451
#endif
#ifndef __NR_fchmodat2
#define __NR_fchmodat2 452
#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 @@ -1073,3 +1073,9 @@
#ifndef __NR_cachestat
#define __NR_cachestat 451
#endif
#ifndef __NR_fchmodat2
#define __NR_fchmodat2 452
#endif
#ifndef __NR_map_shadow_stack
#define __NR_map_shadow_stack 453
#endif
6 changes: 6 additions & 0 deletions driver/syscall_table.c
Original file line number Diff line number Diff line change
Expand Up @@ -915,4 +915,10 @@ const struct syscall_evt_pair g_syscall_table[SYSCALL_TABLE_SIZE] = {
#ifdef __NR_cachestat
[__NR_cachestat - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_CACHESTAT},
#endif
#ifdef __NR_fchmodat2
[__NR_fchmodat2 - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_FCHMODAT2},
#endif
#ifdef __NR_map_shadow_stack
[__NR_map_shadow_stack - SYSCALL_TABLE_ID0] = {.ppm_sc = PPM_SC_MAP_SHADOW_STACK},
#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 b4b2501

Please sign in to comment.