diff options
Diffstat (limited to 'src/fseccomp')
-rw-r--r-- | src/fseccomp/syscall.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/fseccomp/syscall.c b/src/fseccomp/syscall.c index b9e6d995b..3a9be51a7 100644 --- a/src/fseccomp/syscall.c +++ b/src/fseccomp/syscall.c | |||
@@ -511,6 +511,7 @@ int syscall_check_list(const char *slist, void (*callback)(int fd, int syscall, | |||
511 | 511 | ||
512 | static void find_syscall(int fd, int syscall, int arg, void *ptrarg) { | 512 | static void find_syscall(int fd, int syscall, int arg, void *ptrarg) { |
513 | (void)fd; | 513 | (void)fd; |
514 | (void) arg; | ||
514 | SyscallCheckList *ptr = ptrarg; | 515 | SyscallCheckList *ptr = ptrarg; |
515 | if (syscall == ptr->syscall) | 516 | if (syscall == ptr->syscall) |
516 | ptr->found = true; | 517 | ptr->found = true; |
@@ -518,6 +519,7 @@ static void find_syscall(int fd, int syscall, int arg, void *ptrarg) { | |||
518 | 519 | ||
519 | // go through list2 and find matches for problem syscall | 520 | // go through list2 and find matches for problem syscall |
520 | static void syscall_in_list(int fd, int syscall, int arg, void *ptrarg) { | 521 | static void syscall_in_list(int fd, int syscall, int arg, void *ptrarg) { |
522 | (void) fd; | ||
521 | (void)arg; | 523 | (void)arg; |
522 | SyscallCheckList *ptr = ptrarg; | 524 | SyscallCheckList *ptr = ptrarg; |
523 | SyscallCheckList sl; | 525 | SyscallCheckList sl; |
@@ -543,6 +545,7 @@ static void syscall_in_list(int fd, int syscall, int arg, void *ptrarg) { | |||
543 | 545 | ||
544 | // go through list and find matches for syscalls in list @default-keep | 546 | // go through list and find matches for syscalls in list @default-keep |
545 | void syscalls_in_list(const char *list, const char *slist, int fd, char **prelist, char **postlist) { | 547 | void syscalls_in_list(const char *list, const char *slist, int fd, char **prelist, char **postlist) { |
548 | (void) fd; | ||
546 | SyscallCheckList sl; | 549 | SyscallCheckList sl; |
547 | // these syscalls are used by firejail after the seccomp filter is initialized | 550 | // these syscalls are used by firejail after the seccomp filter is initialized |
548 | sl.slist = slist; | 551 | sl.slist = slist; |