NSAuthorizationView

  • Hello again!

    My program requires root access. An I want standard lock/unlock button
    at the bottom of window for free :)
    Is there any legal way to use NSAuthorizationView? It is located in
    private framework SecurityHICocoa.framework and there are no headers
    and documentaion.

    Nikolay.
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
  • On Sunday, October 12, 2003, at 10:19  AM, Nikolay Ilduganov wrote:
    > My program requires root access. An I want standard lock/unlock button
    > at the bottom of window for free :)

    That's not how it works.  Your application can never get root access if
    it doesn't start out as root; the Unix security model does not allow
    processes to elevate their own privileges.

    You need to use Authorization Services to run a helper tool with root
    privileges that actually does the work.  Apple has two examples,
    AuthSample and MoreAuthSample, that will show you how to do this.

      -- Chris

    --
    Chris Hanson, bDistributed.com, Inc.  |  Email: <cmh...>
    Custom Mac OS X Development          |  Phone: +1-847-372-3955
    http://bdistributed.com/              |  Fax:  +1-847-589-3738
    http://bdistributed.com/Articles/    |  Personal Email: <cmh...>
    _______________________________________________
    cocoa-dev mailing list | <cocoa-dev...>
    Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
    Do not post admin requests to the list. They will be ignored.
previous month october 2003 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today