• 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: Listening on system restricted ports
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: Listening on system restricted ports


  • Subject: RE: Listening on system restricted ports
  • From: "Jamie Wood" <email@hidden>
  • Date: Fri, 25 Mar 2005 18:23:03 -0800

My suggestion would be to have your helper tool open the socket, bind to the restricted port, and then pass the file descriptor back to your main program via a Unix domain socket. Check out MoreAuthSample for details:

http://developer.apple.com/samplecode/MoreAuthSample/MoreAuthSample.html

Hope this helps,
Jamie

From: OL&L Lists <email@hidden>
To: email@hidden
Subject: Listening on system restricted ports
Date: Fri, 25 Mar 2005 18:00:32 -0800

I need to bind to restricted ports (below 1024). I can't use a helper tool because helper tools are supposed to be one shot programs. What is the correct way to do this on OS X? Can I use a helper tool to elevate a listening process's privileges, bind to a restricted port, then lower the listener's privileges? Also, I would like to be able to do so from both Java and C.

Thanks,

Michael
Orbital Launch & Lift, Inc.
http://www.orbitallaunch.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Macnetworkprog mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • RE: Listening on system restricted ports
      • From: OL&L Lists <email@hidden>
References: 
 >Listening on system restricted ports (From: OL&L Lists <email@hidden>)

  • Prev by Date: Listening on system restricted ports
  • Next by Date: RE: Listening on system restricted ports
  • Previous by thread: Listening on system restricted ports
  • Next by thread: RE: Listening on system restricted ports
  • Index(es):
    • Date
    • Thread