aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Glenn Washburn <development@efficientek.com>2018-11-09 09:03:01 -0600
committerLibravatar crass <development@efficientek.com>2018-11-18 12:53:54 -0600
commitc895eee170a1ea205fa2cfa4d83bd7273c9d8651 (patch)
tree9bd7cb1c4666de809184a0e8bf75b9b0df95b13d
parentMerge pull request #2260 from announ/patch-1 (diff)
downloadfirejail-c895eee170a1ea205fa2cfa4d83bd7273c9d8651.tar.gz
firejail-c895eee170a1ea205fa2cfa4d83bd7273c9d8651.tar.zst
firejail-c895eee170a1ea205fa2cfa4d83bd7273c9d8651.zip
Add better documentation for "-c" option.
-rw-r--r--src/firejail/usage.c2
-rw-r--r--src/man/firejail.txt4
2 files changed, 4 insertions, 2 deletions
diff --git a/src/firejail/usage.c b/src/firejail/usage.c
index 84bc22571..b5d41b3e8 100644
--- a/src/firejail/usage.c
+++ b/src/firejail/usage.c
@@ -42,7 +42,7 @@ static char *usage_str =
42 " --blacklist=filename - blacklist directory or file.\n" 42 " --blacklist=filename - blacklist directory or file.\n"
43 " --build - build a whitelisted profile for the application.\n" 43 " --build - build a whitelisted profile for the application.\n"
44 " --build=filename - build a whitelisted profile for the application.\n" 44 " --build=filename - build a whitelisted profile for the application.\n"
45 " -c - execute command and exit.\n" 45 " -c - login shell compatibility option (has no effect).\n"
46 " --caps - enable default Linux capabilities filter.\n" 46 " --caps - enable default Linux capabilities filter.\n"
47 " --caps.drop=all - drop all capabilities.\n" 47 " --caps.drop=all - drop all capabilities.\n"
48 " --caps.drop=capability,capability - blacklist capabilities filter.\n" 48 " --caps.drop=capability,capability - blacklist capabilities filter.\n"
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index e7917737e..2fe2e8bfa 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -186,7 +186,9 @@ Example:
186$ firejail --build=vlc.profile vlc ~/Videos/test.mp4 186$ firejail --build=vlc.profile vlc ~/Videos/test.mp4
187.TP 187.TP
188\fB\-c 188\fB\-c
189Execute command and exit. 189Login shell compatibility option. This option is use by some login programs when executing
190the login shell, such as when firejail is used as a restricted login shell. It currently does
191not change the execution of firejail.
190.TP 192.TP
191\fB\-\-caps 193\fB\-\-caps
192Linux capabilities is a kernel feature designed to split up the root privilege into a set of distinct privileges. 194Linux capabilities is a kernel feature designed to split up the root privilege into a set of distinct privileges.