Page 1 of 1

Firejail and Mint 19.3 (Solved)

Posted: Fri Feb 14, 2020 12:03 pm
by Cats
Hi guys,

I went from Mint 18.3 to 19.3 cinnamon yesterday, and am still working out some bugs. I'd like to firejail firefox but when I try I get:

"Error: Access was denied while trying to open files in your profile directory."

Firefox is working great, so I don't think it's a profile problem. Any help would be appreciated. :)

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 1:07 pm
by JoeFootball
Cats wrote: "Error: Access was denied while trying to open files in your profile directory."
Is that a Firejail error? Or a Firefox error?

How are you deploying Firefox within Firejail?

Did you run firecfg after you installed Firejail?

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 1:27 pm
by Cats
I'm using a launch icon on the desktop, so it's a firejail error. The command line is firejail firefox.
Did you run firecfg after you installed Firejail?
No, but I'll give it a try!

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 1:32 pm
by JoeFootball
Cats wrote: No, but I'll give it a try!
sudo firecfg

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 1:53 pm
by Cats
Ran the command, and now I'm getting the same error "You're fiefox profile cannot be loaded." from firefox. --- One step forward and two steps back? LOL

Firefox profiles.ini is located in the mozilla / firefox folder -- so it's not missing.

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 2:14 pm
by Pjotr
Try this:

1. Fix permissions in your /home:

Code: Select all

sudo chown -Rc $USER:$USER $HOME
2. Install the latest Firejail LTS:
https://easylinuxtipsproject.blogspot.c ... html#ID2.1
(item 2.1)

3. Test again.

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 2:33 pm
by Cats
I think I followed your steps ok Pjotr, but I'm getting a new error code of: no default.profile installed.
It's a new one.

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 2:36 pm
by Cats
I probably should mention I can't get thunderbird to firejail either. -- I might have messed something up when I deleted firejail yesterday wanting to do a clean install.

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 3:33 pm
by Cats
According to the web page below, I'm missing firejail-default that should be located in /etc/apparmor.d And activated with: # apparmor_parser -r /etc/apparmor.d/firejail-default

https://wiki.archlinux.org/index.php/Fi ... ntegration

So a quick question... Is this something I could add with copy and paste if I could find the text?

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 9:05 pm
by Cats
I reinstalled 19.3, and followed the sudo apt get lines from this post: viewtopic.php?t=273533 and now the parent terminal comes up and firefox starts. Is there a way I can check and make sure it's working?

Re: Firejail and Mint 19.3

Posted: Fri Feb 14, 2020 9:32 pm
by Cats
I get rid of the terminal and ff shuts down. It works! :)

Re: Firejail and Mint 19.3

Posted: Sat Feb 15, 2020 6:57 am
by JoeFootball
Cats wrote: Is there a way I can check and make sure it's working?
firejail --list will display all running instances.

Re: Firejail and Mint 19.3 (Solved)

Posted: Sat Feb 15, 2020 11:33 am
by Cats
Tried the command and I'm good. :D Thanks for the help.

Re: Firejail and Mint 19.3 (Solved)

Posted: Sat Feb 15, 2020 12:30 pm
by trytip
i have found out that if you build it from source it's a better option. i uninstalled the mint version which is in software manager (be sure there is no firejail on your system before building and create timeshift snapshot.
install build dependencies:

Code: Select all

sudo apt-get install git build-essential libapparmor-dev pkg-config
build firejail which will be installed in /usr/local

Code: Select all

git clone https://github.com/netblue30/firejail.git
cd firejail
./configure && make && sudo make install-strip
now any time you want to update, just use the build codes to refresh it
source: https://github.com/netblue30/firejail

Code: Select all

mint03@mint03:~$ firejail --version
firejail version 0.9.63

Compile time support:
	- AppArmor support is disabled
	- AppImage support is enabled
	- chroot support is enabled
	- file and directory whitelisting support is enabled
	- file transfer support is enabled
	- firetunnel support is enabled
	- networking support is enabled
	- overlayfs support is enabled
	- private-home support is enabled
	- seccomp-bpf support is enabled
	- user namespace support is enabled
	- X11 sandboxing support is enabled

mint03@mint03:~$