diff options
Diffstat (limited to 'src/fseccomp/syscall.c')
-rw-r--r-- | src/fseccomp/syscall.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fseccomp/syscall.c b/src/fseccomp/syscall.c index 398a49578..b86c1c489 100644 --- a/src/fseccomp/syscall.c +++ b/src/fseccomp/syscall.c | |||
@@ -130,8 +130,10 @@ int syscall_check_list(const char *slist, void (*callback)(int fd, int syscall, | |||
130 | int syscall_nr; | 130 | int syscall_nr; |
131 | int error_nr; | 131 | int error_nr; |
132 | syscall_process_name(ptr, &syscall_nr, &error_nr); | 132 | syscall_process_name(ptr, &syscall_nr, &error_nr); |
133 | if (syscall_nr == -1) | 133 | if (syscall_nr == -1) { |
134 | fprintf(stderr, "Warning fseccomp: syscall %s not found\n", ptr); | 134 | if (!arg_quiet) |
135 | fprintf(stderr, "Warning fseccomp: syscall \"%s\" not available on this platform\n", ptr); | ||
136 | } | ||
135 | else if (callback != NULL) { | 137 | else if (callback != NULL) { |
136 | if (error_nr != -1) | 138 | if (error_nr != -1) |
137 | filter_add_errno(fd, syscall_nr, error_nr); | 139 | filter_add_errno(fd, syscall_nr, error_nr); |