Merge pull request #285 from Kicksecure/permission-hardener-mount

Permission Hardener: treat mount same as umount
This commit is contained in:
Patrick Schleizer 2024-12-14 15:18:56 -05:00 committed by GitHub
commit 9d06341c91
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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 745 root root
/usr/bin/mount 745 root root
/bin/mount 755 root root
/usr/bin/mount 755 root root
/bin/umount 755 root root
/usr/bin/umount 755 root root