What could change the umask of an existing process?

1k Views Asked by At

The objective is to understand what could change the umask of an already running process and recommendations on how to track down what could be causing the change.

A HUGE process is started which is part of a much larger "startup" process. This process is a large Java process which does significant JNI calls as well as some file i/o and the creation of directories.

Within a shell script is a loop that greps the /proc//status for "umask" value for this process. As the umask value scrolls by, you can actually watch the value change.

007
007
113
113
113
007
113
113
007

It mostly flips between 2 values.

The Platform is Linux and uses Corretto 11.

Questions :

1 - Is it possible for Process A to change the umask value of Process B? If so, what command would be used? I can check if that command is being used.

2 - Is it possible for a procedure/function/JNI call within this HUGE process to changes the umask of the its own process? If so, what command would be used? I can check if that command is being used.

3 - What other calls should I search for that could be changing the umask value of this specific procedure?

4 - Any recommended tools to use for monitoring what is causing the umask change?

0

There are 0 best solutions below