Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 297183 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]
python part of the fix (2.7.2)
python-2.7-ctypes-honor-PROT_EXEC-restrictions.patch (text/plain), 710 bytes, created by
Pavel Labushev
on 2011-12-28 10:36:24 UTC
(
hide
)
Description:
python part of the fix (2.7.2)
Filename:
MIME Type:
Creator:
Pavel Labushev
Created:
2011-12-28 10:36:24 UTC
Size:
710 bytes
patch
obsolete
>--- a/Modules/_ctypes/malloc_closure.c >+++ b/Modules/_ctypes/malloc_closure.c >@@ -75,7 +75,18 @@ static void more_core(void) > -1, > 0); > if (item == (void *)MAP_FAILED) >- return; >+ if (errno != EPERM) >+ return; >+ else { >+ item = (ITEM *)mmap(NULL, >+ count * sizeof(ITEM), >+ PROT_READ | PROT_WRITE, >+ MAP_PRIVATE | MAP_ANONYMOUS, >+ -1, >+ 0); >+ if (item == (void *)MAP_FAILED; >+ return; >+ } > #endif > > #ifdef MALLOC_CLOSURE_DEBUG
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