mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #259] Write Freedesktop directories, blacklist the rest #181
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#181
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 @derba on GitHub (Jan 24, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/259
I use Clementine as music player. I would be glad if it could access for read+write
~/.config/Clementineand~/<localized name for Music>only. The rest should be blacklisted or read-only. How could I achieve that?The localized name fo Music is returned by Freedesktop's
xdg-user-dir MUSICcommand. I can used that on command line, but how to set it in global profile?@nick75e commented on GitHub (Jan 24, 2016):
Hi!
You can use the
whitelistoption so that only the whitelisted folders will be seen by Clementine, e.g. (in profile files):whitelist ~/.config/Clementinewhitelist ~/Musicor
firejail --whitelist=~/.config/Clementine --whitelist=~/Music clementineI'm not sure you can set the music folder dynamically (yet?), there is
$DOWNLOADfor the download folder but I don't think it exists for the music folder.Hope it helps
@derba commented on GitHub (Jan 25, 2016):
Just like one can use ${HOME} in profiles, it would be nice to use logical Freedesktop names e.g. XDG-USER-DIR(MUSIC). I see two use cases:
When Firejail is to execute something then on interpreting profiles XDG stuff needs a little extra lookup.
http://freedesktop.org/wiki/Software/xdg-user-dirs/
https://wiki.archlinux.org/index.php/Xdg_user_directories
@derba commented on GitHub (Jan 25, 2016):
Similar issue is discussed at https://l3net.wordpress.com/2015/10/30/firejail-0-9-34-rc1-release-announcement/. See "whitelist Загрузки".
@netblue30 commented on GitHub (Jan 25, 2016):
I'll add support for all entries in XDG file. Thanks.
@chiraag-nataraj commented on GitHub (Jul 16, 2018):
@netblue30 It doesn't look like this has happened yet? Only the
${DOWNLOADS}name is supported by looking into~/.config/user-dirs.dirs. I don't quite trust my C or I would do this myself. I could just copy the existing code for${DOWNLOADS}and edit it for the other variables...?@netblue30 commented on GitHub (Jul 17, 2018):
Yes, go for it, we'll fix it later when people start complaining.
@Fred-Barclay commented on GitHub (Jul 17, 2018):
@chiraag-nataraj I don't trust my C well enough either, so I usually just open a PR here and ask someone to review it. 😄