From bc22fc9fdba834d0a2d8fdc75b86934e56b317c9 Mon Sep 17 00:00:00 2001 From: Patrick Schleizer Date: Mon, 30 Mar 2020 17:12:43 -0400 Subject: [PATCH] skip check if any non-root user is a member of group sudo and console if file /var/lib/security-misc/skip_install_check exists --- debian/security-misc.preinst | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/debian/security-misc.preinst b/debian/security-misc.preinst index 428bf82..edf6ee9 100644 --- a/debian/security-misc.preinst +++ b/debian/security-misc.preinst @@ -49,6 +49,9 @@ user_groups_modifications() { } sudo_users_check () { + if test -f /var/lib/security-misc/skip_install_check ; then + return 0 + fi if command -v "qubesdb-read" &>/dev/null; then ## Qubes users can use dom0 to get a root terminal emulator. ## For example: @@ -96,6 +99,9 @@ sudo_users_check () { } console_users_check() { + if test -f /var/lib/security-misc/skip_install_check ; then + return 0 + fi if command -v "qubesdb-read" &>/dev/null; then ## Qubes users can use dom0 to get a root terminal emulator. ## For example: