From 38c8f9151c8874248a06ded439d74678f748df1e Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 12 Oct 2015 07:58:56 -0400 Subject: --private-bin --- src/man/firejail-profile.txt | 4 ++++ src/man/firejail.txt | 19 +++++++++++++++++++ 2 files changed, 23 insertions(+) (limited to 'src/man') diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt index e470cab36..1369fdc91 100644 --- a/src/man/firejail-profile.txt +++ b/src/man/firejail-profile.txt @@ -133,6 +133,10 @@ Mount new /root and /home/user directories in temporary filesystems. All modifications are discarded when the sandbox is closed. .TP +\f\private-bin file,file +Build a new /bin in a temporary filesystem, and copy the programs in the list. +The same directory is also bind-mounted over /sbin, /usr/bin and /usr/sbin. +.TP \f\private directory Use directory as user home. .TP diff --git a/src/man/firejail.txt b/src/man/firejail.txt index af3a18746..00360e65b 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt @@ -734,6 +734,25 @@ Example: .br $ firejail \-\-private=/home/netblue/firefox-home firefox +.TP +\fB\-\-private-bin=file,file +Build a new /bin in a temporary filesystem, and copy the programs in the list. +The same directory is also bind-mounted over /sbin, /usr/bin and /usr/sbin. +.br + +.br +Example: +.br +$ firejail \-\-private-bin=bash,sed,ls,cat +.br +Parent pid 20841, child pid 20842 +.br +Child process initialized +.br +$ ls /bin +.br +bash cat ls sed + .TP \fB\-\-private-keep=file,directory This option is deprecated, use private-home instead -- cgit v1.2.3-70-g09d2