[GH-ISSUE #2036] Can't combine --overlay-named with --private= #1372

Open
opened 2026-05-05 07:57:57 -06:00 by gitea-mirror · 4 comments
Owner

Originally created by @laenion on GitHub (Jul 11, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2036

My intention is to install an application into an overlay (to keep it separate from the regular system). Both the system and home directories should be persistent, however the application should not see my personal data and start with an empty home.

The idea was to do this with the following command line:
firejail --private-home="/path/to/application/home" --overlay-named="Application name"

While the overlay is created as expected the original contents of my user's home are still visible.

Probably related to #1743.


Firejail version: 0.9.52 & today's master
Distribution: openSUSE Leap 15

Originally created by @laenion on GitHub (Jul 11, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2036 My intention is to install an application into an overlay (to keep it separate from the regular system). Both the system and home directories should be persistent, however the application should not see my personal data and start with an empty home. The idea was to do this with the following command line: `firejail --private-home="/path/to/application/home" --overlay-named="Application name"` While the overlay is created as expected the original contents of my user's home are still visible. Probably related to #1743. --- Firejail version: 0.9.52 & today's master Distribution: openSUSE Leap 15
gitea-mirror added the
enhancement
label 2026-05-05 07:57:57 -06:00
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 11, 2018):

I get this warning when I use them together:

Warning: private-home= feature is disabled in overlay

(using master)
So it seems that this is a known issue. I'll add an enhancement tag to it.

<!-- gh-comment-id:404208946 --> @chiraag-nataraj commented on GitHub (Jul 11, 2018): I get this warning when I use them together: ``` Warning: private-home= feature is disabled in overlay ``` (using master) So it seems that this is a known issue. I'll add an enhancement tag to it.
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 11, 2018):

On a side note, --overlay and --private seem to work well enough. So you might be able to do firejail --private="/path/to/application/home" --overlay-named="Application name" and it might work?

<!-- gh-comment-id:404209566 --> @chiraag-nataraj commented on GitHub (Jul 11, 2018): On a side note, `--overlay` and `--private` seem to work well enough. So you might be able to do `firejail --private="/path/to/application/home" --overlay-named="Application name"` and it might work?
Author
Owner

@laenion commented on GitHub (Jul 11, 2018):

Oh, sorry, I was originally using --private= (otherwise the home directory contents wouldn't be persistent) and was testing some more combinations. But as the warning already says combining the options with --overlay is not working in either case - only pure --private does.

<!-- gh-comment-id:404213374 --> @laenion commented on GitHub (Jul 11, 2018): Oh, sorry, I was originally using `--private=` (otherwise the home directory contents wouldn't be persistent) and was testing some more combinations. But as the warning already says combining the options with `--overlay` is not working in either case - only pure `--private` does.
Author
Owner

@chiraag-nataraj commented on GitHub (Jul 11, 2018):

Huh, this is weird. firejail --overlay --private="." works for me, but e.g. firejail --overlay --private="~/tmp" doesn't.

<!-- gh-comment-id:404220636 --> @chiraag-nataraj commented on GitHub (Jul 11, 2018): Huh, this is weird. `firejail --overlay --private="."` works for me, but e.g. `firejail --overlay --private="~/tmp"` doesn't.
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#1372
No description provided.