mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #2137] Browser trouble - whitelisting ${HOME}-directories issue #1449
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#1449
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 @varfoer on GitHub (Oct 4, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2137
Originally assigned to: @smitsohu on GitHub.
Hello,
for some days now Chromium as well as Firefox, Netsurf and Midori are not starting with firejail (guess I did an update). I am using the default profiles. Problem seems to be with whitelisting folders in the home-directory (.cache/, .config/ and Downloads/). Commenting those lines in the profile starts the Browsers (with complete access to the home-directory).
--noprofilealso works. This is the error-message I get:Same error for Chroumium and Firefox with the
.cache/and.config/dirs.firejail --versiongives:firejail --debug midori:OS: Arch
Many thanks!
@veloute commented on GitHub (Oct 4, 2018):
and these are with the default profiles - no changes by you?
@varfoer commented on GitHub (Oct 4, 2018):
No changes so far. I even reinstalled firejail, so that all configurations have been overridden. Other programs like gimp and sylpheed that do not whitelist any specific home-directory in the .profile are working with firejail.
@smitsohu commented on GitHub (Oct 5, 2018):
Can you please check /etc/passwd if your home directory ends with a
/character?You can also run:
A=$(getent passwd $UID); B=$(awk -F: '{printf $6}' <<< $A); echo $BThanks.
If there is a trailing
/, removing it should fix this issue. Maybe this was also the background of #2123.@netblue30 commented on GitHub (Oct 5, 2018):
Are these directories actually symlinks pointing outside your home directory? For archiving or for other reasons, some people use to store configuration/downloads/etc. in a different place in the file system.
@varfoer commented on GitHub (Oct 5, 2018):
Damn, that really did it. Thanks for this. I have already been on that but seems it was not enough effort ("double slashes work in bash-scripts, why should it be any different here" I thought...). Anyways, thanks and closed!
@smitsohu commented on GitHub (Oct 5, 2018):
@netblue30 Should we strip trailing slashes from the home directory?
It is my understanding that they appear only when /etc/passwd is edited manually, adduser/useradd never add a trailing slash.
@netblue30 commented on GitHub (Oct 6, 2018):
Yes, let's put it in.
@smitsohu commented on GitHub (Oct 7, 2018):
Only in case no one else already worked on this, I would like to assign it to myself.
@netblue30 commented on GitHub (Oct 8, 2018):
all yours :)