• 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
system.preferences Authorization
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

system.preferences Authorization


  • Subject: system.preferences Authorization
  • From: Hamish Allan <email@hidden>
  • Date: Tue, 25 Feb 2003 21:55:29 +0000

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi All,

Has anybody ever used the Authorization described in /etc/authorization as "system.preferences" in their own preferences pane?

I'm planning to write a daemon with controls in System Preferences.app and I want those controls to be admin-user accessible. I am planning to write (open-source) a custom NSView similar to what appears to be called 'NSAuthorizationView' in the Nibs in /System/Library/PreferencePanes/.

/etc/authorization has this to say about "system.preferences":

- - ----
This right is checked by the Admin framework when making changes to the system preferences.
Credentials remain valid forever.
An acquired credential is shared amongst all clients.
If the proccess that created the AuthorizationRef has uid = 0 this right will automatically be granted.
- - ----

So it looks like in order to make all the system preferences accessible under the same "lock" I should use this permission. I haven't used authorization services before but I from the looks of things I'll be wanting to use the "factored" approach and create a helper tool which simply writes a file in /Library/Preferences/. Can anyone tell me if it's possible to use the system.preferences permission to do this?

Thanks in advance,
Hamish

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (Darwin)

iD8DBQE+W+ZX6gc2d//pELYRAhrOAJ43u90zLAQa0eI5T9jeOcidtE9sGQCg3SY7
gL0vn0AUWhtHBH/dK6j5SsI=
=sgel
-----END PGP SIGNATURE-----
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

  • Follow-Ups:
    • Re: system.preferences Authorization
      • From: Finlay Dobbie <email@hidden>
  • Prev by Date: String encoding
  • Next by Date: Re: PBI: tear-off tab items?
  • Previous by thread: String encoding
  • Next by thread: Re: system.preferences Authorization
  • Index(es):
    • Date
    • Thread