aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-31 18:39:14 -0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2024-01-31 18:39:40 -0800
commitdb25b7d6e720b7bd8b0255d60e726c35712c6e9d (patch)
tree09317ad9a36da91bad56244dfc6d045e36536a61
parentd465f07eb32f0df5d040b07987378f24d3e46afe (diff)
downloadvulns-db25b7d6e720b7bd8b0255d60e726c35712c6e9d.tar.gz
bippy: update with latest version
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rwxr-xr-xscripts/bippy12
1 files changed, 9 insertions, 3 deletions
diff --git a/scripts/bippy b/scripts/bippy
index d59be7a6..9fc24f9e 100755
--- a/scripts/bippy
+++ b/scripts/bippy
@@ -16,13 +16,12 @@
# Requires:
# A kernel git tree with the SHA to be used in it
# jo - the json output tool, found at: https://github.com/jpmens/jo
-# fixed_in_version - tool to find what kernel a specific SHA is in
+# id_found_in - tool to find what kernel a specific SHA is in
# TODO - make these options that are not hard-coded
KERNEL_TREE="/home/gregkh/linux/stable/linux-stable"
FOUND_IN="/home/gregkh/linux/stable/commit_tree/id_found_in"
-FIXED_IN="/home/gregkh/linux/scripts/fixed_in_version"
# Hard coded for now, but maybe come from a file?
ORGID="f4215fc3-5b6b-47ff-a258-f7189bd81038"
@@ -34,6 +33,13 @@ USER="gregkh@linuxfoundation.org"
# don't use unset variables
set -o nounset
+# set where the tool was run from,
+# the name of our script,
+# and the git version of it
+DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
+SCRIPT=${0##*/}
+SCRIPT_VERSION=$(cd "${DIR}" && git show -s --abbrev-commit --abbrev=12 --pretty=format:"%h")
+
# global variables
vuln_kernels=()
@@ -164,7 +170,7 @@ done
URL="https://git.kernel.org/torvalds/c/${GIT_SHA_FULL}"
-x_generator=$(jo -- engine="bippy")
+x_generator=$(jo -- engine="${SCRIPT}-${SCRIPT_VERSION}")
cveMetadata=$(jo -- assignerOrgId="${ORGID}" \
cveID="${CVE_NUMBER}" \