[rsbac] ctypes

kang kang at rsbac.org
Tue Dec 9 16:09:22 CET 2008


Jens Kasten wrote:
> Hi list,
>
> i try to build a filesystemmonitoring, but i get:
>  python event-monitoring.py 
> Traceback (most recent call last):
>   File "event-monitoring.py", line 24, in ?
>     from pyinotify import *
>   File
> "/usr/lib/python2.4/site-packages/pyinotify-0.8.1-py2.4.egg/pyinotify.py", line 52, in ?
>     import ctypes
>   File "/usr/lib/python2.4/site-packages/ctypes/__init__.py", line 18,
> in ?
>     from _ctypes import Union, Structure, Array
> ImportError: /usr/lib/python2.4/site-packages/_ctypes.so: cannot enable
> executable stack as shared object requires: Permission denied
>
> on normal debian it works.
> but the webserver has rsbac+pax 
>
> there are no errormessage from pax.
>
> grüsse
> jens
>
>
> _______________________________________________
> rsbac mailing list
> rsbac at rsbac.org
> http://www.rsbac.org/mailman/listinfo/rsbac
This library has probably an incorrect flag. To fix it install the
prelink package and run:

execstack -c /usr/lib/python2.4/site-packages/_ctypes.so

if the library really require an executable stack thats a problem :) but
I guess it doesnt, then the above command fixes it.


See also for more information:
http://www.gentoo.org/proj/en/hardened/gnu-stack.xml

kang


More information about the rsbac mailing list