• 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: Debugging a privileged process
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Debugging a privileged process


  • Subject: Re: Debugging a privileged process
  • From: Scott Tooker <email@hidden>
  • Date: Mon, 26 Jan 2004 17:03:42 -0800

While there are workarounds, a bug report requesting the ability to run
an executable as a different user (or via sudo) from the UI would be a
good idea (please provide an example of what you are trying to do and
why you need to do it).

Scott

On Jan 26, 2004, at 2:42 PM, Kaelin Colclasure wrote:

>>> Greetings,
>>>
>>> I've just finished porting a daemon program that uses raw sockets to
>>> Mac OS X, and now I'd like to be able to use Xcode's snazzy GDB
>>> integration to debug it, Shark to profile it, etc. Since it uses raw
>>> sockets, it must or course run as a privileged process. Is it
>>> possible to accomplish this from the Xcode IDE? Do I need to run all
>>> of Xcode under sudo? (And if so are there any caveats to doing so?
>>> ISTR some admonishments against using the AppKit classes in a
>>> privileged process.)
>>
>> Yes, you need to run Xcode under sudo.  Dunno about caveats, though.
>
> I gave it a quick shot and I can indeed execute my process under the
> debugger and with the necessary privileges. But this does raise a few
> obvious questions like, "Where to Xcode's preferences get written?"
> Since the root user has no home directory, do these get sprayed into
> the root of the filesystem somewhere? (Nominally this a more of a
> generic Cocoa question, I suppose.)

[demime 0.98b removed an attachment of type application/pkcs7-signature which had a name of smime.p7s]
_______________________________________________
xcode-users mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/xcode-users
Do not post admin requests to the list. They will be ignored.

References: 
 >Debugging a privileged process (From: Kaelin Colclasure <email@hidden>)
 >Re: Debugging a privileged process (From: Jim Ingham <email@hidden>)
 >Re: Debugging a privileged process (From: Kaelin Colclasure <email@hidden>)

  • Prev by Date: Re: Source trees & include paths
  • Next by Date: Re: XCode & the web
  • Previous by thread: Re: Debugging a privileged process
  • Next by thread: Re: Debugging a privileged process
  • Index(es):
    • Date
    • Thread