pushed logic for getting task's args into XPC service (since needs to be done as root)

removed socket/string logic from root XPC service
improved 'isAlive' logic to detect dead process
improved process enumeration (to not ignore process that we can't get path for)
This commit is contained in:
Patrick Wardle
2016-03-24 17:02:11 -10:00
parent c1539d76be
commit b99b05888c
16 changed files with 659 additions and 445 deletions
+4 -15
View File
@@ -6,27 +6,16 @@
// Copyright (c) 2015 Objective-See, LLC. All rights reserved.
//
#import <Foundation/Foundation.h>
#import "serviceInterface.h"
#import <Foundation/Foundation.h>
// This object implements the protocol which we have defined. It provides the actual behavior for the service. It is 'exported' by the service to make it available to the process hosting the service over an NSXPCConnection.
@interface remoteTaskService : NSObject <remoteTaskProto, NSXPCListenerDelegate>
//
//default service
+(remoteTaskService *)defaultService;
@end
//convert a socket type in to string
NSString* socketType2String(int type);
//convert a socket family into string
NSString* socketFamily2String(int family);
//convert a socket protocol into string
NSString* socketProto2String(int proto);
//convert a socket state into string
NSString* socketState2String(int state);