does JNI change file directory permissions inadvertently?
I have a server process that creates a thread which will exec a separate executable that runs a JNI method. The JNI method uses JDBC to connect to a database to do some work.
After this thread ends, the server process creates another thread which does a file deletion and a file rename operation. There is a permission denied error when these file operations happen. If the JNI method is not executed, then there is no permission denied error. The JNI code does not touch any file or directory permissions.
Is it possible that the JNI automatically takes over file and directory permissions and changes them?

