Reputation: 1009
I've got some C code (.so file) that I call from a java app (JNI) that needs to be run as root.
Is there any way to make the .so file run as root (on a mac) without having to make the entire java app run as root?
Upvotes: 0
Views: 144
Reputation: 201497
Native linked libraries are run in the process space of the linked application, so you will need to run the entire application as root for the native code to execute as root (you could however investigate chroot
).
Upvotes: 1