• 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: Using Security framework to get root auth for running app.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using Security framework to get root auth for running app.


  • Subject: Re: Using Security framework to get root auth for running app.
  • From: OL&L Lists <email@hidden>
  • Date: Wed, 15 Dec 2004 14:39:40 -0800

At 4:03 PM -0500 12/15/04, email@hidden wrote:
>
On Dec 15, 2004, at 2:16 PM, email@hidden wrote:
 Darn. I was hoping that would not be the case.
 Question then, can I set /Applications/SomeApp.app as the toolpath? or
 can
 I only launch command line tools?

Part of the issue here is that when you would make your application run as root, you would also be then granting root level access to all libraries and frameworks you are using, which is relatively speaking a HUGE security hole over putting specific bits of functionality in a standalone and limited helper tool.

   Take the functions that must be performed as root and wrap them in a
 helper tool, and have your application call this tool, passing the
 authorization reference along with the command to perform. You'll be
 > happy you did, really, even though it's extra work.

 Explained this way it makes a little more sense. I guess Im just
concerned that I'll have to re authorize the commandline tool for each
file that needs removal which would be tedious. Anyway. Back to the books
I suppose.

Write a helper tool to authorize once, cache the AuthorizationRef in the app portion, then use the already-authorized AuthorizationRef to call the tool multiple times passing the cached AuthorizationRef each time. This allows the user to authorize once but allows you to perform multiple privileged operations without reauthorizing each time.


Michael
Orbital Launch & Lift, Inc.
http://www.orbitallaunch.com
_______________________________________________
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


References: 
 >Using Security framework to get root auth for running app. (From: email@hidden)
 >Re: Using Security framework to get root auth for running app. (From: Nick Zitzmann <email@hidden>)
 >Re: Using Security framework to get root auth for running app. (From: email@hidden)
 >Re: Using Security framework to get root auth for running app. (From: Steven Palm <email@hidden>)
 >Re: Using Security framework to get root auth for running app. (From: email@hidden)

  • Prev by Date: Re: Using Security framework to get root auth for running app.
  • Next by Date: Re: NSMatrix Datasource?
  • Previous by thread: Re: Using Security framework to get root auth for running app.
  • Next by thread: Re: Using Security framework to get root auth for running app.
  • Index(es):
    • Date
    • Thread