aboutsummaryrefslogtreecommitdiffstats
path: root/src/man/firejail.txt
diff options
context:
space:
mode:
authorLibravatar Jeff Squyres <jsquyres@users.noreply.github.com>2020-06-04 13:41:32 -0400
committerLibravatar GitHub <noreply@github.com>2020-06-04 17:41:32 +0000
commit40d3604f703ea07e3bb5feace23975fa766f5080 (patch)
treed323a2bcadf6c589ebac2eb23e62e054eacd7146 /src/man/firejail.txt
parentfirecfg: Only use fix_desktop_files automatically when run through sudo (#3382) (diff)
downloadfirejail-40d3604f703ea07e3bb5feace23975fa766f5080.tar.gz
firejail-40d3604f703ea07e3bb5feace23975fa766f5080.tar.zst
firejail-40d3604f703ea07e3bb5feace23975fa766f5080.zip
man: minor clarifications to man pages (#3445)
Add verbiage to the man pages clarifying that the files/directories in the lists given to options such as --private-bin must be relative to the directory that is being limited (e.g., --private-opt requires a list of files/directories that are relative to /opt). Signed-off-by: Jeff Squyres <jeff@squyres.com>
Diffstat (limited to 'src/man/firejail.txt')
-rw-r--r--src/man/firejail.txt19
1 files changed, 16 insertions, 3 deletions
diff --git a/src/man/firejail.txt b/src/man/firejail.txt
index 982b40d89..647569354 100644
--- a/src/man/firejail.txt
+++ b/src/man/firejail.txt
@@ -1696,7 +1696,9 @@ $ firejail \-\-private=/home/netblue/firefox-home firefox
1696.TP 1696.TP
1697\fB\-\-private-bin=file,file 1697\fB\-\-private-bin=file,file
1698Build a new /bin in a temporary filesystem, and copy the programs in the list. 1698Build a new /bin in a temporary filesystem, and copy the programs in the list.
1699If no listed file is found, /bin directory will be empty. 1699The files in the list must be expressed as relative to the /bin,
1700/sbin, /usr/bin, /usr/sbin, or /usr/local/bin directories.
1701If no listed files are found, /bin directory will be empty.
1700The same directory is also bind-mounted over /sbin, /usr/bin, /usr/sbin and /usr/local/bin. 1702The same directory is also bind-mounted over /sbin, /usr/bin, /usr/sbin and /usr/local/bin.
1701All modifications are discarded when the sandbox is closed. File globbing is supported, 1703All modifications are discarded when the sandbox is closed. File globbing is supported,
1702see \fBFILE GLOBBING\fR section for more details. 1704see \fBFILE GLOBBING\fR section for more details.
@@ -1792,6 +1794,8 @@ $
1792\fB\-\-private-etc=file,directory 1794\fB\-\-private-etc=file,directory
1793Build a new /etc in a temporary 1795Build a new /etc in a temporary
1794filesystem, and copy the files and directories in the list. 1796filesystem, and copy the files and directories in the list.
1797The files and directories in the list must be expressed as relative to
1798the /etc directory.
1795If no listed file is found, /etc directory will be empty. 1799If no listed file is found, /etc directory will be empty.
1796All modifications are discarded when the sandbox is closed. 1800All modifications are discarded when the sandbox is closed.
1797.br 1801.br
@@ -1801,13 +1805,16 @@ Example:
1801.br 1805.br
1802$ firejail --private-etc=group,hostname,localtime, \\ 1806$ firejail --private-etc=group,hostname,localtime, \\
1803.br 1807.br
1804nsswitch.conf,passwd,resolv.conf 1808nsswitch.conf,passwd,resolv.conf,default/motd-news
1805 1809
1806.TP 1810.TP
1807\fB\-\-private-home=file,directory 1811\fB\-\-private-home=file,directory
1808Build a new user home in a temporary 1812Build a new user home in a temporary
1809filesystem, and copy the files and directories in the list in the 1813filesystem, and copy the files and directories in the list in the
1810new home. All modifications are discarded when the sandbox is 1814new home.
1815The files and directories in the list must be expressed as relative to
1816the current user's home directory.
1817All modifications are discarded when the sandbox is
1811closed. 1818closed.
1812.br 1819.br
1813 1820
@@ -1819,6 +1826,8 @@ $ firejail \-\-private-home=.mozilla firefox
1819.TP 1826.TP
1820\fB\-\-private-lib=file,directory 1827\fB\-\-private-lib=file,directory
1821This feature is currently under heavy development. Only amd64 platforms are supported at this moment. 1828This feature is currently under heavy development. Only amd64 platforms are supported at this moment.
1829The files and directories in the list must be expressed as relative to
1830the /lib directory.
1822The idea is to build a new /lib in a temporary filesystem, 1831The idea is to build a new /lib in a temporary filesystem,
1823with only the library files necessary to run the application. 1832with only the library files necessary to run the application.
1824It could be as simple as: 1833It could be as simple as:
@@ -1870,6 +1879,8 @@ $
1870\fB\-\-private-opt=file,directory 1879\fB\-\-private-opt=file,directory
1871Build a new /opt in a temporary 1880Build a new /opt in a temporary
1872filesystem, and copy the files and directories in the list. 1881filesystem, and copy the files and directories in the list.
1882The files and directories in the list must be expressed as relative to
1883the /opt directory.
1873If no listed file is found, /opt directory will be empty. 1884If no listed file is found, /opt directory will be empty.
1874All modifications are discarded when the sandbox is closed. 1885All modifications are discarded when the sandbox is closed.
1875.br 1886.br
@@ -1883,6 +1894,8 @@ $ firejail --private-opt=firefox /opt/firefox/firefox
1883\fB\-\-private-srv=file,directory 1894\fB\-\-private-srv=file,directory
1884Build a new /srv in a temporary 1895Build a new /srv in a temporary
1885filesystem, and copy the files and directories in the list. 1896filesystem, and copy the files and directories in the list.
1897The files and directories in the list must be expressed as relative to
1898the /srv directory.
1886If no listed file is found, /srv directory will be empty. 1899If no listed file is found, /srv directory will be empty.
1887All modifications are discarded when the sandbox is closed. 1900All modifications are discarded when the sandbox is closed.
1888.br 1901.br