diff options
author | 2018-09-09 18:28:54 -0400 | |
---|---|---|
committer | 2018-09-09 18:28:54 -0400 | |
commit | e09da6a0a8cce14fea9a5b1b7e8b5c419f89915a (patch) | |
tree | ea1ce4679f9ba2e92c1f56af77159832a721a60b /src/fseccomp/syscall.c | |
parent | Merge branch 'master' of http://github.com/netblue30/firejail (diff) | |
download | firejail-e09da6a0a8cce14fea9a5b1b7e8b5c419f89915a.tar.gz firejail-e09da6a0a8cce14fea9a5b1b7e8b5c419f89915a.tar.zst firejail-e09da6a0a8cce14fea9a5b1b7e8b5c419f89915a.zip |
remove seccomp warning
Diffstat (limited to 'src/fseccomp/syscall.c')
-rw-r--r-- | src/fseccomp/syscall.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/fseccomp/syscall.c b/src/fseccomp/syscall.c index bc51d04f6..3b10c4473 100644 --- a/src/fseccomp/syscall.c +++ b/src/fseccomp/syscall.c | |||
@@ -495,10 +495,7 @@ int syscall_check_list(const char *slist, void (*callback)(int fd, int syscall, | |||
495 | } | 495 | } |
496 | else { | 496 | else { |
497 | syscall_process_name(ptr, &syscall_nr, &error_nr); | 497 | syscall_process_name(ptr, &syscall_nr, &error_nr); |
498 | if (syscall_nr == -1) { | 498 | if (syscall_nr == -1) {;} |
499 | if (!arg_quiet) | ||
500 | fprintf(stderr, "Warning fseccomp: syscall \"%s\" not available on this platform\n", ptr); | ||
501 | } | ||
502 | else if (callback != NULL) { | 499 | else if (callback != NULL) { |
503 | if (error_nr != -1 && fd != 0) { | 500 | if (error_nr != -1 && fd != 0) { |
504 | filter_add_errno(fd, syscall_nr, error_nr, ptrarg); | 501 | filter_add_errno(fd, syscall_nr, error_nr, ptrarg); |