mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-26 03:09:26 -05:00
skip sudo_users_check in Qubes
Qubes users can use dom0 to get a root terminal emulator. For example: qvm-run -u root debian-10 xterm
This commit is contained in:
parent
53e4717c62
commit
ebae9eef38
7
debian/security-misc.preinst
vendored
7
debian/security-misc.preinst
vendored
@ -16,6 +16,13 @@ true "
|
||||
"
|
||||
|
||||
sudo_users_check () {
|
||||
if command -v "qubesdb-read" &>/dev/null; then
|
||||
## Qubes users can use dom0 to get a root terminal emulator.
|
||||
## For example:
|
||||
## qvm-run -u root debian-10 xterm
|
||||
return 0
|
||||
fi
|
||||
|
||||
sudo_users="$(getent group sudo | cut -d: -f4)"
|
||||
## example sudo_users:
|
||||
## user,root
|
||||
|
Loading…
Reference in New Issue
Block a user