• 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: Setting Explicit Socket Permissions!!
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Setting Explicit Socket Permissions!!


  • Subject: Re: Setting Explicit Socket Permissions!!
  • From: "Justin C. Walker" <email@hidden>
  • Date: Sun, 15 Oct 2006 20:45:48 -0700


On Oct 15, 2006, at 20:30 , Ravi Yadav wrote:

Hi,
Once I have installed my app, Every time its loaded my app creates and listens on a specific socket ie /tmp/MYSOCKET.
Every time the app load and creates the socket I want to :-
1)Set some specific permissions on /tmp/MYSOCKET, irrespective of what socket permissions it has been created with by default.


How can I achieve this in my app programitically?

"man 2 chmod"

Note that you have to have permissions to modify directory entries; in particular, if you aren't running as root, this will depend on the owner and group associated to the directory enty.

Justin

--
Justin C. Walker, Curmudgeon at Large
Institute for the Absorption of Federal Funds
-----------
My wife 'n kids 'n dogs are gone,
I can't get Jesus on the phone,
But Ol' Milwaukee's Best is my best friend.
-----------


_______________________________________________ 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: 
 >Setting Explicit Socket Permissions!! (From: "Ravi Yadav" <email@hidden>)

  • Prev by Date: Setting Explicit Socket Permissions!!
  • Next by Date: Re:IOServiceOpen fails
  • Previous by thread: Setting Explicit Socket Permissions!!
  • Next by thread: RE: Filesystem bundles
  • Index(es):
    • Date
    • Thread