aboutsummaryrefslogtreecommitdiffstats
path: root/src/man
diff options
context:
space:
mode:
authorLibravatar smitsohu <smitsohu@gmail.com>2022-01-14 20:19:25 +0100
committerLibravatar smitsohu <smitsohu@gmail.com>2022-01-14 23:58:43 +0100
commitc764520b5aa343c00c3a73633511df039645973c (patch)
treeefa4f9e44786d571079e29e9a0223107893e0822 /src/man
parentrefactor closing of file descriptors (diff)
downloadfirejail-c764520b5aa343c00c3a73633511df039645973c.tar.gz
firejail-c764520b5aa343c00c3a73633511df039645973c.tar.zst
firejail-c764520b5aa343c00c3a73633511df039645973c.zip
keep-fd option (#4845)
Diffstat (limited to 'src/man')
-rw-r--r--src/man/firejail-profile.txt5
-rw-r--r--src/man/firejail.txt20
2 files changed, 25 insertions, 0 deletions
diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt
index 71dab18ba..29f0fe4e4 100644
--- a/src/man/firejail-profile.txt
+++ b/src/man/firejail-profile.txt
@@ -724,6 +724,11 @@ env CFLAGS="-W -Wall -Werror"
724.TP 724.TP
725\fBipc-namespace 725\fBipc-namespace
726Enable IPC namespace. 726Enable IPC namespace.
727
728.TP
729\fBkeep-fd
730Inherit open file descriptors to sandbox.
731
727.TP 732.TP
728\fBname sandboxname 733\fBname sandboxname
729Set sandbox name. Example: 734Set sandbox name. Example:
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 80487a49d..a5704e995 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -1104,6 +1104,26 @@ Example:
1104$ firejail --keep-dev-shm --private-dev 1104$ firejail --keep-dev-shm --private-dev
1105 1105
1106.TP 1106.TP
1107\fB\-\-keep-fd=all
1108Inherit all open file descriptors to the sandbox. By default only file descriptors 0, 1 and 2 are inherited to the sandbox, and all other file descriptors are closed.
1109.br
1110
1111.br
1112Example:
1113.br
1114$ firejail --keep-fd=all
1115
1116.TP
1117\fB\-\-keep-fd=file_descriptor
1118Don't close specified open file descriptors. By default only file descriptors 0, 1 and 2 are inherited to the sandbox, and all other file descriptors are closed.
1119.br
1120
1121.br
1122Example:
1123.br
1124$ firejail --keep-fd=3,4,5
1125
1126.TP
1107\fB\-\-keep-var-tmp 1127\fB\-\-keep-var-tmp
1108/var/tmp directory is untouched. 1128/var/tmp directory is untouched.
1109.br 1129.br