aboutsummaryrefslogtreecommitdiffstats
path: root/src/fseccomp/syscall.c
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2017-08-15 10:11:08 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2017-08-15 10:11:08 -0400
commit2158d8d04e0d88c61b0d7de9f7abc0e54139de75 (patch)
treef9d10bbe13719f8650e6655fa4b262c1b2578efa /src/fseccomp/syscall.c
parentfix #1462 (diff)
downloadfirejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.tar.gz
firejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.tar.zst
firejail-2158d8d04e0d88c61b0d7de9f7abc0e54139de75.zip
compile cleanup
Diffstat (limited to 'src/fseccomp/syscall.c')
-rw-r--r--src/fseccomp/syscall.c3
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
512static void find_syscall(int fd, int syscall, int arg, void *ptrarg) { 512static 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
520static void syscall_in_list(int fd, int syscall, int arg, void *ptrarg) { 521static 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
545void syscalls_in_list(const char *list, const char *slist, int fd, char **prelist, char **postlist) { 547void 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;