[GH-ISSUE #287] How to work with symlinks? #204

Closed
opened 2026-05-05 05:18:33 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @voidzero on GitHub (Feb 9, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/287

Example: My .mozilla, .config/chromium, and .cache directories are symlinks that point to a zram (compressed memory) directory, for speed purposes and to reduce disk writes. On boot and shutdown those directories are synched from/to disk. So my home dir looks like this:

.config/chomium -> /snc/voidzero/chromium
.mozilla -> /snc/voidzero/mozilla
.cache -> /snc/voidzero/cache

When I try to launch firejail firefox:

Reading profile /etc/firejail/firefox.profile
Reading profile /etc/firejail/disable-mgmt.inc
Reading profile /etc/firejail/disable-secret.inc
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/whitelist-common.inc
Parent pid 8167, child pid 8168
Error: invalid whitelist path /home/voidzero/.mozilla
Error: cannot establish communication with the parent, exiting...

What is the recommended way to work with a setup like this? I know that a workaround is to bind-mount rather than symlink, but for boot purposes this is not ideal right now.

I'd appreciate some pointers, cheers.

Originally created by @voidzero on GitHub (Feb 9, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/287 Example: My .mozilla, .config/chromium, and .cache directories are symlinks that point to a zram (compressed memory) directory, for speed purposes and to reduce disk writes. On boot and shutdown those directories are synched from/to disk. So my home dir looks like this: <pre> .config/chomium -> /snc/voidzero/chromium .mozilla -> /snc/voidzero/mozilla .cache -> /snc/voidzero/cache </pre> When I try to launch `firejail firefox`: <pre> Reading profile /etc/firejail/firefox.profile Reading profile /etc/firejail/disable-mgmt.inc Reading profile /etc/firejail/disable-secret.inc Reading profile /etc/firejail/disable-common.inc Reading profile /etc/firejail/disable-devel.inc Reading profile /etc/firejail/whitelist-common.inc Parent pid 8167, child pid 8168 Error: invalid whitelist path /home/voidzero/.mozilla Error: cannot establish communication with the parent, exiting... </pre> What is the recommended way to work with a setup like this? I know that a workaround is to bind-mount rather than symlink, but for boot purposes this is not ideal right now. I'd appreciate some pointers, cheers.
gitea-mirror 2026-05-05 05:18:33 -06:00
Author
Owner

@netblue30 commented on GitHub (Feb 9, 2016):

You need both the link and the original file in your home directory. You need to mount the zram somewhere in your home directory, /home/user/snc for example.

<!-- gh-comment-id:181916153 --> @netblue30 commented on GitHub (Feb 9, 2016): You need both the link and the original file in your home directory. You need to mount the zram somewhere in your home directory, /home/user/snc for example.
Author
Owner

@voidzero commented on GitHub (Feb 13, 2016):

Alright thanks. Perhaps this is useful for a FAQ entry?

<!-- gh-comment-id:183729260 --> @voidzero commented on GitHub (Feb 13, 2016): Alright thanks. Perhaps this is useful for a FAQ entry?
Author
Owner

@netblue30 commented on GitHub (Feb 14, 2016):

I put it in the man page.

<!-- gh-comment-id:183977640 --> @netblue30 commented on GitHub (Feb 14, 2016): I put it in the man page.
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#204
No description provided.