I'm using python with setcap CAP_NET_RAW enabled. My python script imports a shared library which has $ORIGIN in its RPATH. Since my python is now a suid app, $ORIGIN is not evaluated and the library does not load correctly (this is due to a security leak found in glibc ). Is there a way to tell the linker that my library path is secure and load the library anyway?
A few more notes:
- I only need this feature in the development stage. I'm not looking for a production solution.
- When working as root, everything works.
- I do not want to work as root.
Thanks, Dave
export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/to/yourlibrary"
– Cacodyl