GNOME Bugzilla – Bug 614903
g_callable_info_prepare_closure: handle SELinux
Last modified: 2015-02-07 16:46:39 UTC
after reinstalling, I accidentally had selinux enabled, and gnome-shell was crashing. This fixes it.
Created attachment 157997 [details] [review] g_callable_info_prepare_closure: handle SELinux If a process is being protected by SELinux, it cannot mmap() a segment both writable and executable, which was causing g_callable_info_prepare_closure() to fail. Libffi has a workaround for this problem though (it maps the same non-anonymous region twice, once writable and once executable, and returns two separate pointers to it), so use that.
Review of attachment 157997 [details] [review]: This looks good. The only thing I could think of is that ffi_closure_alloc might not be present in all currently supported libffi versions. But let's just see if anyone complains before worrying about that.
Review of attachment 157997 [details] [review]: I'd prefer if the commit message says "Handle non-W|X heaps" or something like that; SELinux is just a mechanism used to enforce that policy.
updated comment and committed
[Mass-moving gobject-introspection tickets to its own Bugzilla product - see bug 708029. Mass-filter your bugmail for this message: introspection20150207 ]