aboutsummaryrefslogtreecommitdiffstats
path: root/src/man
diff options
context:
space:
mode:
authorLibravatar Antoine Catton <devel@antoine.catton.fr>2023-01-30 23:55:49 +0100
committerLibravatar Antoine Catton <devel@antoine.catton.fr>2023-02-03 23:11:18 +0100
commitd0a12f27d650ebed63f14102baa671f3655b50c8 (patch)
treed9acf7ff384a7bae5f8f4fc6ed687241f1af5eff /src/man
parenttesting (diff)
downloadfirejail-d0a12f27d650ebed63f14102baa671f3655b50c8.tar.gz
firejail-d0a12f27d650ebed63f14102baa671f3655b50c8.tar.zst
firejail-d0a12f27d650ebed63f14102baa671f3655b50c8.zip
feature: add 'keep-shell-rc' flag and option
This fixes #1127. This allow a user to provide their own zshrc/bashrc inside the jail. This is very useful when using firejail to develop and prevent bad pip packages to access your system.
Diffstat (limited to 'src/man')
-rw-r--r--src/man/firejail-profile.txt3
-rw-r--r--src/man/firejail.txt8
2 files changed, 11 insertions, 0 deletions
diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt
index 5b16179ac..3fa07d1ee 100644
--- a/src/man/firejail-profile.txt
+++ b/src/man/firejail-profile.txt
@@ -288,6 +288,9 @@ pulse servers or non-standard socket paths.
288\fBkeep-dev-shm 288\fBkeep-dev-shm
289/dev/shm directory is untouched (even with private-dev). 289/dev/shm directory is untouched (even with private-dev).
290.TP 290.TP
291\fBkeep-shell-rc
292Do not copy shell rc files (such as ~/.bashrc and ~/.zshrc) from /etc/skel.
293.TP
291\fBkeep-var-tmp 294\fBkeep-var-tmp
292/var/tmp directory is untouched. 295/var/tmp directory is untouched.
293.TP 296.TP
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 1b051ab57..6068c9ff4 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -1224,6 +1224,14 @@ Example:
1224$ firejail --keep-fd=3,4,5 1224$ firejail --keep-fd=3,4,5
1225 1225
1226.TP 1226.TP
1227\fB\-\-keep-shell-rc
1228By default, when using a private home directory, firejail copies files from the
1229system's user home template (/etc/skel) into it, which overrides attempts to
1230whitelist the original files (such as ~/.bashrc and ~/.zshrc).
1231This option disables this feature, and enables the user to whitelist the
1232original files.
1233
1234.TP
1227\fB\-\-keep-var-tmp 1235\fB\-\-keep-var-tmp
1228/var/tmp directory is untouched. 1236/var/tmp directory is untouched.
1229.br 1237.br