Socket permissions ???
Socket permissions ???
- Subject: Socket permissions ???
- From: Ravi <email@hidden>
- Date: Wed, 11 Oct 2006 14:28:49 -0700
Hi,
I have a .plist file for my daemon as follows:-
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://
www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Debug</key>
<false/>
<key>Label</key>
<string>com.<com-name>.daemon.ABC</string>
<key>OnDemand</key>
<true/>
<key>ProgramArguments</key>
<array>
<string>/Users/<usr-name>/Debug/ABC</string>
</array>
<key>ServiceIPC</key>
<true/>
<key>Sockets</key>
<dict>
<key>RegistryDomainSocket</key>
<dict>
<key>SockFamily</key>
<string>Unix</string>
<key>SockPassive</key>
<false/>
<key>SockPathMode</key>
<integer>49663</integer>
<key>SockPathName</key>
<string>/tmp/MYSOCKET</string>
</dict>
</dict>
</dict>
</plist>
The socket permissions for /tmp/MYSOCKET should be set to rwx for
all, but the socket gets created with the permissions as srwxr-xr-x .
Tried using *decimal 777 for SockPathName* too. But it doesnt seem to
have any change.
My daemon is required to run in background and should be able to
respond to request from any user through a UI.
*If required how can I explicitly set the permissions of my socket to
srwxrwxrwx after creating it, in my app?
Thanks
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden