From 5a356a47103fa5912fbe43853147583e28b6e44e Mon Sep 17 00:00:00 2001 From: Mikayla Date: Fri, 18 Aug 2023 17:38:18 -0700 Subject: [PATCH] Remove potential osascript hijacking --- crates/install_cli/src/install_cli.rs | 2 +- crates/zed/resources/zed.entitlements | 8 ++------ 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/crates/install_cli/src/install_cli.rs b/crates/install_cli/src/install_cli.rs index adf50586d7..5d16054182 100644 --- a/crates/install_cli/src/install_cli.rs +++ b/crates/install_cli/src/install_cli.rs @@ -29,7 +29,7 @@ pub async fn install_cli(cx: &AsyncAppContext) -> Result<()> { // The symlink could not be created, so use osascript with admin privileges // to create it. - let status = smol::process::Command::new("osascript") + let status = smol::process::Command::new("/usr/bin/osascript") .args([ "-e", &format!( diff --git a/crates/zed/resources/zed.entitlements b/crates/zed/resources/zed.entitlements index 07af3124cd..f40a8a253a 100644 --- a/crates/zed/resources/zed.entitlements +++ b/crates/zed/resources/zed.entitlements @@ -18,11 +18,7 @@ com.apple.security.personal-information.photos-library - com.apple.security.cs.allow-dyld-environment-variables - - com.apple.security.cs.allow-unsigned-executable-memory - - com.apple.security.cs.disable-library-validation - +