A Cocoa wrapper around Apple's BetterAuthorizationSample
C Objective-C Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AuthorizedTasksInCocoa.xcodeproj
DemoApp.nib
DoxygenDocs.docset
en.lproj
AuthorizedTasks_Demo.h
AuthorizedTasks_Demo.m
AuthorizedTasks_SetAnyUserPrefs.h
AuthorizedTasks_SetAnyUserPrefs.m
AuthorizedTasks_Typicapp.h
AuthorizedTasks_Typicapp.m
BetterAuthorizationSampleLib.c
BetterAuthorizationSampleLib.h
BetterAuthorizationSampleLibInstallTool.c
CommandProcArguments.h
CommandProcs_Demo.c
CommandProcs_SetAnyUserPrefs.c
CommandProcs_Typicapp.c
DemoApp-Info.plist
DemoAppController.h
DemoAppController.m
DemoAppMain.m
Design and Implementation Rationale.txt
HelperToolMain.c
HelperToolTaskDoCopyPaths.c
HelperToolTaskDoGetUID.c
HelperToolTaskDoGetVersion.c
HelperToolTaskDoOpenSomeLowNumberedPorts.c
HelperToolTaskDoSetAnyUserPrefs.c
HelperToolTaskDoSetPermissions.c
HelperToolTaskDoStatPaths.c
HelperToolTaskDoWriteDataToFile.c
MoreCFQ.c
MoreCFQ.h
MoreSetup.h
ReadMe.markdown
Readme.rtf
SSDictionaryEntry.h
SSDictionaryEntry.m
SSYAuthorizedHelpee.h
SSYAuthorizedTaskmaster+CopyPaths.h
SSYAuthorizedTaskmaster+CopyPaths.m
SSYAuthorizedTaskmaster+DemoTasks.h
SSYAuthorizedTaskmaster+DemoTasks.m
SSYAuthorizedTaskmaster+SetAnyUserPrefs.h
SSYAuthorizedTaskmaster+SetAnyUserPrefs.m
SSYAuthorizedTaskmaster+SetPermissions.h
SSYAuthorizedTaskmaster+SetPermissions.m
SSYAuthorizedTaskmaster+StatPaths.h
SSYAuthorizedTaskmaster+StatPaths.m
SSYAuthorizedTaskmaster-Info.plist
SSYAuthorizedTaskmaster.h
SSYAuthorizedTaskmaster.m
ToolUninstaller.sh

ReadMe.markdown

Why you should Not Use This Code

Do not use this code. This framework is based on Apple's BetterAuthorizationSample and is very complicated, even with this code to guide you. There is an easier way, beginning with Mac OS X 10.6.

Are you sandboxed? In turn, BetterAuthorizationSample uses the Authorization Services framework, in whose documentation it is now stated that the authorization services API is not supported within an app sandbox because it allows privilege escalation.

Are you still supporting Mac OS X 10.5? For applications requiring Mac OS X 10.6 or later, the Service Management framework, function SMJobBless() in particular, should be used instead of this.

Modern Alternatives

Nathan de Vries seems to have figured it all out.