mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #681] [MERGED] add --private-template=directory option #3714
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#3714
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?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/681
Author: @nextime
Created: 8/4/2016
Status: ✅ Merged
Merged: 8/4/2016
Merged by: @netblue30
Base:
master← Head:master📝 Commits (5)
15b4792Add --private-templatebc8314cFix minor bugs8f51240Make copydir work as expected841c794Fix profile for --private-template713807eFix dir creation owner📊 Changes
7 files changed (+154 additions, -2 deletions)
View changed files
📝
src/firejail/firejail.h(+6 -1)📝
src/firejail/fs_home.c(+95 -0)📝
src/firejail/main.c(+24 -1)📝
src/firejail/profile.c(+11 -0)📝
src/firejail/sandbox.c(+3 -0)📝
src/firejail/usage.c(+3 -0)📝
src/man/firejail.txt(+12 -0)📄 Description
--private mount a tmpfs over the user home, so, things like browser extensions and configurations are back to the defaults and you cannot pre-configure it easily.
--private=directory, on the other side, make the user home persistent.
--private-template=directory aim to /opt/firejail/templates/usernamebe an alternative, it act like --private mounting a tmpfs over the user home, and then it copy recursively all the files and dirs from a template directory to the created empty user home.
This way you can put, for example, a preconfigured .config/cromium directory let's says in /opt/firejail/templates/username, and then use
firejail --private-template=/opt/firejail/templates/username cromiumNOTE: as the copy from template is done after mounting the tmpfs to mask the user home, the template directory cannot be copied from inside the original user home.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.