From f73642d37abe4462665749fbd3019db63eade379 Mon Sep 17 00:00:00 2001 From: opa334 Date: Tue, 28 Nov 2023 02:24:33 +0100 Subject: [PATCH] This was not intended to be there --- Exploits/fastPathSign/src/codesign.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Exploits/fastPathSign/src/codesign.m b/Exploits/fastPathSign/src/codesign.m index 81b094b..0183438 100644 --- a/Exploits/fastPathSign/src/codesign.m +++ b/Exploits/fastPathSign/src/codesign.m @@ -124,7 +124,7 @@ int codesign_sign_adhoc(const char *path, bool preserveMetadata, NSDictionary *c parameters[(__bridge NSString*)kSecCodeSignerIdentity] = (__bridge id)identity; uint64_t preserveMetadataFlags = 0; if (preserveMetadata) { - preserveMetadataFlags = (kSecCSPreserveIdentifier | kSecCSPreserveRequirements | kSecCSPreserveEntitlements | kSecCSPreserveResourceRules); + preserveMetadataFlags = (kSecCSPreserveIdentifier | kSecCSPreserveRequirements | kSecCSPreserveResourceRules); if (!customEntitlements) { preserveMetadataFlags |= kSecCSPreserveEntitlements; }