OpenAFS
OpenAFS distributed network file system
/cygdrive/c/src/openafs/openafs.git/repo/src/platform/DARWIN/AFSPreference/PListManager.h
00001 //
00002 //  PListManager.h
00003 //  OpenAFS
00004 //
00005 //  Created by Claudio Bisegni LNF - INFN on 25/04/08.
00006 //  Copyright 2008 Infn. All rights reserved.
00007 //
00008 
00009 #import <Cocoa/Cocoa.h>
00010 
00011 #define DELETE_IN_10_4  @"authinternal"
00012 #define DELETE_IN_10_5  @"builtin:authenticate,privileged"
00013 #define ADD_IN_PLIST    @"builtin:krb5authnoverify,privileged"
00014 
00015 #define AUTH_FILE_DIR   @"/etc"
00016 #define AUTH_FILE               @"/etc/authorization"
00017 #define AUTH_FILE_BK    @"/etc/authorization_bk"
00018 #define TMP_FILE                @"/tmp/authorization"
00019 
00020 #define BACKGROUNDER_P_FILE                                             @"it.infn.lnf.network.AFSBackgrounder"
00021 #define HOME_LAUNCHD_AGENT_FOLDER                               @"~/Library/LaunchAgents"
00022 #define BACKGROUNDER_LAUNCHD_CONTROL_FILE               @"~/Library/LaunchAgents/it.infn.lnf.network.AFSBackgrounder.plist"
00023 #define BACKGROUNDER_LAUNCHD_TMP_CONTROL_FILE   @"/tmp/it.infn.lnf.network.AFSBackgrounder.plist"
00024 
00025 #define LAUNCHD_DAEMON_FOLDER                   @"/Library/LaunchDaemons"
00026 #define AFS_STARTUP_TMP_CONTROL_FILE    @"/tmp/it.infn.lnf.network.afsstartup.plist"
00027 #define AFS_STARTUP_CONTROL_FILE                @"/Library/LaunchDaemons/it.infn.lnf.network.afsstartup.plist"
00028 
00035 @interface PListManager : NSObject {
00036 
00037 }
00043 +(void) krb5TiketAtLoginTime:(BOOL)enable helper:(NSString *)helper;
00044 
00050 +(BOOL) checkKrb5AtLoginTimeLaunchdEnable;
00051 
00057 +(void) installBackgrounderLaunchdFile:(BOOL)install resourcePath:(NSString*) rsrcPath;
00063 +(BOOL) checkLoginTimeLaunchdBackgrounder;
00064 
00070 +(void) manageAfsStartupLaunchdFile:(BOOL)enable afsStartupScript:(NSString*)afsStartupScript afsBasePath:(NSString*)afsBasePath  afsdPath:(NSString*)afsdPath;
00071 
00077 +(void) launchctlCommand:(BOOL)enable userDomain:(BOOL)userDomain option:(NSArray*)option plistName:(NSString*)plistName;
00083 +(void) launchctlStringCommandAuth:(NSString*)operation option:(NSArray*)option plistName:(NSString*)plistName helper:(NSString *)helper withAuthRef:(AuthorizationRef)authRef;
00089 +(BOOL) launchdJobState:(NSString*)jobName;
00090 @end
 All Data Structures Files Functions Variables