[GH-ISSUE #516] Create empty private /etc? #366

Closed
opened 2026-05-05 05:42:00 -06:00 by gitea-mirror · 5 comments
Owner

Originally created by @ghost on GitHub (May 14, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/516

Is it possible to create a private /etc with no files at all? You can with tmpfs, but that works only as root.

Is --private-etc with no arguments what we want?

Originally created by @ghost on GitHub (May 14, 2016). Original GitHub issue: https://github.com/netblue30/firejail/issues/516 Is it possible to create a private /etc with no files at all? You can with tmpfs, but that works only as root. Is `--private-etc` with no arguments what we want?
gitea-mirror 2026-05-05 05:42:00 -06:00
Author
Owner

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

If you give --private-etc a single file, and the file doesn't exist, your /etc directory will be a regular, empty tmpfs filesystem:

$ firejail --private-etc=blablabla
<!-- gh-comment-id:219253762 --> @netblue30 commented on GitHub (May 14, 2016): If you give --private-etc a single file, and the file doesn't exist, your /etc directory will be a regular, empty tmpfs filesystem: ``` $ firejail --private-etc=blablabla ```
Author
Owner

@ghost commented on GitHub (May 14, 2016):

I'm confirming this. Maybe this can be documented in the man pages.

<!-- gh-comment-id:219257966 --> @ghost commented on GitHub (May 14, 2016): I'm confirming this. Maybe this can be documented in the man pages.
Author
Owner

@netblue30 commented on GitHub (May 15, 2016):

Will do, thanks!

<!-- gh-comment-id:219282447 --> @netblue30 commented on GitHub (May 15, 2016): Will do, thanks!
Author
Owner

@netblue30 commented on GitHub (May 15, 2016):

All set!

<!-- gh-comment-id:219283820 --> @netblue30 commented on GitHub (May 15, 2016): All set!
Author
Owner

@ghost commented on GitHub (May 15, 2016):

I saw, awesome.

<!-- gh-comment-id:219283922 --> @ghost commented on GitHub (May 15, 2016): I saw, awesome.
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#366
No description provided.