From dc819460a95cdf2b362b3dc993fcbb7c8775eed9 Mon Sep 17 00:00:00 2001 From: Michel Fortin Date: Thu, 14 Feb 2019 22:16:51 -0500 Subject: [PATCH] Updated XPC codesigning to enable hardened runtime. --- bin/codesign_xpc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/codesign_xpc b/bin/codesign_xpc index d9c8cfa8..772a677d 100755 --- a/bin/codesign_xpc +++ b/bin/codesign_xpc @@ -10,7 +10,7 @@ def sanitize(argument): return ('"' + argument + '"' if ' ' in argument else argument) def _codesign_service(identity, path, entitlements_path=None): - command = ["codesign", "-fs", identity, path] + ([] if entitlements_path is None else ["--entitlements", entitlements_path]) + command = ["codesign", "-o", "runtime", "-fs", identity, path] + ([] if entitlements_path is None else ["--entitlements", entitlements_path]) log_message(" ".join(map(sanitize, command))) process = subprocess.Popen(command, stdout=subprocess.PIPE)