From ff3412fbe06476cb295dfd9d61b26694f289d389 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Wed, 27 Nov 2019 10:22:31 -0500 Subject: [PATCH] fix, make sure to undo pam changes on package removal Thanks to minimal for the bug report! https://forums.whonix.org/t/is-security-misc-suitable-for-hardening-bridges-and-relays/8299/11 --- debian/security-misc.postrm | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 debian/security-misc.postrm diff --git a/debian/security-misc.postrm b/debian/security-misc.postrm new file mode 100644 index 0000000..4ff6c36 --- /dev/null +++ b/debian/security-misc.postrm @@ -0,0 +1,34 @@ +#!/bin/bash + +## Copyright (C) 2012 - 2019 ENCRYPTED SUPPORT LP +## See the file COPYING for copying conditions. + +if [ -f /usr/lib/helper-scripts/pre.bsh ]; then + source /usr/lib/helper-scripts/pre.bsh +fi + +set -e + +true " +##################################################################### +## INFO: BEGIN: $DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME $@ +##################################################################### +" + +## https://forums.whonix.org/t/is-security-misc-suitable-for-hardening-bridges-and-relays/8299/11 +pam-auth-update --package --remove "$DPKG_MAINTSCRIPT_PACKAGE" + +true "INFO: debhelper beginning here." + +#DEBHELPER# + +true "INFO: Done with debhelper." + +true " +##################################################################### +## INFO: END : $DPKG_MAINTSCRIPT_PACKAGE $DPKG_MAINTSCRIPT_NAME $@ +##################################################################### +" + +## Explicitly "exit 0", so eventually trapped errors can be ignored. +exit 0