Skip to content
Snippets Groups Projects
Commit d89355f6 authored by Greg DiCristofaro's avatar Greg DiCristofaro
Browse files

updates

parent 4e9b3b77
Branches
No related tags found
No related merge requests found
...@@ -51,7 +51,8 @@ apps: ...@@ -51,7 +51,8 @@ apps:
GST_PLUGIN_SCANNER: $SNAP/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner GST_PLUGIN_SCANNER: $SNAP/usr/lib/x86_64-linux-gnu/gstreamer1.0/gstreamer-1.0/gst-plugin-scanner
SOLR_LOGS_DIR: $HOME/.autopsy/dev/solr/logs SOLR_LOGS_DIR: $HOME/.autopsy/dev/solr/logs
SOLR_PID_DIR: $HOME/.autopsy/dev/solr/logs SOLR_PID_DIR: $HOME/.autopsy/dev/solr/logs
SOLR_DATA_HOME: $HOME/solr # TODO may need to set differently
# SOLR_DATA_HOME: $HOME/solr
command: autopsy/bin/autopsywrapper.sh command: autopsy/bin/autopsywrapper.sh
# More info here: https://snapcraft.io/docs/gnome-extension # More info here: https://snapcraft.io/docs/gnome-extension
extensions: [ gnome ] extensions: [ gnome ]
...@@ -59,52 +60,53 @@ apps: ...@@ -59,52 +60,53 @@ apps:
plugs: plugs:
# taken from https://snapcraft.io/docs/supported-interfaces # taken from https://snapcraft.io/docs/supported-interfaces
# can be debugged with snappy debug: https://snapcraft.io/docs/debug-snaps#heading--snappy-debug # can be debugged with snappy debug: https://snapcraft.io/docs/debug-snaps#heading--snappy-debug
#- alsa
- audio-playback - audio-playback
- avahi-observe #- avahi-observe
- block-devices - block-devices
- cifs-mount #- cifs-mount
- daemon-notify #- daemon-notify
- desktop - desktop
- desktop-launch - desktop-launch
# - desktop-legacy - desktop-legacy
- dm-crypt - dm-crypt
- firewall-control #- firewall-control
- fuse-support - fuse-support
- hardware-observe - hardware-observe
- home - home
- hugepages-control - hugepages-control
- kernel-crypto-api - kernel-crypto-api
- log-observe #- log-observe
# may be necessary for solr # may be necessary for solr
- microstack-support #- microstack-support
- modem-manager #- modem-manager
- mount-control - mount-control
- mount-observe - mount-observe
- network - network
- network-bind - network-bind
- network-control #- network-control
- network-manager #- network-manager
- network-manager-observe #- network-manager-observe
- network-observe - network-observe
- network-setup-observe - network-setup-observe
- network-status - network-status
- opengl - opengl
- optical-drive - optical-drive
# may be necessary for solr # may be necessary for solr
- ppp #- ppp
- pulseaudio #- pulseaudio
- raw-input #- raw-input
- raw-usb #- raw-usb
- removable-media - removable-media
- sd-control #- sd-control
- system-files-autopsy - system-files-autopsy
- system-observe - system-observe
- system-trace #- system-trace
- udisks2 #- udisks2
# - unity7 # - unity7
- unity8 # - unity8
- wayland #- wayland
- x11 #- x11
parts: parts:
sleuthkit: sleuthkit:
...@@ -181,7 +183,8 @@ parts: ...@@ -181,7 +183,8 @@ parts:
- openjdk-17-jdk - openjdk-17-jdk
- perl - perl
# needed by solr to determine locally running ports # needed by solr to determine locally running ports
- iproute2 - lsof
#- iproute2
plugin: nil plugin: nil
# source: https://github.com/sleuthkit/autopsy.git # source: https://github.com/sleuthkit/autopsy.git
source: https://github.com/gdicristofaro/autopsy.git source: https://github.com/gdicristofaro/autopsy.git
...@@ -218,9 +221,9 @@ parts: ...@@ -218,9 +221,9 @@ parts:
chmod 755 "$AUTOPSY_LOCATION/bin/autopsy" chmod 755 "$AUTOPSY_LOCATION/bin/autopsy"
# some fixes so solr can startup in containment (use ss instead of lsof and don't use large pages) # some fixes so solr can startup in containment (use ss instead of lsof and don't use large pages)
sed -i 's/lsof -t -PniTCP:\$SOLR_PORT -sTCP:LISTEN/ss -ln | grep $SOLR_PORT/g' $AUTOPSY_LOCATION/autopsy/solr/bin/autopsy-solr # sed -i 's/lsof -t -PniTCP:\$SOLR_PORT -sTCP:LISTEN/ss -ln | grep $SOLR_PORT/g' $AUTOPSY_LOCATION/autopsy/solr/bin/autopsy-solr
sed -i 's/lsof -v 2>&1 | grep -q revision/ss --version/g' $AUTOPSY_LOCATION/autopsy/solr/bin/autopsy-solr # sed -i 's/lsof -v 2>&1 | grep -q revision/ss --version/g' $AUTOPSY_LOCATION/autopsy/solr/bin/autopsy-solr
sed -i '/^.*'-XX:\+UseLargePages'.*$/d' $AUTOPSY_LOCATION/autopsy/solr/bin/autopsy-solr # sed -i '/^.*'-XX:\+UseLargePages'.*$/d' $AUTOPSY_LOCATION/autopsy/solr/bin/autopsy-solr
# wrapper to setup temp dir if not exists; also could be easily modified for debugging purposes with snap try: https://snapcraft.io/docs/snap-try # wrapper to setup temp dir if not exists; also could be easily modified for debugging purposes with snap try: https://snapcraft.io/docs/snap-try
cat <<EOF > $AUTOPSY_LOCATION/bin/autopsywrapper.sh cat <<EOF > $AUTOPSY_LOCATION/bin/autopsywrapper.sh
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment