permission hardner: treat mount the same way we treat umount

Thanks to @the-moog for the bug report!

fixes https://github.com/Kicksecure/security-misc/issues/284
This commit is contained in:
Patrick Schleizer 2024-12-06 09:48:58 -05:00
parent 93b51819d4
commit 5b88e92e5c
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48

View File

@ -10,8 +10,12 @@
## SUID will be removed below in separate step.
/bin/mount exactwhitelist
/usr/bin/mount exactwhitelist
/bin/umount exactwhitelist
/usr/bin/umount exactwhitelist
## Remove SUID from 'mount' but keep executable.
## https://forums.whonix.org/t/disable-suid-binaries/7706/61
/bin/mount 755 root root
/usr/bin/mount 755 root root
/bin/umount 755 root root
/usr/bin/umount 755 root root