system.preferences Authorization
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.