mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #3378] ignore option and globbing #2122
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#2122
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 @smitsohu on GitHub (Apr 22, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3378
The idea was to configure the Dolphin (maybe Baloo, KWin, ...) sandbox in a more restrictive way, while avoiding to run into #1793 :
This snippet mounts the user home directory read-only, but keeps the ~/.config and ~/.local/share/dolphin directories writable.
All files inside ~/.config, with ~/.config/dolphinrc being the only exception, are read-only again.
Unfortunately,
read-only ${HOME}/.config/*is matched only byignore read-only ${HOME}/.config/*and
ignore read-onlyFirejail checks for
ignored commands before wildcards are expanded, and so the profile snippet above doesn't work.Now the question is if it would be considered generally helpful to enhance the current
ignoreand run checks again after wildcards are expanded (adding a bit of overhead, of course).@ghost commented on GitHub (Apr 22, 2020):
If this isn't too difficult/time-consuming to implement, I'd say go for it. Perhaps it can prove useful (in the future) for other sandboxes besides the Dolphin one. Firejail's overhead is actually very nice and I don't think this proposal would hurt it that much. But that will have to be tested after implementation of course.
@rusty-snake commented on GitHub (Apr 22, 2020):
I would not use ignore for that, read-write is already used for ro exceptions.
But I often see that users are trying to add globbing exception with blacklist.