mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
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#2604
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 @bardacuda on GitHub (May 14, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4279
The browser integration broke 2 or 3 months ago.
The issue is still present when runningfirejail --noprofile firefoxThe issue isn't present when running
firejail --noprofile firefoxI did not try disabling various options in
/etc/firejail/firefox.profileas I don't really know what I'm doing and don't want to break things further.What I did to was add this line to my
/etc/firejail/firefox.localfilewhitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServerThis restored partial functionality, where if keepassxc was running before starting firefox, then communication/key exchange between the two will work as expected. However, if firefox was running first (the more common scenario for me; as I tend to keep my browser open; but close keepass, and unmount the drive the database is stored on when I'm not using it), then no communication/key exchange is possible.
I have also tried adding the following two lines to my
/etc/firejail/firefox.localas seems to be suggested in https://github.com/netblue30/firejail/issues/3952 (although I'm not clear iffirefox.localis the file I'm supposed to be adding those lines to):private-bin bash,dbus-launch,dbus-send,env,firefox,sh,which,keepassxc-proxyignore include whitelist-runuser-common.incDoing so does not allow key exchange to work when firefox was running before starting keepassxc. Currently I have those 2 lines commented out though, and I'm at a loss for what to try next.
When running firefox outside of firejail the keepassxc browser integration works as intended.
@rusty-snake commented on GitHub (May 14, 2021):
Then it's either in the keepassxc.profile or unrelated to firejail.[next quote]Can you try try running firefox with the noprofile.profile. 😕
c9e7fe8ab3/etc/profile-a-l/firefox.profile (L26)This was a design decision made in #3952/#3984 which keeps firefox.profile tighter.
Good summary (IMHO) of the ways you have: https://github.com/netblue30/firejail/issues/3952#issuecomment-774717729
If you enabled
private-bin, you need to addkeepassxc-proxy. If you didn't enabledprivate-binyou don't need this line (orprivate-bin keepassxc-proxy)@bardacuda commented on GitHub (May 15, 2021):
That works:
https://imgbox.com/vICOXQT3
Ok but I'd like to implement a workaround if I can, even if I have to loosen the restrictions a little.
I basically just copied off of that issue.
I just added that whole line in case I needed to for the workaround, but it didn't change anything in my case.
@rusty-snake commented on GitHub (May 15, 2021):
Good. Does this firefox.local work?
Do you have any other relevant .locals?
@bardacuda commented on GitHub (May 15, 2021):
Hey hey, yeah that works even with the regular
firefox.profileprofileI didn't explicitly make any myself, and there are no other ones that I can see in
/etc/firejail/EDIT: Okay, so running with only
ignore include whitelist-runuser-common.incworks too. I don't need to havewritable-run-userin there for it to work.If I have both:
ignore include whitelist-runuser-common.inc, followed bywhitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServeror only:
whitelist ${RUNUSER}/org.keepassxc.KeePassXC.BrowserServer,that's when I only get partial functionality (keepass has to be open first).
EDIT2: I also just tested again by starting firefox first using
firejail --noprofile firefoxand it did work, so now I'm confused too. Maybe I typo'ed or messed up the syntax when I first did this, before making my original post 😳. Sorry for the confusion and thanks for the help!