Jason Pyeron wrote:
> I am trying to understand why group and other permissions are set to 6.

On some platforms the permission bits on sockets are completely ignored. The
only way to control access is thru the permissions of the containing directory.
> 
> Would it not be best if it were 0600? Are there side effects of doing so?
> 
> $ cat src/util/unix_listen.c –n
> …
>     95  #ifdef FCHMOD_UNIX_SOCKETS
>     96      if (fchmod(sock, 0666) < 0)
>     97          msg_fatal("fchmod socket %s: %m", addr);
>     98  #else
>     99      if (chmod(addr, 0666) < 0)
>    100          msg_fatal("chmod socket %s: %m", addr);
>    101  #endif
> 
> -Jason
> 
> 


-- 
  -- Howard Chu
  CTO, Symas Corp.           http://www.symas.com
  Director, Highland Sun     http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP  http://www.openldap.org/project/

Reply via email to