Firejail: [Question] How to disable firejail temporarily?

Created on 9 Feb 2020  路  3Comments  路  Source: netblue30/firejail

I would like to test something on my system but I am afraid firejail may interfere. Is there an easy way to disable firejail (after a reboot probably) and to reenable it later?
Something like firejail --disable or "systemctl disable firejail"? :)

Simply uninstalling seems not to be the desired solution as I want to keep all settings etc.

question

All 3 comments

$ sudo firecfg --clean
$ reboot
$ sudo firecfg # enable

Simply uninstalling seems not to be the desired solution as I want to keep all settings etc.

You .local files and profiles in ~/.config/firejail are not affected by this.

As sudo firecfg --clean removes all kind of symlinks and sudo firecfg adds symlinks for which firejail has profiles again,
I would have to manually write a script which sets all symlinks again to the certain apps only, which I'd like to firejail.
It seems firejail does not remember those.

Thanks!

#!/usr/bin/env bash
PROGRAMS=("firefox" "thunderbird" "libreoffice")
for program in "${PROGRAMS[@]}"; do
        sudo ln -s /usr/bin/firejail /usr/local/bin/"$program"
done
Was this page helpful?
0 / 5 - 0 ratings

Related issues

reinerh picture reinerh  路  3Comments

SkewedZeppelin picture SkewedZeppelin  路  3Comments

ghost picture ghost  路  3Comments

francoism90 picture francoism90  路  4Comments

reinerh picture reinerh  路  3Comments