Re: CFURLWriteDataAndPropertiesToResource as root?
Re: CFURLWriteDataAndPropertiesToResource as root?
- Subject: Re: CFURLWriteDataAndPropertiesToResource as root?
- From: Stephen Blinkhorn <email@hidden>
- Date: Sun, 07 Aug 2011 22:07:00 -0600
It's a validation file containing registration details. My product is
an AudioUnit plugin so there's no App Store potential but I'd prefer
to keep things clean just in case.
I don't care where I write the file much (previously I wrote it to "/
Library/Preferences") but even the hard drive root path is off limits.
Other suggestions include writing data into the keychain but this is
just a Lion compatibility fix and I'm not sure how keychain access
from within an AU would work out in practice.
I register the whole machine rather than individual users. Any other
suggestions as to where to write it?
Stephen
On 7 Aug 2011, at 21:54, Kyle Sluder wrote:
On Sun, Aug 7, 2011 at 8:48 PM, Stephen Blinkhorn
<email@hidden> wrote:
Hello,
Under Tiger, Leopard, and Snow Leopard I use
CFURLWriteDataAndPropertiesToResource to store some data into a
file. On
Lion the default permissions appear to have been upgraded almost
everywhere
and consequently the code below isn't succeeding. Is it possible to
run the
below code as root from Cocoa?
Of course root can write anywhere.
But if you try to authorize as root, you will not be able to sell your
product in the Mac App Store.
What protected location are you trying to write to? Perhaps you should
write elsewhere.
--Kyle Sluder
_______________________________________________
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