From 28b37ef3384b62b83ad3ab5d0e71997f1ca4ef6c Mon Sep 17 00:00:00 2001 From: startx2017 Date: Wed, 2 Sep 2020 07:47:32 -0400 Subject: manpage: remove overlayfs from non-overlayfs builds --- src/man/firejail-profile.txt | 2 ++ src/man/firejail.txt | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt index 0da2a0ea7..c86d7f119 100644 --- a/src/man/firejail-profile.txt +++ b/src/man/firejail-profile.txt @@ -245,6 +245,7 @@ before the sandbox is started. The file is created if it doesn't already exist. .TP \fBnoexec file_or_directory Remount the file or the directory noexec, nodev and nosuid. +#ifdef HAVE_OVERLAYFS .TP \fBoverlay Mount a filesystem overlay on top of the current filesystem. @@ -257,6 +258,7 @@ The overlay is stored in $HOME/.firejail/name directory. \fBoverlay-tmpfs Mount a filesystem overlay on top of the current filesystem. All filesystem modifications are discarded when the sandbox is closed. +#endif .TP \fBprivate Mount new /root and /home/user directories in temporary diff --git a/src/man/firejail.txt b/src/man/firejail.txt index 2fdf21a31..89a4c7990 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt @@ -1609,6 +1609,7 @@ $ ls -l sandboxlog* \fB\-\-output-stderr=logfile Similar to \-\-output, but stderr is also stored. +#ifdef HAVE_OVERLAYFS .TP \fB\-\-overlay Mount a filesystem overlay on top of the current filesystem. Unlike the regular filesystem container, @@ -1675,7 +1676,7 @@ This option is not available on Grsecurity systems. Example: .br $ firejail \-\-overlay-tmpfs firefox - +#endif .TP \fB\-\-private Mount new /root and /home/user directories in temporary -- cgit v1.2.3-54-g00ecf