mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1699] Can't launch qBittorrent and okular with firejail aymore #1147
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#1147
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Alin1agh on GitHub (Dec 29, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1699
After last update, can't launch qbittorrent and okular with firejail. (Arch/kde/x64)
[user@machine]: ~>$ firejail qbittorrent
Reading profile /etc/firejail/qbittorrent.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-common.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 1892, child pid 1893
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Child process initialized in 66.07 ms
Icon theme "gnome" not found.
[user@machine]: ~>$ firejail okular
Reading profile /etc/firejail/okular.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 1980, child pid 1981
Warning: skipping alternatives for private /etc
Warning: skipping cups for private /etc
Private /etc installed in 2.44 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Child process initialized in 58.15 ms
Icon theme "gnome" not found.
Icon theme "gnome" not found.
mprotect failed in ExecutableAllocator::makeExecutable: Permission denied
*** stack smashing detected ***: terminated
Parent is shutting down, bye...
@smitsohu commented on GitHub (Dec 30, 2017):
Could you create ~/.config/firejail/qbittorrent.profile and paste this into that file?
For Okular run
sudo echo "env QML_DISABLE_DISK_CACHE=1" >> /etc/firejail/disable-common.incand try it again.@NathanC commented on GitHub (Dec 30, 2017):
@smitsohu I just tried appending that above command to
disable-common.incfor Okular (I was having the same issue as @Alin1agh ), and now I get this:@smitsohu commented on GitHub (Jan 1, 2018):
@NathanC Thanks for the feedback. Could you comment
env QML_DISABLE_DISK_CACHE=1in disable-common.inc and run in bash:diff <(firejail --quiet printenv) <(firejail --quiet --env=QML_DISABLE_DISK_CACHE=1 printenv)(edited)
The only output should be
> QML_DISABLE_DISK_CACHE=1.@Alin1agh commented on GitHub (Jan 3, 2018):
qBittorrent works fine, i've followed your instructions.
For okular i did this:
sudo echo "env QML_DISABLE_DISK_CACHE=1" >> /etc/firejail/disable-common.inc and try it again.
I commented env QML_DISABLE_DISK_CACHE=1 in disable-common.inc
[user@machine]: ~>$ diff <(firejail --quiet printenv) <(firejail --quiet --env=QML_DISABLE_DISK_CACHE=1 printenv)
4a5
The output was: > QML_DISABLE_DISK_CACHE=1
[user@machine]: ~>$ firejail okular
Reading profile /etc/firejail/okular.profile
Reading profile /etc/firejail/disable-common.inc
Reading profile /etc/firejail/disable-devel.inc
Reading profile /etc/firejail/disable-passwdmgr.inc
Reading profile /etc/firejail/disable-programs.inc
Reading profile /etc/firejail/whitelist-var-common.inc
Parent pid 6118, child pid 6119
Warning: skipping alternatives for private /etc
Warning: skipping cups for private /etc
Private /etc installed in 2.52 ms
Warning: /sbin directory link was not blacklisted
Warning: /usr/sbin directory link was not blacklisted
Blacklist violations are logged to syslog
Child process initialized in 40.44 ms
Icon theme "gnome" not found.
Icon theme "gnome" not found.
mprotect failed in ExecutableAllocator::makeExecutable: Permission denied
*** stack smashing detected ***: terminated
Parent is shutting down, bye...
@smitsohu commented on GitHub (Jan 4, 2018):
@Alin1agh Ok, if Okular doesn't launch with
QML_DISABLE_DISK_CACHE=1uncommented in /etc/firejail/disable-common.inc, can you try iffirejail --ignore=noexec okularworks?Failing all of this, can you please navigate to /etc/firejail/okular.profile? In okular.profile comment everything and then uncomment line after line, checking after each step if Okular starts or fails. Usually it is a single line which causes the problem, and you will find it quickly this way.
@Alin1agh commented on GitHub (Jan 5, 2018):
@smitsohu , it works with QML_DISABLE_DISK_CACHE=1 uncommented. I was trying to follow instructions you already gave to @NathanC.
Thank you very much.