diff options
Diffstat (limited to 'src/fseccomp/protocol.c')
-rw-r--r-- | src/fseccomp/protocol.c | 6 |
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 | ||
90 | void protocol_print(void) { | 90 | void 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 |