From 129af459ad895b329afb62f3fe9cbcbd6a578072 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 4 Dec 2015 12:36:44 -0500 Subject: --profile-path option --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) (limited to 'README.md') diff --git a/README.md b/README.md index 832fece06..a8ad27da3 100644 --- a/README.md +++ b/README.md @@ -112,4 +112,25 @@ Dec 3 11:43:25 debian firejail[70]: blacklist violation - sandbox 26370, exe fi Dec 3 11:46:17 debian firejail[70]: blacklist violation - sandbox 26370, exe firefox, syscall opendir, path /boot [...] -````` \ No newline at end of file +````` + +### --profile-path +For various reasons some users might want to keep the profile files in +a different directory. Using --profile-path command line option, +Firejail can be instructed to look for profiles into this directory. + +This is an example of relocating the profile files into a new directory, +/home/netblue/myprofiles. Start by creating the new directory and +copy all the profile files in: +````` +$ mkdir ~/myprofiles && cd ~/myprofiles && cp /etc/firejail/* . +````` +Using sed utility, modify the absolute paths for include commands: +````` +$ sed -i "s/\/etc\/firejail/\/home\/netblue\/myprofiles/g" *.profile +$ sed -i "s/\/etc\/firejail/\/home\/netblue\/myprofiles/g" *.inc +````` +Start Firejail using the new path: +````` +$ firejail --profile-path=~/myprofile +````` -- cgit v1.2.3-54-g00ecf