Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
Autopsy
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
IRT
Autopsy
Commits
d89355f6
Commit
d89355f6
authored
1 year ago
by
Greg DiCristofaro
Browse files
Options
Downloads
Patches
Plain Diff
updates
parent
4e9b3b77
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
snap/snapcraft.yaml
+29
-26
29 additions, 26 deletions
snap/snapcraft.yaml
with
29 additions
and
26 deletions
snap/snapcraft.yaml
+
29
−
26
View file @
d89355f6
...
...
@@ -51,7 +51,8 @@ apps:
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_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
# More info here: https://snapcraft.io/docs/gnome-extension
extensions
:
[
gnome
]
...
...
@@ -59,52 +60,53 @@ apps:
plugs
:
# taken from https://snapcraft.io/docs/supported-interfaces
# can be debugged with snappy debug: https://snapcraft.io/docs/debug-snaps#heading--snappy-debug
#- alsa
-
audio-playback
-
avahi-observe
#
- avahi-observe
-
block-devices
-
cifs-mount
-
daemon-notify
#
- cifs-mount
#
- daemon-notify
-
desktop
-
desktop-launch
#
- desktop-legacy
-
desktop-legacy
-
dm-crypt
-
firewall-control
#
- firewall-control
-
fuse-support
-
hardware-observe
-
home
-
hugepages-control
-
kernel-crypto-api
-
log-observe
#
- log-observe
# may be necessary for solr
-
microstack-support
-
modem-manager
#
- microstack-support
#
- modem-manager
-
mount-control
-
mount-observe
-
network
-
network-bind
-
network-control
-
network-manager
-
network-manager-observe
#
- network-control
#
- network-manager
#
- network-manager-observe
-
network-observe
-
network-setup-observe
-
network-status
-
opengl
-
optical-drive
# may be necessary for solr
-
ppp
-
pulseaudio
-
raw-input
-
raw-usb
#
- ppp
#
- pulseaudio
#
- raw-input
#
- raw-usb
-
removable-media
-
sd-control
#
- sd-control
-
system-files-autopsy
-
system-observe
-
system-trace
-
udisks2
#
- system-trace
#
- udisks2
# - unity7
-
unity8
-
wayland
-
x11
#
- unity8
#
- wayland
#
- x11
parts
:
sleuthkit
:
...
...
@@ -181,7 +183,8 @@ parts:
-
openjdk-17-jdk
-
perl
# needed by solr to determine locally running ports
-
iproute2
-
lsof
#- iproute2
plugin
:
nil
# source: https://github.com/sleuthkit/autopsy.git
source
:
https://github.com/gdicristofaro/autopsy.git
...
...
@@ -218,9 +221,9 @@ parts:
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)
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 '/^.*'-XX:\+UseLargePages'.*$/d' $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 '/^.*'-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
cat <<EOF > $AUTOPSY_LOCATION/bin/autopsywrapper.sh
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment