aboutsummaryrefslogtreecommitdiffstats
path: root/src/firejail/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/firejail/main.c')
-rw-r--r--src/firejail/main.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/firejail/main.c b/src/firejail/main.c
index 4882e29e6..6fd011868 100644
--- a/src/firejail/main.c
+++ b/src/firejail/main.c
@@ -243,6 +243,21 @@ static void run_cmd_and_exit(int i, int argc, char **argv) {
243 } 243 }
244 else if (strcmp(argv[i], "--version") == 0) { 244 else if (strcmp(argv[i], "--version") == 0) {
245 printf("firejail version %s\n", VERSION); 245 printf("firejail version %s\n", VERSION);
246#ifndef HAVE_NETWORK
247 printf("Networking support is disabled.\n");
248#endif
249#ifndef HAVE_USERNS
250 printf("User namespace support is disabled.\n");
251#endif
252#ifndef HAVE_SECCOMP
253 printf("Seccomp-bpf support is disabled.\n");
254#endif
255#ifndef HAVE_BIND
256 printf("Bind support is disabled.\n");
257#endif
258#ifndef HAVE_CHROOT
259 printf("Chroot support is disabled.\n");
260#endif
246 exit(0); 261 exit(0);
247 } 262 }
248#ifdef HAVE_NETWORK 263#ifdef HAVE_NETWORK