Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update(driver): update syscalls tables and driver report. #1374

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.

Loading