mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #958] Qutebrowser fails to load with qutebrowser.conf profile and webengine backend #650
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#650
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 @craftyguy on GitHub (Dec 5, 2016).
Original GitHub issue: https://github.com/netblue30/firejail/issues/958
Using firejail 0.9.44.2 and qutebrowser from git, along with an unmodified profile file, I get this when launching qutebrowser.
Qutebrowser runs fine in firejail when using the webkit backend.
I noticed some commits recently for qutebrowser specifically, so I built firejail from git (latest as of this edit) and still see the same issue.
@netblue30 commented on GitHub (Dec 8, 2016):
This is something new, it tries to rise privileges and install a suid sandbox. What happens if you run "firejail qutebrowser"? I assume this will use a different backend.
For webkit backend, in /etc/firejail/qutebrowser.profile you will need to comment out some of the lines there, it will look like this:
@craftyguy commented on GitHub (Dec 8, 2016):
Exactly, it defaults to using webkit backend (which works OK with firejail), but that's not a desirable backend to use with qutebrowser. The QT Webengine backend is based off of chromium, and supports sandboxing, which may be what that message is.
Do you see the issue I see if you run qutebrowser with
firejail qutebrowser --backend=webengine?@netblue30 commented on GitHub (Dec 9, 2016):
Just for me to clarify:
When you run "firejail qutebrowser", it uses webkit backend and the existing profile works fine.
When you run "firejail qutebrowser ---backend=webengine", it uses webengine backend based on chromium, and the profile needs to be modified.
It should be fine, basically it becomes a chromium browser.
@craftyguy commented on GitHub (Dec 9, 2016):
Your clarifying statement is correct. It seems like the webengine backend should run fine but my limited knowledge of the inner workings of qtwebengine and firejail have forced me to file this issue to seek help. Do you have any suggestions on how I can debug this further?
On December 9, 2016 5:10:43 AM PST, netblue30 notifications@github.com wrote:
@netblue30 commented on GitHub (Dec 10, 2016):
Try the profile I gave you when using webengine backend, if it works you are all set. You can modify /etc/profile/qutebrowser.profile or make a copy of that file and put it in ~/.config/firejail/qutebrowser.profile and modify it there.
@craftyguy commented on GitHub (Dec 10, 2016):
I created a 3rd profile based on the one you posted with changes in #957, and re-enabled commands one by one to get a more restrictive profile. Qutebrowser still fails to start with the above error if seccomp is enabled.
@craftyguy commented on GitHub (Dec 10, 2016):
In addition, I get the same error if I re-enable tracelog, which seems weird based on my understanding of what tracelog does..
@netblue30 commented on GitHub (Dec 11, 2016):
Yes, seccomp will kill it. The browser starts its own sandbox and needs to elevate privileges. Disable the following:
Just disable it. We have the same problem for Chromium browser, never got to the bottom of it.
@probonopd commented on GitHub (Aug 18, 2017):
Running into the same:
https://travis-ci.org/AppImage/AppImageHub/builds/266071961#L555
I am launching Firejail like this:
What do I need to do?
@smitsohu commented on GitHub (Dec 10, 2017):
@craftyguy There might be a chance to keep the Firejail seccomp filter along the
seccomp filtersandbox of QtWebEngineProcess.If you wanna it try out, replace
seccompin the qutebrowser profile with this long line:seccomp.drop @clock,@cpu-emulation,@debug,@module,@obsolete,@raw-io,@reboot,@resources,@swap,acct,add_key,bpf,fanotify_init,io_cancel,io_destroy,io_getevents,io_setup,io_submit,ioprio_set,kcmp,keyctl,mount,name_to_handle_at,nfsservctl,ni_syscall,open_by_handle_at,personality,pivot_root,process_vm_readv,ptrace,remap_file_pages,request_key,setdomainname,sethostname,syslog,umount,umount2,userfaultfd,vhangup,vmsplice