mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[GH-ISSUE #1980] firejail prevents id.fedoraproject.org redirection in firefox #1330
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#1330
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 @covex on GitHub (Jun 5, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1980
Using firejail for a long time, the whole time it happens, that when I want to login to some site using id.fedoraproject.org the redirection freezes and on firefox (59) quit, it crashes.
For example, using http://pagure.io/ clicking on Login should redirect you to an id.fedoraproject.org but it does not. Without firejail it works as expected. I did not found anything using firejail debug mode. Not sure what could be causing this.
@chiraag-nataraj commented on GitHub (Jun 5, 2018):
Huh. So I just tried this and it seems to be working with the profile I use. I'll give it a try with the default profile and report back.
@chiraag-nataraj commented on GitHub (Jun 5, 2018):
Okay, so it worked with the default profile as well. I'm also using Firefox 61b8 though, so idk if that is relevant.
Does anything appear in the syslog? It could be that some weird syscall is required (it sounds like the seccomp filter is kicking in and blocking something firefox needs, which forces it to crash).
@covex commented on GitHub (Jun 5, 2018):
OK, here is what I found in the syslog when I clicked at Login:
@covex commented on GitHub (Jun 5, 2018):
Then when I try to quit firefox it crashes with core dump:
@chiraag-nataraj commented on GitHub (Jun 5, 2018):
If you do a
firejail --debug-syscalls | grep 250, does it give youkeyctl? Doesfirejail --ignore=seccomp firefoxwork properly?@covex commented on GitHub (Jun 5, 2018):
with --ignore=seccomp the redirection works, no crash.
@chiraag-nataraj commented on GitHub (Jun 5, 2018):
Okay, so my suspicion was correct. This is really weird, though, since it means firefox is performing manipulations of the kernel's keyring... @netblue30, any idea why this could be happening?
@covex commented on GitHub (Jun 5, 2018):
id.fedoraproject.org is a fedora OpenID site serving as a centralized authorization facility for fedora infrastructure. I could imagine it may be trying to search some keys via keyctl. I may ask on fedora lists.
So to solve this, should I add a seccomp.keep keyctl to my firefox profile?
@chiraag-nataraj commented on GitHub (Jun 5, 2018):
That doesn't make any sense, since it worked perfectly fine here on Debian (unless you're saying you weren't able to log in? I didn't try that, since I don't have Fedora credentials).
No, that would only allow
keyctl😜 The easiest is probably to edit/etc/firejail/firefox-common.profileto not includekeyctl.@chiraag-nataraj commented on GitHub (Jun 7, 2018):
@covex, did removing
keyctlfrom the list of syscalls in/etc/firejail/firefox.profilework?@covex commented on GitHub (Jun 8, 2018):
I am using an older version of firejail 0.9.48 there is nothing like this in any firefox config. I was trying to update to latest version 0.9.54, however there is a new feature to specify users that may use firejail in firejail.users, but even thou I configured it with firecfg and added username there, the user was not able to start the firejail. So I gave up and downgraded to 0.9.48, but there is no keyctl in the config. I do not have a solution ATM.
@chiraag-nataraj commented on GitHub (Jun 12, 2018):
Try this instead of the
seccompline:@chiraag-nataraj commented on GitHub (Jul 15, 2018):
@covex Did you try that
seccompline? Did it work?@chiraag-nataraj commented on GitHub (Jul 21, 2018):
Closing because of no response. @covex, feel free to re-open if you were able to try that
seccompline.