• 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: Environment/permissions on NSTask-launched app
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Environment/permissions on NSTask-launched app


  • Subject: Re: Environment/permissions on NSTask-launched app
  • From: Andrew Farmer <email@hidden>
  • Date: Thu, 20 Jul 2006 20:23:55 -0700

On 20 Jul 06, at 19:36, Brad Peterson wrote:
No offense intended, but at this point I agree with the others - if
you're doing this for self-education that's great, but if you're
going to distribute this to other people you *seriously* need to turn
this project over to someone who's more experienced with this kind of
thing. Security issues are not something you want to "learn on the job".

Agreed. My goal here is not to understand the finer points of security issues, I assure you. :)

Whether learning about security your goal or not, you still need to take security into account whenever you write anything that runs as root. The issues which can stem from improperly written code running as root are extremely significant. I can't stress this enough:

  Writing code that runs as root is *dangerous*.

In particular, writing GUI applications that run as root is doubly
dangerous. While I have the utmost respect for Apple's programmers, I do
not believe* that AppKit was designed to provide security when run as
root. As such, it's probably best to try to figure out some way to
implement your application so that it doesn't require root privileges,
or - at least - so that root privileges are only available to the
portions of the application which absolutely need it.


*: Please correct me if I'm wrong here.

Attachment: PGP.sig
Description: This is a digitally signed message part

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

This email sent to email@hidden

  • Follow-Ups:
    • Re: Environment/permissions on NSTask-launched app
      • From: Sherm Pendley <email@hidden>
References: 
 >Re: Environment/permissions on NSTask-launched app (From: Brad Peterson <email@hidden>)

  • Prev by Date: Re: Re: Distributed Objects question
  • Next by Date: Re: Distributed Objects question
  • Previous by thread: Re: Environment/permissions on NSTask-launched app
  • Next by thread: Re: Environment/permissions on NSTask-launched app
  • Index(es):
    • Date
    • Thread