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
This commit is contained in:
Patrick Schleizer 2020-03-30 17:12:43 -04:00
parent d7a69628b1
commit bc22fc9fdb
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -49,6 +49,9 @@ user_groups_modifications() {
} }
sudo_users_check () { 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 if command -v "qubesdb-read" &>/dev/null; then
## Qubes users can use dom0 to get a root terminal emulator. ## Qubes users can use dom0 to get a root terminal emulator.
## For example: ## For example:
@ -96,6 +99,9 @@ sudo_users_check () {
} }
console_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 if command -v "qubesdb-read" &>/dev/null; then
## Qubes users can use dom0 to get a root terminal emulator. ## Qubes users can use dom0 to get a root terminal emulator.
## For example: ## For example: