• 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 the security framework
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Using the security framework


  • Subject: Re: Using the security framework
  • From: Joe Turner <email@hidden>
  • Date: Sat, 24 Jan 2009 08:51:44 -0600

Cool, thanks!

Then I now have another question: Why not just run chmod on my utility when it's 'unlocked', and change the userID to 0. Then when it's locked, change it back to 501?

Or, is this exactly what AEWP() will do?

Thanks!

Cheers,

Joe Turner
On Jan 24, 2009, at 6:47 AM, Michael Ash wrote:

On Fri, Jan 23, 2009 at 10:59 PM, Joe Turner <email@hidden> wrote:
Okay, so, it seems everyone was right :) I went to cocoabuilder to find some
of the responses to this, that I never got.


Anyways, it seems I can just call AEWP() once, and it should stay suid.

So, my last question to everyone is, how do I know if the tool is suid. I
mean, I could implement some sort of lock-unlock thing, and then I would be
pretty sure, but is there anyway to know for sure?


And, is there a way to take SUID away from it? So, if I want to lock it, it
would work.

"man 2 stat" to check the bit, "man 2 chmod" to set it.

Mike
_______________________________________________

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

_______________________________________________

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: 
 >Using the security framework (From: Joe Turner <email@hidden>)
 >Re: Using the security framework (From: Nick Zitzmann <email@hidden>)
 >Re: Using the security framework (From: Joe Turner <email@hidden>)
 >Re: Using the security framework (From: Nick Zitzmann <email@hidden>)
 >Re: Using the security framework (From: Joe Turner <email@hidden>)
 >Re: Using the security framework (From: Nick Zitzmann <email@hidden>)
 >Re: Using the security framework (From: Joe Turner <email@hidden>)
 >Re: Using the security framework (From: Michael Ash <email@hidden>)

  • Prev by Date: Opening Symbolic Links
  • Next by Date: Re: NSNumberFormatter setFormat: in 10.3.9
  • Previous by thread: Re: Using the security framework
  • Next by thread: Re: Using the security framework
  • Index(es):
    • Date
    • Thread