After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 786358 - Please add a flag to disable seccomp support
Please add a flag to disable seccomp support
Status: RESOLVED FIXED
Product: gnome-desktop
Classification: Core
Component: Thumbnail
3.22.x
Other Linux
: Normal normal
: ---
Assigned To: Desktop Maintainers
Desktop Maintainers
Depends on:
Blocks:
 
 
Reported: 2017-08-16 11:13 UTC by Laurent Bigonville
Modified: 2018-02-06 13:32 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Disable seccomp on linux architectures where it's not supported (1.70 KB, patch)
2018-02-05 14:02 UTC, Laurent Bigonville
needs-work Details | Review
build: Disable seccomp on linux architectures where it's not supported (1.95 KB, patch)
2018-02-05 15:47 UTC, Laurent Bigonville
none Details | Review
build: Disable seccomp on linux architectures where it's not supported (1.95 KB, patch)
2018-02-06 12:22 UTC, Laurent Bigonville
committed Details | Review

Description Laurent Bigonville 2017-08-16 11:13:12 UTC
Hi,

ATM, gnome-desktop will try to build with seccomp support on linux architectures but seccomp is not compatible with some of them (m68k, alpha, sparc64,...) that are built on debian.

Adding a configure flag would help here so we would be able to disable seccomp support on these architectures

https://buildd.debian.org/status/package.php?p=libseccomp
Comment 1 Bastien Nocera 2017-08-21 22:47:58 UTC
It really doesn't look clear to me whether libseccomp is unavailable at all on those systems, or is ineffective and attempting to use it will fail. Looking at the build logs also didn't tell me much about this, other than some build failures with errors that might or might not be packaging problems.

Can you please check with the libseccomp maintainers whether those platforms will be able to compile libseccomp in the future?
Comment 2 Laurent Bigonville 2017-08-22 09:44:02 UTC
It definitely looks like the supported architectures is limited:

https://github.com/seccomp/libseccomp/blob/master/src/arch.c#L120

libseccomp build fails with:

arch.c:100:2: error: #error the arch code needs to know about your machine type
Comment 3 Bastien Nocera 2017-08-22 11:23:41 UTC
I'd take a patch to explicitly disable seccomp on those architectures (as on non-Linux), not as an option though. Also make sure to add a AC_MSG_WARN() call to mention that seccomp support is disabled on that system.
Comment 4 Laurent Bigonville 2018-02-05 14:02:23 UTC
Created attachment 367911 [details] [review]
Disable seccomp on linux architectures where it's not supported
Comment 5 Bastien Nocera 2018-02-05 14:41:55 UTC
Review of attachment 367911 [details] [review]:

> Disable seccomp on linux architectures where it's not
 supported

Missing prefix "build: " in the commit subject. Please also link to a reference that shows those architectures not being support.
Was this tested?
Comment 6 Laurent Bigonville 2018-02-05 15:47:34 UTC
Created attachment 367915 [details] [review]
build: Disable seccomp on linux architectures where it's not supported

seccomp is currently not supported on all the linux architectures, see:
https://github.com/seccomp/libseccomp/blob/master/src/arch.c

Only disable seccomp on architectures where it's not supported, keep it
enabled on all the other (linux) ones.
Comment 7 Bastien Nocera 2018-02-05 15:54:08 UTC
Review of attachment 367915 [details] [review]:

Looks good otherwise, but again, was this tested?

::: configure.ac
@@ +173,3 @@
+        ;;
+      alpha|ia64|m68k|sh4|sparc64)
+        enable_seccomp="no (not avaiable on this architecture)"

available
Comment 8 Laurent Bigonville 2018-02-05 23:27:04 UTC
Comment on attachment 367915 [details] [review]
build: Disable seccomp on linux architectures where it's not supported

Well yes tested and it actually failed to build on the debian build daemons.

The default (*) condition should actually be the last, I'll update the patch tomorrow
Comment 9 Laurent Bigonville 2018-02-06 12:22:42 UTC
Created attachment 367953 [details] [review]
build: Disable seccomp on linux architectures where it's not supported

seccomp is currently not supported on all the linux architectures, see:
https://github.com/seccomp/libseccomp/blob/master/src/arch.c

Only disable seccomp on architectures where it's not supported, keep it
enabled on all the other (linux) ones.
Comment 10 Laurent Bigonville 2018-02-06 12:23:43 UTC
OK so that last version seems to work: https://buildd.debian.org/status/package.php?p=gnome-desktop3&suite=sid
Comment 11 Bastien Nocera 2018-02-06 13:32:12 UTC
Pushed with some minor commit message changes, thanks