diff options
author | nya1 <16636743+nya1@users.noreply.github.com> | 2023-01-14 16:21:49 +0100 |
---|---|---|
committer | nya1 <16636743+nya1@users.noreply.github.com> | 2023-01-14 16:21:49 +0100 |
commit | 36eb222001ca2f53de9e15c5a59d8f2182a9b3e7 (patch) | |
tree | 4ca5be8da1fca7c7cd308f9ca174423bbb1c7337 | |
parent | chore: update readme with flag to enable apparmor on ./configure (diff) | |
download | firejail-36eb222001ca2f53de9e15c5a59d8f2182a9b3e7.tar.gz firejail-36eb222001ca2f53de9e15c5a59d8f2182a9b3e7.tar.zst firejail-36eb222001ca2f53de9e15c5a59d8f2182a9b3e7.zip |
refactor: do not show apparmor CLI options if app armor is not supported
-rw-r--r-- | src/firejail/usage.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/firejail/usage.c b/src/firejail/usage.c index 0a4c8a483..bf4550dd8 100644 --- a/src/firejail/usage.c +++ b/src/firejail/usage.c | |||
@@ -30,10 +30,12 @@ static char *usage_str = | |||
30 | " -- - signal the end of options and disables further option processing.\n" | 30 | " -- - signal the end of options and disables further option processing.\n" |
31 | " --allow-debuggers - allow tools such as strace and gdb inside the sandbox.\n" | 31 | " --allow-debuggers - allow tools such as strace and gdb inside the sandbox.\n" |
32 | " --allusers - all user home directories are visible inside the sandbox.\n" | 32 | " --allusers - all user home directories are visible inside the sandbox.\n" |
33 | #ifdef HAVE_APPARMOR | ||
33 | " --apparmor - enable AppArmor confinement with the default profile.\n" | 34 | " --apparmor - enable AppArmor confinement with the default profile.\n" |
34 | " --apparmor=profile_name - enable AppArmor confinement with a\n" | 35 | " --apparmor=profile_name - enable AppArmor confinement with a\n" |
35 | "\tcustom profile.\n" | 36 | "\tcustom profile.\n" |
36 | " --apparmor.print=name|pid - print apparmor status.\n" | 37 | " --apparmor.print=name|pid - print apparmor status.\n" |
38 | #endif | ||
37 | " --appimage - sandbox an AppImage application.\n" | 39 | " --appimage - sandbox an AppImage application.\n" |
38 | #ifdef HAVE_NETWORK | 40 | #ifdef HAVE_NETWORK |
39 | " --bandwidth=name|pid - set bandwidth limits.\n" | 41 | " --bandwidth=name|pid - set bandwidth limits.\n" |