This application *is* the privileged helper process, and it needs to know about 
all the Spotlight attributes that spotlight has.  The problem is that Spotlight 
doesn't seem to like the root user.

For example, in Terminal I can run "mdimport -X" and get a dump of the 
Spotlight schema information.  However, if I run that same command with sudo, I 
get "mdimport will not import on behalf of root user.  Exiting."

So, reiterating my original question, how can my root process get a list of all 
the spotlight attributes in the schema?

Thanks,

Dave
 
On Thursday, June 18, 2009, at 10:35AM, "Benjamin Stiglitz" <s...@apple.com> 
wrote:
>You should be using a privileged helper process for the privileged  
>operations your application performs instead of running as root. There  
>was a great session on Authorization Services at WWDC; until the video  
>is up, you can take a look at:
>• The Authorization Services Programming Guide: 
><http://developer.apple.com/documentation/security/conceptual/authorization_concepts/01introduction/introduction.html
> 
> >
>• BetterAuthorizationSample: 
><http://developer.apple.com/samplecode/BetterAuthorizationSample/index.html#//apple_ref/doc/uid/DTS10004207
> 
> >
_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

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:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to