mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #6011] whitelist ${HOME}/Documents is not working #3157
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#3157
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 @rdbeni0 on GitHub (Sep 16, 2023).
Original GitHub issue: https://github.com/netblue30/firejail/issues/6011
hi,
i am trying to access file:
file:///home/rdbeni0/Documents/html/index.html
and i put in my ~/.config/firejail/brave.local :
and nothing is working:
Your file couldn’t be accessedvia brave.This is full command:
Please also note that when i have :
then output is:
in that case, how can I add whitelist for file:///home/rdbeni0/Documents/html/index.html?
OS: latest Arch Linux with KDE and wayland
@rusty-snake commented on GitHub (Sep 16, 2023):
#2359
--debugoutput.firejail --profile=brave ls ~/Documents. What does it say. ENOENT or EACCES.==> You have to
noblacklist ${DOCUMENTS}@rdbeni0 commented on GitHub (Sep 16, 2023):
i added to the ~/.config/firejail/brave.local :
and
via browser is the same - access denied.
So this is not working.
And of course the path is correct and ~/Documents exists as usual, but brave does not have access to it with firejail.
please also note that i am using apparmor (integration with apparmor is enabled).
@rusty-snake commented on GitHub (Sep 16, 2023):
Then check
--debugoutput or post it (using details-summary).@rdbeni0 commented on GitHub (Sep 16, 2023):
well, output is to big. Thanks for you help
I made workaround with combination of hard/soft, something like that:
and i added rule whitelist ${HOME}/.local/share/html
and it started working
something and somewhere is broken with ~/Documents/ and we cannot easily whitelist it (or noblacklist), but i don't have time to check it deeply.
Let me close this topic.
if someone is interested how to reproduce it:
then enable AppArmor integration with firefail like described here:
https://wiki.archlinux.org/title/firejail#Enable_AppArmor_support
reboot
and then try to find correct rule to add your ~/Documents/html for your ~/.config/firejail/brave.local.
in my case it didn't work - i checked all of below: