From 9b0d3e34fc8e1981cf59b17aed8abcc38052fc61 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Tue, 14 Feb 2017 02:37:08 +0000 Subject: [PATCH] add usr/lib/security-misc/apt-get-update-sanity-test a CVE-2016-1252 sanity test script --- usr/lib/security-misc/apt-get-update-sanity-test | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100755 usr/lib/security-misc/apt-get-update-sanity-test diff --git a/usr/lib/security-misc/apt-get-update-sanity-test b/usr/lib/security-misc/apt-get-update-sanity-test new file mode 100755 index 0000000..6ac93a5 --- /dev/null +++ b/usr/lib/security-misc/apt-get-update-sanity-test @@ -0,0 +1,12 @@ +#!/bin/bash + +## This file is part of Whonix. +## Copyright (C) 2012 - 2014 Patrick Schleizer +## See the file COPYING for copying conditions. + +set -x +set -e +set -o pipefail + +wc -L "/var/lib/apt/lists/"*InRelease +wc -L "/var/lib/apt/lists/"*InRelease | awk '$1 > 1024 {print; exit 1}'