From 96191c488d03d74097ec422ba205f26c8f6e5377 Mon Sep 17 00:00:00 2001
From: Greg DiCristofaro <gregd@basistech.com>
Date: Fri, 28 Oct 2022 13:32:54 -0400
Subject: [PATCH] changes to unix_setup for execution

---
 homebrew/autopsy4.rb | 6 ------
 snap/snapcraft.yaml  | 2 --
 2 files changed, 8 deletions(-)

diff --git a/homebrew/autopsy4.rb b/homebrew/autopsy4.rb
index 3eb96570f8..e25adf30aa 100644
--- a/homebrew/autopsy4.rb
+++ b/homebrew/autopsy4.rb
@@ -108,12 +108,6 @@ class Autopsy4 < Formula
     ENV["TSK_JAVA_LIB_PATH"] = File.join(prefix, "share", "java")
     system unix_setup_script, "-j", "#{java_home_path}"
 
-    # set executable by all (for packaging and running)
-    system "chmod", "a+x", "#{autopsy_install_path}/autopsy/markmckinnon/Export*"
-    system "chmod", "a+x", "#{autopsy_install_path}/autopsy/markmckinnon/parse*"
-    system "chmod", "-R", "a+x", "#{autopsy_install_path}/autopsy/solr/bin"
-    system "chmod", "a+x", "#{autopsy_install_path}/bin/autopsy"
-
     open(File.join(autopsy_install_path, "etc", "autopsy.conf"), 'a') { |f|
       # gstreamer needs the 'gst-plugin-scanner' to locate gstreamer plugins like the ones that allow gstreamer to play videos in autopsy
       # so, the jreflags allow the initial gstreamer lib to be loaded and the  'GST_PLUGIN_SYSTEM_PATH' along with 'GST_PLUGIN_SCANNER'
diff --git a/snap/snapcraft.yaml b/snap/snapcraft.yaml
index ffd77fffc7..7ddee35608 100644
--- a/snap/snapcraft.yaml
+++ b/snap/snapcraft.yaml
@@ -174,8 +174,6 @@ parts:
 
       # snaps run applications with different permissions.  This ensures applications can run.
       chmod 755 "$AUTOPSY_LOCATION/bin/autopsy"
-      find "$AUTOPSY_LOCATION/autopsy/markmckinnon" -name "Export*" -o -name "parse*" | xargs -I{} chmod a+x {}
-      chmod -R a+x "$AUTOPSY_LOCATION/autopsy/solr/bin"
 
       # include this line to print all set variables
       # sed -i '129 i set -o posix ; echo $(set) >&2 ; ls -l "${jdkhome}/bin/java"' "$AUTOPSY_LOCATION/platform/lib/nbexec"
\ No newline at end of file
-- 
GitLab