aboutsummaryrefslogtreecommitdiffstats
path: root/src/fseccomp/syscall.c
diff options
context:
space:
mode:
authorLibravatar startx2017 <vradu.startx@yandex.com>2017-04-10 09:24:00 -0400
committerLibravatar startx2017 <vradu.startx@yandex.com>2017-04-10 09:24:00 -0400
commitb05f7f3bd9d0264a6e143e10269e3eca5416b048 (patch)
treec14f7114ddfd89fcaa32a3ed458e150131cd07de /src/fseccomp/syscall.c
parentDoc update for baloo_file profile (diff)
downloadfirejail-b05f7f3bd9d0264a6e143e10269e3eca5416b048.tar.gz
firejail-b05f7f3bd9d0264a6e143e10269e3eca5416b048.tar.zst
firejail-b05f7f3bd9d0264a6e143e10269e3eca5416b048.zip
--quiet fixes
Diffstat (limited to 'src/fseccomp/syscall.c')
-rw-r--r--src/fseccomp/syscall.c6
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);