From 73525015e11100db0972d40c02e35fb682a6c44a Mon Sep 17 00:00:00 2001 From: Antonio Russo Date: Sat, 11 Apr 2020 14:12:53 -0600 Subject: Clarify that file globbing occurs only at start firejail can blacklist (and now also whitelist) files based on glob pattern. This pattern is evaluated at firejail start, and not updated at run time. This patch documents this behavior. --- src/man/firejail-profile.txt | 5 +++-- src/man/firejail.txt | 13 ++++++++++--- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt index 0d83b8fd7..6405fd301 100644 --- a/src/man/firejail-profile.txt +++ b/src/man/firejail-profile.txt @@ -165,8 +165,9 @@ host filesystem. Each line describes a file/directory that is inaccessible (\fBblacklist\fR), a read-only file or directory (\fBread-only\fR), a tmpfs mounted on top of an existing directory (\fBtmpfs\fR), or mount-bind a directory or file on top of another directory or file (\fBbind\fR). -Use \fBprivate\fR to set private mode. -File globbing is supported, and PATH and HOME directories are searched. +Use \fBprivate\fR to set private mode. File globbing is supported, and PATH and +HOME directories are searched, see the \fBfirejail\f(1) \fBFILE GLOBBING\fR section +for more details. Examples: .TP \fBblacklist file_or_directory diff --git a/src/man/firejail.txt b/src/man/firejail.txt index f5042b79a..fae97ceb7 100644 --- a/src/man/firejail.txt +++ b/src/man/firejail.txt @@ -2835,7 +2835,11 @@ List all sandboxed processes. .SH FILE GLOBBING .TP -Globbing is the operation that expands a wildcard pattern into the list of pathnames matching the pattern. Matching is defined by: +Globbing is the operation that expands a wildcard pattern into the +list of pathnames matching the pattern. This pattern is matched at +firejail \fBstart\fR, and is NOT UPDATED at runtime. \fBFiles matching +a blacklist, but created after firejail start will be accessible within +the jail.\fR Matching is defined by: .br .br @@ -2846,12 +2850,15 @@ Globbing is the operation that expands a wildcard pattern into the list of pathn - '[' denotes a range of characters .br .TP -The globbing feature is implemented using glibc glob command. For more information on the wildcard syntax see man 7 glob. +The globbing feature is implemented using glibc glob command. For +more information on the wildcard syntax see man 7 glob. .br .br .TP -The following command line options are supported: \-\-blacklist, \-\-private-bin, \-\-noexec, \-\-read-only, \-\-read-write, \-\-tmpfs, and \-\-whitelist. +The following command line options are supported: \-\-blacklist, +\-\-private-bin, \-\-noexec, \-\-read-only, \-\-read-write, +\-\-tmpfs, and \-\-whitelist. .br .br -- cgit v1.2.3-54-g00ecf