Skip to content
This repository has been archived by the owner on Apr 19, 2021. It is now read-only.

Commit

Permalink
when configuring Squert, run securityonion_update.sh as well
Browse files Browse the repository at this point in the history
  • Loading branch information
dougburks committed Jan 22, 2018
1 parent 21e3684 commit e7e2a1c
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
6 changes: 6 additions & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
securityonion-nsmnow-admin-scripts (20120724-0ubuntu0securityonion165) trusty; urgency=medium

* when configuring Squert, run securityonion_update.sh as well

-- Doug Burks <[email protected]> Mon, 22 Jan 2018 09:33:53 -0500

securityonion-nsmnow-admin-scripts (20120724-0ubuntu0securityonion164) trusty; urgency=medium

* fix postinst
Expand Down
1 change: 1 addition & 0 deletions debian/patches/series
Original file line number Diff line number Diff line change
Expand Up @@ -157,3 +157,4 @@ remove-so-common-since-it-already-exists-in-securityonion-elastic-package
remove-old-files
postinst---add-conditions-for-updating-etcinitsecurityonion.conf
avoid-errors-when-no-unified2-files-are-available-for-deletion
when-configuring-Squert,-run-securityonion_update.sh-as-well
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
Description: <short summary of the patch>
TODO: Put a short summary on the line above and replace this paragraph
with a longer explanation of this change. Complete the meta-information
with other relevant fields (see below for details). To make it easier, the
information below has been extracted from the changelog. Adjust it or drop
it.
.
securityonion-nsmnow-admin-scripts (20120724-0ubuntu0securityonion165) trusty; urgency=medium
.
* when configuring Squert, run securityonion_update.sh as well
Author: Doug Burks <[email protected]>

---
The information above should follow the Patch Tagging Guidelines, please
checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here
are templates for supplementary fields that you might want to add:

Origin: <vendor|upstream|other>, <url of original patch>
Bug: <url in upstream bugtracker>
Bug-Debian: http://bugs.debian.org/<bugnumber>
Bug-Ubuntu: https://launchpad.net/bugs/<bugnumber>
Forwarded: <no|not-needed|url proving that it has been forwarded>
Reviewed-By: <name and email of someone who approved the patch>
Last-Update: <YYYY-MM-DD>

--- securityonion-nsmnow-admin-scripts-20120724.orig/usr/lib/nsmnow/lib-nsm-server-utils
+++ securityonion-nsmnow-admin-scripts-20120724/usr/lib/nsmnow/lib-nsm-server-utils
@@ -608,6 +608,9 @@ EOF_SGUIL_DB
mysql -N -B --user=root -e "GRANT UPDATE on securityonion_db.user_info TO 'readonly'@'localhost';"
mysql -N -B --user=root -e "GRANT INSERT,UPDATE ON securityonion_db.object_mappings TO 'readonly'@'localhost';"

+ # Additional perms in securityonion_update.sql
+ bash /var/www/so/squert/.scripts/securityonion_update.sh
+
# Allow pivoting from Squert to ELSA
bash /var/www/so/squert/.scripts/securityonion_create_elsa_link.sh

3 changes: 3 additions & 0 deletions usr/lib/nsmnow/lib-nsm-server-utils
Original file line number Diff line number Diff line change
Expand Up @@ -608,6 +608,9 @@ EOF_SGUIL_DB
mysql -N -B --user=root -e "GRANT UPDATE on securityonion_db.user_info TO 'readonly'@'localhost';"
mysql -N -B --user=root -e "GRANT INSERT,UPDATE ON securityonion_db.object_mappings TO 'readonly'@'localhost';"

# Additional perms in securityonion_update.sql
bash /var/www/so/squert/.scripts/securityonion_update.sh

# Allow pivoting from Squert to ELSA
bash /var/www/so/squert/.scripts/securityonion_create_elsa_link.sh

Expand Down

0 comments on commit e7e2a1c

Please sign in to comment.