Made sure that the root XPC service validate the right before starting the service. The right is created and authenticated by clients (in this case, lldb) and transferred over for validiation. llvm-svn: 152802
18 lines
412 B
Plaintext
18 lines
412 B
Plaintext
#include <AvailabilityMacros.h>
|
|
|
|
#if !defined(MAC_OS_X_VERSION_10_7) || MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_7
|
|
#define BUILDING_ON_SNOW_LEOPARD 1
|
|
#endif
|
|
|
|
#if !BUILDING_ON_SNOW_LEOPARD
|
|
#define __XPC_PRIVATE_H__
|
|
#include <xpc/xpc.h>
|
|
|
|
// Returns 0 if successful. This is launching as self. No need for further authorization.
|
|
int _validate_authorization(xpc_object_t message)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
#endif
|