mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-10-01 08:25:45 -04:00
Protect /bin/mount from 'chmod -x'.
/bin/mount exactwhitelist /usr/bin/mount exactwhitelist Remove SUID from 'mount' but keep executable. /bin/mount 745 root root /usr/bin/mount 745 root root https://forums.whonix.org/t/disable-suid-binaries/7706/61
This commit is contained in:
parent
e4e9c4e3b0
commit
f3ff32ddbb
@ -41,6 +41,12 @@
|
|||||||
/usr/lib/spice-gtk/spice-client-glib-usb-acl-helper exactwhitelist
|
/usr/lib/spice-gtk/spice-client-glib-usb-acl-helper exactwhitelist
|
||||||
/usr/lib/chromium/chrome-sandbox exactwhitelist
|
/usr/lib/chromium/chrome-sandbox exactwhitelist
|
||||||
|
|
||||||
|
## https://forums.whonix.org/t/disable-suid-binaries/7706/61
|
||||||
|
## Protect from 'chmod -x' (and SUID removal).
|
||||||
|
## SUID will be removed below in separate step.
|
||||||
|
/bin/mount exactwhitelist
|
||||||
|
/usr/bin/mount exactwhitelist
|
||||||
|
|
||||||
## There is a controversy about firejail but those who choose to install it
|
## There is a controversy about firejail but those who choose to install it
|
||||||
## should be able to use it.
|
## should be able to use it.
|
||||||
## https://www.whonix.org/wiki/Dev/Firejail#Security
|
## https://www.whonix.org/wiki/Dev/Firejail#Security
|
||||||
@ -92,6 +98,11 @@ dbus-daemon-launch-helper matchwhitelist
|
|||||||
# Permission Hardening
|
# Permission Hardening
|
||||||
######################################################################
|
######################################################################
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
/home/ 0755 root root
|
/home/ 0755 root root
|
||||||
/home/user/ 0700 user user
|
/home/user/ 0700 user user
|
||||||
/root/ 0700 root root
|
/root/ 0700 root root
|
||||||
|
Loading…
Reference in New Issue
Block a user