This repository has been archived by the owner on Apr 19, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Issue 1032: NSM: don't chown every file in /nsm/bro/extracted
- Loading branch information
Showing
7 changed files
with
88 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
73 changes: 73 additions & 0 deletions
73
debian/patches/Issue-1032:-NSM:-don't-chown-every-file-in-nsmbroextracted
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
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-0ubuntu0securityonion145) trusty; urgency=medium | ||
. | ||
* Issue 1032: NSM: don't chown every file in /nsm/bro/extracted | ||
Author: Doug Burks <doug.burks@gmail.com> | ||
|
||
--- | ||
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/sbin/nsm_sensor_ps-restart | ||
+++ securityonion-nsmnow-admin-scripts-20120724/usr/sbin/nsm_sensor_ps-restart | ||
@@ -366,7 +366,8 @@ if [ "$BRO_ENABLED" == "yes" ] && [ -z " | ||
/opt/bro/bin/broctl stop 2>&1 | grep -v "warning: new bro version detected" | ||
|
||
# set ownership of Bro directories | ||
- chown -R $BRO_USER:$BRO_GROUP /nsm/bro >/dev/null 2>&1 | ||
+ chown -R $BRO_USER:$BRO_GROUP /nsm/bro/logs /nsm/bro/spool >/dev/null 2>&1 | ||
+ chown $BRO_USER:$BRO_GROUP /nsm/bro/extracted >/dev/null 2>&1 | ||
|
||
# set capabilities on Bro binaries | ||
setcap cap_net_raw,cap_net_admin=eip /opt/bro/bin/bro | ||
--- securityonion-nsmnow-admin-scripts-20120724.orig/usr/sbin/nsm_sensor_ps-start | ||
+++ securityonion-nsmnow-admin-scripts-20120724/usr/sbin/nsm_sensor_ps-start | ||
@@ -361,7 +361,8 @@ if [ "$BRO_ENABLED" == "yes" ] && [ -z " | ||
fi | ||
|
||
# set ownership of Bro directories | ||
- chown -R $BRO_USER:$BRO_GROUP /nsm/bro >/dev/null 2>&1 | ||
+ chown -R $BRO_USER:$BRO_GROUP /nsm/bro/logs /nsm/bro/spool >/dev/null 2>&1 | ||
+ chown $BRO_USER:$BRO_GROUP /nsm/bro/extracted >/dev/null 2>&1 | ||
|
||
# set capabilities on Bro binaries | ||
setcap cap_net_raw,cap_net_admin=eip /opt/bro/bin/bro | ||
--- securityonion-nsmnow-admin-scripts-20120724.orig/usr/sbin/nsm_sensor_ps-status | ||
+++ securityonion-nsmnow-admin-scripts-20120724/usr/sbin/nsm_sensor_ps-status | ||
@@ -316,7 +316,8 @@ if [ "$BRO_ENABLED" == "yes" ] && [ -z " | ||
echo_msg 0 "Status: Bro" | ||
|
||
# set ownership of Bro directories | ||
- chown -R $BRO_USER:$BRO_GROUP /nsm/bro >/dev/null 2>&1 | ||
+ chown -R $BRO_USER:$BRO_GROUP /nsm/bro/logs /nsm/bro/spool >/dev/null 2>&1 | ||
+ chown $BRO_USER:$BRO_GROUP /nsm/bro/extracted >/dev/null 2>&1 | ||
|
||
# set capabilities on Bro binaries | ||
setcap cap_net_raw,cap_net_admin=eip /opt/bro/bin/bro | ||
--- securityonion-nsmnow-admin-scripts-20120724.orig/usr/sbin/nsm_sensor_ps-stop | ||
+++ securityonion-nsmnow-admin-scripts-20120724/usr/sbin/nsm_sensor_ps-stop | ||
@@ -319,7 +319,8 @@ if [ "$BRO_ENABLED" == "yes" ] && [ -z " | ||
/opt/bro/bin/broctl stop 2>&1 | grep -v "warning: new bro version detected" | ||
|
||
# set ownership of Bro directories | ||
- chown -R $BRO_USER:$BRO_GROUP /nsm/bro >/dev/null 2>&1 | ||
+ chown -R $BRO_USER:$BRO_GROUP /nsm/bro/logs /nsm/bro/spool >/dev/null 2>&1 | ||
+ chown $BRO_USER:$BRO_GROUP /nsm/bro/extracted >/dev/null 2>&1 | ||
|
||
# set capabilities on Bro binaries | ||
setcap cap_net_raw,cap_net_admin=eip /opt/bro/bin/bro |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters