Re: nginx default unix domain socket permissions and umask

2016-09-22 Thread Maxim Dounin
Hello! On Thu, Sep 22, 2016 at 01:12:21PM +, Manole, Sorin wrote: > Hello, > > It seems that when nginx creates unix domain sockets as a result > of the listen directive it assigns rw permissions for all users. > This is probably because the bind() call which creates the file > follows the

nginx default unix domain socket permissions and umask

2016-09-22 Thread Manole, Sorin
Hello, It seems that when nginx creates unix domain sockets as a result of the listen directive it assigns rw permissions for all users. This is probably because the bind() call which creates the file follows the process umask. Nginx sets the umask to 0 which is the most relaxed setting. Is the