How can I add a library search path to an executable running with a capability?
I have an application that needs to run with the CAP_NET_BIND_SERVICE capability so that it can open a low port (502 for a TCP/Modbus server). It comes bundled with a set of .so files that it needs to dynamically link against, including pinned versions of system libraries (libxml.so and libz.so). Generally, I would set LD_LIBRARY_PATH, … Read more