• 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: Finding process path from Cocoa?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Finding process path from Cocoa?


  • Subject: Re: Finding process path from Cocoa?
  • From: Alastair Houghton <email@hidden>
  • Date: Wed, 9 Dec 2009 12:23:07 +0000

On 9 Dec 2009, at 10:18, email@hidden wrote:

> The docs for execl(3) do state the convention:
>
> The first argument, by convention, should point to the file name associated with the file being executed.
>
> This being a Cocoa list we should expect that all conventions are being followed to the letter, by everyone, everywhere (though in this case I wouldn't bet the farm on it).

Specifically, a potential attacker will deliberately not follow this convention.  The Security Server used to get the information for the program name in this manner, which created quite an interesting vulnerability since you could get it to display an authorisation dialog with *any* name you wanted in it.  I blogged about that particular security hole some time ago:

  <http://alastairs-place.net/2006/06/os_x_authentica_1>

There are some other motivations for not following it also; since ps and top display that field as the process name, people have occasionally specified something other than the path to make the process list output more useful.

Kind regards,

Alastair.

--
http://alastairs-place.net



_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Finding process path from Cocoa?
      • From: Todd Heberlein <email@hidden>
References: 
 >Finding process path from Cocoa? (From: Laurent Daudelin <email@hidden>)
 >Re: Finding process path from Cocoa? (From: Nick Zitzmann <email@hidden>)
 >Re: Finding process path from Cocoa? (From: Alastair Houghton <email@hidden>)
 >Re: Finding process path from Cocoa? (From: "email@hidden" <email@hidden>)

  • Prev by Date: Re: NSURLConnection Problem Inside QuickLook Generator
  • Next by Date: Re: Finding process path from Cocoa?
  • Previous by thread: Re: Finding process path from Cocoa?
  • Next by thread: Re: Finding process path from Cocoa?
  • Index(es):
    • Date
    • Thread