From 991e9064904f2fc4d171b19342a08389bb7c7067 Mon Sep 17 00:00:00 2001 From: smitsohu Date: Tue, 12 Jun 2018 03:39:52 +0200 Subject: update man page (private-cache) --- src/firejail/fs.c | 6 +++--- src/man/firejail-profile.txt | 4 ++++ src/man/firejail.txt | 11 +++++++++++ 3 files changed, 18 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/firejail/fs.c b/src/firejail/fs.c index 2546ab0bb..0e104699f 100644 --- a/src/firejail/fs.c +++ b/src/firejail/fs.c @@ -1350,15 +1350,15 @@ void fs_private_cache(void) { // check if ~/.cache is a valid destination struct stat s; if (is_link(cache)) { - fwarning("~/.cache is a symbolic link, tmpfs not mounted\n"); + fwarning("user .cache is a symbolic link, tmpfs not mounted\n"); return; } if (stat(cache, &s) == -1 || !S_ISDIR(s.st_mode)) { - fwarning("no ~/.cache directory found, tmpfs not mounted\n"); + fwarning("no user .cache directory found, tmpfs not mounted\n"); return; } if (s.st_uid != getuid()) { - fwarning("~/.cache is not owned by user, tmpfs not mounted\n"); + fwarning("user .cache is not owned by current user, tmpfs not mounted\n"); return; } diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt index 7bfa3a019..ae7085f24 100644 --- a/src/man/firejail-profile.txt +++ b/src/man/firejail-profile.txt @@ -221,6 +221,10 @@ filesystem, and copy the files and directories in the list in the new home. All modifications are discarded when the sandbox is closed. .TP +\fBprivate-cache +Mount an empty temporary filesystem on top of the .cache directory in user home. All +modifications are discarded when the sandbox is closed. +.TP \fBprivate-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. diff --git a/src/man/firejail.txt b/src/man/firejail.txt index aad678aa4..0ac5854f7 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt @@ -1311,6 +1311,17 @@ Example: .br $ firejail \-\-private-home=.mozilla firefox +.TP +\fB\-\-private-cache +Mount an empty temporary filesystem on top of the .cache directory in user home. All +modifications are discarded when the sandbox is closed. +.br + +.br +Example: +.br +$ firejail \-\-private-cache openbox + .TP \fB\-\-private-bin=file,file Build a new /bin in a temporary filesystem, and copy the programs in the list. -- cgit v1.2.3-54-g00ecf