aboutsummaryrefslogtreecommitdiffstats
path: root/src/fseccomp/protocol.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/protocol.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/protocol.c')
-rw-r--r--src/fseccomp/protocol.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fseccomp/protocol.c b/src/fseccomp/protocol.c
index e9f65e7e8..57ce2f8e0 100644
--- a/src/fseccomp/protocol.c
+++ b/src/fseccomp/protocol.c
@@ -89,7 +89,8 @@ static struct sock_filter *find_protocol_domain(const char *p) {
89 89
90void protocol_print(void) { 90void protocol_print(void) {
91#ifndef SYS_socket 91#ifndef SYS_socket
92 fprintf(stderr, "Warning fseccomp: firejail --protocol not supported on this platform\n"); 92 if (!arg_quiet)
93 fprintf(stderr, "Warning fseccomp: firejail --protocol not supported on this platform\n");
93 return; 94 return;
94#endif 95#endif
95 96
@@ -107,7 +108,8 @@ void protocol_build_filter(const char *prlist, const char *fname) {
107 assert(fname); 108 assert(fname);
108 109
109#ifndef SYS_socket 110#ifndef SYS_socket
110 fprintf(stderr, "Warning fseccomp: --protocol not supported on this platform\n"); 111 if (!arg_quiet)
112 fprintf(stderr, "Warning fseccomp: --protocol not supported on this platform\n");
111 return; 113 return;
112#else 114#else
113 // build the filter 115 // build the filter