mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2252] More complete documentation for -c option #1509
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1509
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @crass on GitHub (Nov 8, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2252
The documentation for the
-coption for firejail should be more detailed. Its not clear to me why I would use it. The manpage saysExecute command and exit., which isn't helpful because that's what I would expect firejail to do by default. Knowing a bit more about firejail, I might expect that it means the firejailed process is forked and the monitor process exits straight away, instead of waiting for the child process to terminate. However, upon reviewing the code this doesn't seem to be accurate either.As far as I can tell by looking at
arg_commandusage, the-cswitch just turns off some extra/debug messages. So what was/is the intent of this option? If I've estimated it correctly, then it should be renamed and the documentation should be more accurate/descriptive. Anyone have ideas about this?@netblue30 commented on GitHub (Nov 9, 2018):
-c is a standard option for shells (bash, dash, etc), it is usually inserted on the command line by some of the login programs. You can use firejail as a restricted login shell (see man firejail-login) from a ssh or telnet server for example. There could be some other login applications,
I'll take a look at the code and clean some of it up. The code has been that way since forever.
@crass commented on GitHub (Nov 9, 2018):
Ahh, ok, makes sense. I don't have any issue with the code per se, just didn't see its purpose. The documentation should include these details.