From 78527ab87c0eb2de6632d03a451e58de549f816b Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Fri, 24 Jan 2020 04:20:49 -0500 Subject: [PATCH 1/3] Steno - BPF Config --- salt/pcap/files/compile_bpf.sh | 37 ++++++++++++++++++++++++++++++++++ salt/pcap/files/config | 4 ++-- salt/pcap/init.sls | 36 ++++++++++++++++++++++++++++++++- 3 files changed, 74 insertions(+), 3 deletions(-) create mode 100644 salt/pcap/files/compile_bpf.sh diff --git a/salt/pcap/files/compile_bpf.sh b/salt/pcap/files/compile_bpf.sh new file mode 100644 index 000000000..44c5b8249 --- /dev/null +++ b/salt/pcap/files/compile_bpf.sh @@ -0,0 +1,37 @@ +#!/bin/bash + +# Copyright 2014 Google Inc. All rights reserved. +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +if [ "$#" -lt 2 ]; then + cat 1>&2 < Date: Fri, 24 Jan 2020 04:22:47 -0500 Subject: [PATCH 2/3] Steno - fix disk percentage --- salt/pcap/files/config | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/pcap/files/config b/salt/pcap/files/config index a41645e88..0f06d1c7e 100644 --- a/salt/pcap/files/config +++ b/salt/pcap/files/config @@ -4,7 +4,7 @@ { "PacketsDirectory": "/nsm/pcap" , "IndexDirectory": "/nsm/pcapindex" , "MaxDirectoryFiles": 30000 - , "DiskFreePercentage": 5 + , "DiskFreePercentage": 10 } ] , "StenotypePath": "/usr/bin/stenotype" From 3262854f4e37b28fa80aa562cfa22ceeb0504930 Mon Sep 17 00:00:00 2001 From: Josh Brower Date: Fri, 24 Jan 2020 04:30:06 -0500 Subject: [PATCH 3/3] Steno - fix error name --- salt/pcap/init.sls | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/salt/pcap/init.sls b/salt/pcap/init.sls index a91f6bfce..16d002250 100644 --- a/salt/pcap/init.sls +++ b/salt/pcap/init.sls @@ -53,7 +53,7 @@ stenoconfdir: bpfcompilationfailure: test.configurable_test_state: - - name: foo + - name: bpfcompfailure - changes: False - result: False - comment: "BPF Compilation Failed - Discarding specified BPF"