Files
xcodesApp-mirror/com.xcodesorg.xcodesapp.Helper/AuditTokenHack.m
2024-01-19 14:28:12 -06:00

13 lines
330 B
Objective-C

// From https://github.com/securing/SimpleXPCApp/
#import "AuditTokenHack.h"
@implementation AuditTokenHack
+ (NSData *)getAuditTokenDataFromNSXPCConnection:(NSXPCConnection *)connection {
audit_token_t auditToken = connection.auditToken;
return [NSData dataWithBytes:&auditToken length:sizeof(audit_token_t)];
}
@end