-
Notifications
You must be signed in to change notification settings - Fork 567
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
gimp: failure due to seccomp (needs mbind syscall) #2681
Comments
I cannot reproduce this. |
@SkewedZeppelin Using AppArmor |
Does Thanks. |
@smitsohu Yup:
|
Ok, then |
@smitsohu |
@carloabelli Cool, thanks! Now the question is why it is failing for you. As this is not caused by AppArmor and there are no proprietary video drivers, another wild guess would be OpenCL... do you have OpenCL enabled on your system? It seems there is an evironment variable to turn OpenCL off in Gimp, could you please try |
@smitsohu I don't believe I have OpenCL enabled. Running with that env variable did not resolve the issue. |
Ok. How does the output of |
is the default seccomp filter just without |
Unfortunately there is no output before it stops responding with the verbose flag. Adding gimp.local with those contents does allow gimp to run. |
Closing for now, since there is a workaround. |
I don't have anything against this per se, but my gimp runs just fine on Arch/Ubuntu with seccomp and doesn't need this at all. #2681 had a workaround, so I wonder why we merged this for everybody while the OP can use 'seccomp !mbind' in gimp.local. Or am I missing something here? |
@glitsj16 I was wondering that too... |
@glitsj16 @Fred-Barclay I wasn't sure how wide ranging the issue is, so if it's too isolated I'd be happy to revert this (perhaps a comment should be added about allowing mbind in some cases). Also happy to help figure out exactly what it is about my setup that causes this. |
@carloabelli No worries. If we can reproduce, we already have a fix. If we cannot, we can reverse later on. But indeed, let's try to determine why your firejailed gimp hangs exactly. I assume both have been updated since your original report. Can you provide details on the environment in which this occurs please? Desktop environment, using Xorg or Wayland, content of gimp.local if you have that etcetera. For example, a memory-deny-write-execute in gimp.local could make it hang.
Those look like AppArmor. Have you tried --ignore=apparmor yet (using the original full seccomp obviously)? |
@glitsj16 Sounds good. I'm currently running Arch Linux with sway as my window manager (so wayland). GIMP version 2.10.14 and firejail version 0.9.62. Currently my gimp.local just contains |
@carloabelli Thanks for the update. I assume you still get the same syscall 237. Sway has Xwayland support correct? It's just a shot in the dark, but do you get the same issue/syscall when running GIMP under X11? I run the same GIMP version on Arch under GNOME Wayland and nothing indicates it needs access to kernel memory or NUMA settings, which is what mbind does if I'm not mistaken. Under X11 just the same, a rather exceptionally clean, silent run. Do you run the stock Arch kernel? Default factory settings for GIMP? As you notice, at the moment I'm clueless as to what might cause this for you. No need to respond to all these questions if they don't trigger any change (for the better). We'll just keep tracking this and see if other collaborators/users chime in. Regards! |
@glitsj16 Yup looks to be the same issue. Sway does have Xwayland support. I am running the hardened arch kernel so maybe that could be it. Stock GIMP. Also pretty stumped what this could be. When I have more time I'll try running with the stock kernel and also X11 to see if that helps and report back. Thanks for your suggestions! |
Tried with stock kernel and i3 (X11) and still no luck with mbind disabled. |
@carloabelli Thanks for the feedback. Still stumped on what might cause this for you. I've retested GIMP on all machines I have access to and the full seccomp filter works just fine. So I'm going to revert #3178 for now. You can add the 'seccomp !mbind' to your gimp.local to keep it going. If you ever find out what exactly causes this for you, please keep us informed. |
@glitsj16 Sounds good to me. I will update this if anything changes. |
Gimp 2.10.10 fails to load (hangs without any output).
Firejail version 0.9.58.2 on Arch Linux. Runs fine with
--noprofile
. Disablingseccomp
ingimp.profile
fixes the issue.The text was updated successfully, but these errors were encountered: