• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Socket permissions ???
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Socket permissions ???


  • Subject: Re: Socket permissions ???
  • From: Ravi <email@hidden>
  • Date: Wed, 11 Oct 2006 14:50:39 -0700

Corrected a typo below.

On Oct 11, 2006, at 2:28 PM, Ravi wrote:

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 SockPathMode* 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:
40appliedidentity.com


This email sent to email@hidden

_______________________________________________ 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
References: 
 >Socket permissions ??? (From: Ravi <email@hidden>)

  • Prev by Date: Socket permissions ???
  • Next by Date: Re: Socket permissions ???
  • Previous by thread: Socket permissions ???
  • Next by thread: Re: Socket permissions ???
  • Index(es):
    • Date
    • Thread