mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2002] [Feature request] Make settings in firejail.config ignorable in profiles #1348
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#1348
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 @curiosity-seeker on GitHub (Jun 14, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2002
The
Firejail Usagepage suggests to setforce-nonewprivs yesin /etc/firejail/firejail.config as one measure to mitigate the concerns about Firejail being a SUID application.
One of the programs affected by this switch is VirtualBox. When I try to start it I'm getting the error:

Adding
ignore nonewprivsorignore force-nonewprivsdoes not work. Hence, I suggest to add such a feature as it would help to harden Firejail in general but would allow exceptions for specific incompatible applications at the same time.@chiraag-nataraj commented on GitHub (Jun 14, 2018):
One way you can do this is instead put
nonewprivsin/etc/firejail/globals.local. Then, you should be able to useignore nonewprivsin your VirtualBox profile.Specifically, the part force-turning on
nonewprivsis at main.c:1058-1060:@SkewedZeppelin commented on GitHub (Jun 14, 2018):
Adding to @chiraag-nataraj I think the firejail.config is intended to allow system administrators to enforce specific settings to users. Adding support to bypass settings in profiles would also need a new option in the config to allow that.
@curiosity-seeker commented on GitHub (Jun 14, 2018):
Yes, you're right. I had forgotten about that. Thanks!
Nevertheless, the question remains: Wouldn't it make sense to use this setting by default and add an exception for the very few applications affected?
@SkewedZeppelin commented on GitHub (Jun 14, 2018):
Nearly all profiles already use nonewprivs
I think the benefit of force-nonewprivs is however different then that of nonewprivs.
@curiosity-seeker commented on GitHub (Jun 14, 2018):
Thanks, I see. I just thought that it might be easier the other way round.
Please feel free to close this issue if it's out of question.
@chiraag-nataraj commented on GitHub (Jun 14, 2018):
So I think the point of the stuff in
firejail.configis that those are settings which can't be overridden by profiles. Those options are designed to override any profile-specific options you may have. Basically, I guess what I'm trying to get at is thatforce-nonewprivsisn't for the usecase you're describing - the usecase you're describing is solved as I described above :) That being said, we may want to update the docs, since pointing people tofirejail.configwhen it's not necessarily meant to be used in this way (as you found out) isn't exactly a good user experience.@chiraag-nataraj commented on GitHub (Jul 9, 2018):
@netblue30 Can you update the suggested usage on the site?
@rusty-snake commented on GitHub (Jun 26, 2019):
@netblue30 echoing @chiraag-nataraj