Closed s19n closed 8 years ago
Nevermind, it seems that msjnc
uses the ncsvc.log
file to detect if the connection has been successful, and when the wrapper does the following the log is written to the root's home directory instead of the user's one:
/*
* Set the UID and GID to 0
* Otherwise ld.so will ignore LD_PRELOAD.
*/
setreuid(0, 0);
setregid(0, 0);
When using
msjnc
together with https://github.com/simpkins/ncsvc-wrapper to preventncsvc
from manipulating the routing table, the interface does not "notice" the successful connection.ncsvc
runs correctly in the background, as stated in the last line of.msjnc.log
: