From 4911e36ca55d1061a47b68e54ba2229d4c2c6c1a Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 13 Apr 2020 10:07:13 -0400 Subject: suport mkdir and mkfile for /run/user/ directory (#3346) --- src/man/firejail-profile.txt | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'src/man/firejail-profile.txt') diff --git a/src/man/firejail-profile.txt b/src/man/firejail-profile.txt index 6405fd301..df2d2a2e8 100644 --- a/src/man/firejail-profile.txt +++ b/src/man/firejail-profile.txt @@ -211,7 +211,7 @@ Disable /mnt, /media, /run/mount and /run/media access. /var/tmp directory is untouched. .TP \fBmkdir directory -Create a directory in user home or under /tmp before the sandbox is started. +Create a directory in user home, under /tmp, or under /run/user/ before the sandbox is started. The directory is created if it doesn't already exist. .br @@ -230,10 +230,18 @@ whitelist ~/.mozilla mkdir ~/.cache/mozilla/firefox .br whitelist ~/.cache/mozilla/firefox +.br + +.br +For files in /run/user/ use ${RUNUSER} macro: +.br + +.br +mkdir ${RUNUSER}/firejail-testing .TP \fBmkfile file -Similar to mkdir, this command creates a file in user home or under /tmp before the sandbox is started. -The file is created if it doesn't already exist. +Similar to mkdir, this command creates an empty file in user home, or /tmp, or under /run/user/ +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. -- cgit v1.2.3-54-g00ecf