aboutsummaryrefslogtreecommitdiffstats
path: root/src/fseccomp/protocol.c
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-04-12 09:37:33 -0400
committerLibravatar GitHub <noreply@github.com>2017-04-12 09:37:33 -0400
commit337dd3c9ee8d9abe23db2e8b5177e6d6445fb247 (patch)
treece00f3bf949c60c1b93de2765ca54e1789b09632 /src/fseccomp/protocol.c
parentMerge pull request #1207 from laniakea64/master (diff)
parent--quiet fixes (diff)
downloadfirejail-337dd3c9ee8d9abe23db2e8b5177e6d6445fb247.tar.gz
firejail-337dd3c9ee8d9abe23db2e8b5177e6d6445fb247.tar.zst
firejail-337dd3c9ee8d9abe23db2e8b5177e6d6445fb247.zip
Merge pull request #1209 from startx2017/master
--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