• 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: [Q] copy operation and authorization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Q] copy operation and authorization


  • Subject: Re: [Q] copy operation and authorization
  • From: Dave Keck <email@hidden>
  • Date: Thu, 12 Nov 2009 23:34:13 -1000

> As a user, I would become very suspicious if Finder suddenly requires me to
> authorize some copy operation just because I launched an app, or, even
> worse, because I took some action within an app...

Absolutely - that's the point of the "Details" disclosure triangle in
the authorization window: so the user knows what application is
requesting permission to do a specific operation.

And what about /etc/authorization? If your app relies on the Finder to
carry out its privileged operations, it also relies on the
com.apple.desktopservices right. And if the user happened to modify
that right, they've also unknowingly modified your app's behavior,
even though your app isn't published by Apple, nor is it related to
"Desktop Services."

On the other hand, it's a cruel joke to suggest a launchd daemon (BAS)
for the simple operation of copying a file to a privileged directory;
talk about bloat and cluttering users' computers.

Use AEWP. From http://developer.apple.com/mac/library/samplecode/BetterAuthorizationSample/listing6.html

"You should only use BetterAuthorizationSample if your application needs ongoing
access to privileged operations.  For example, if you're writing a packet
capture tool ... On the other hand, if your application
needs elevated privileges for a one-off task (like installing or uninstalling),
you should consider using AuthorizationExecuteWithPrivileges directly."
_______________________________________________

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

References: 
 >[Q] copy operation and authorization (From: JongAm Park <email@hidden>)
 >Re: [Q] copy operation and authorization (From: Kyle Sluder <email@hidden>)
 >Re: [Q] copy operation and authorization (From: Jerry Krinock <email@hidden>)
 >Re: [Q] copy operation and authorization (From: Jens Miltner <email@hidden>)

  • Prev by Date: Re: CGImageRef printing issue
  • Next by Date: Re: Possible hardware-platform-dependent bug in NSTextView?!?
  • Previous by thread: Re: [Q] copy operation and authorization
  • Next by thread: Multiple variable rules in for() statement
  • Index(es):
    • Date
    • Thread