SockPathMode - what is it?

I have a plist installed on my system with the following in it:

<dict>
  <key>SockPathMode</key>
  <integer>438</integer>

man launchd.plist tells me:

SockPathMode <integer>
This optional key specifies the mode of the socket.

I haven't been able to find a list of modes and I haven't heard of 438 different modes either! If anyone can shed some light on what this key and value is really about I'd be very grateful.


Solution 1:

The integer in the key SockPathMode is the decimal presentation of the octal POSIX permissions of the UNIX socket.

Converter: 438 > 0666 > file permissions: rw-rw-rw- (owner, group and anyone is allowed to read and write from/to the socket.