Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 308707 Details for
Bug 329499
dev-lang/python-2.6 'rwx' mmap() calls prevent loading of ctypes module (possibly others) under new PaX kernels
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
simple conditional libffi fix
libffi-strict-emutramp.patch (text/plain), 1.28 KB, created by
Pavel Labushev
on 2012-04-12 23:48:55 UTC
(
hide
)
Description:
simple conditional libffi fix
Filename:
MIME Type:
Creator:
Pavel Labushev
Created:
2012-04-12 23:48:55 UTC
Size:
1.28 KB
patch
obsolete
>--- a/src/closures.c >+++ b/src/closures.c >@@ -447,8 +447,6 @@ > dlmmap (void *start, size_t length, int prot, > int flags, int fd, off_t offset) > { >- void *ptr; >- > assert (start == NULL && length % malloc_getpagesize == 0 > && prot == (PROT_READ | PROT_WRITE) > && flags == (MAP_PRIVATE | MAP_ANONYMOUS) >@@ -457,30 +455,7 @@ > #if FFI_CLOSURE_TEST > printf ("mapping in %zi\n", length); > #endif >- >- if (execfd == -1 && !is_selinux_enabled ()) >- { >- ptr = mmap (start, length, prot | PROT_EXEC, flags, fd, offset); >- >- if (ptr != MFAIL || (errno != EPERM && errno != EACCES)) >- /* Cool, no need to mess with separate segments. */ >- return ptr; >- >- /* If MREMAP_DUP is ever introduced and implemented, try mmap >- with ((prot & ~PROT_WRITE) | PROT_EXEC) and mremap with >- MREMAP_DUP and prot at this point. */ >- } >- >- if (execsize == 0 || execfd == -1) >- { >- pthread_mutex_lock (&open_temp_exec_file_mutex); >- ptr = dlmmap_locked (start, length, prot, flags, offset); >- pthread_mutex_unlock (&open_temp_exec_file_mutex); >- >- return ptr; >- } >- >- return dlmmap_locked (start, length, prot, flags, offset); >+ return mmap (start, length, PROT_READ | PROT_WRITE, flags, fd, offset); > } > > /* Release memory at the given address, as well as the corresponding
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 329499
:
239871
|
239875
|
240887
|
240889
|
240891
|
288671
|
297183
|
297185
|
298441
|
298841
|
304207
| 308707 |
308711