[GH-ISSUE #2329] Cannot access symlinked config files #1552

Closed
opened 2026-05-05 08:12:54 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @daphniz on GitHub (Jan 5, 2019).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2329

When I run qutebrowser through firejail, qb cannot access its config
files. This is because
my ~/.config/ is a symlink to ~/dot/config. But I can't figure out how to
work with this. I have tried noblacklisting and whitelisting
~/dot/config/qutebrowser, but to no avail.

Originally created by @daphniz on GitHub (Jan 5, 2019). Original GitHub issue: https://github.com/netblue30/firejail/issues/2329 When I run qutebrowser through firejail, qb cannot access its config files. This is because my ~/.config/ is a symlink to ~/dot/config. But I can't figure out how to work with this. I have tried noblacklisting and whitelisting ~/dot/config/qutebrowser, but to no avail.
Author
Owner

@daphniz commented on GitHub (Jan 10, 2019):

I solved it by making ~/.config a directory and symlinking files into
that instead. But it seems Firejail does not accept it if ~/.config
is a symlink, and I don't know if and if so why that is intended.

Error: user .config is a symbolic link

<!-- gh-comment-id:453084058 --> @daphniz commented on GitHub (Jan 10, 2019): I solved it by making ~/.config a directory and symlinking files into that instead. But it seems Firejail does not accept it if ~/.config is a symlink, and I don't know if and if so why that is intended. Error: user .config is a symbolic link
Author
Owner

@rusty-snake commented on GitHub (Jan 12, 2019):

@daphniz to use ~/dot/config instead of .config as your config dir you can also set the env-var XDG_CONFIG_HOME like export XDG_CONFIG_HOME=$HOME/dot/config
See:
https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html
https://developer.gnome.org/basedir-spec/

<!-- gh-comment-id:453735051 --> @rusty-snake commented on GitHub (Jan 12, 2019): @daphniz to use `~/dot/config` instead of `.config` as your config dir you can also set the env-var `XDG_CONFIG_HOME` like `export XDG_CONFIG_HOME=$HOME/dot/config` See: https://specifications.freedesktop.org/basedir-spec/basedir-spec-latest.html https://developer.gnome.org/basedir-spec/
Author
Owner

@rusty-snake commented on GitHub (Jan 12, 2019):

or mount --bind

<!-- gh-comment-id:453735080 --> @rusty-snake commented on GitHub (Jan 12, 2019): or `mount --bind`
Author
Owner

@chiraag-nataraj commented on GitHub (May 21, 2019):

Seems like the OP found a solution to their issue (although perhaps not entirely ideal). I'll go ahead and close this, but @daphniz, please feel free to re-open if you have more questions or you want to convert this to an enhancement request.

<!-- gh-comment-id:494316005 --> @chiraag-nataraj commented on GitHub (May 21, 2019): Seems like the OP found a solution to their issue (although perhaps not entirely ideal). I'll go ahead and close this, but @daphniz, please feel free to re-open if you have more questions or you want to convert this to an enhancement request.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1552
No description provided.