[Hardening] Forbid sudo usage by non-wheel users

This commit is contained in:
Antoine Viallon 2023-01-01 20:04:23 +01:00
parent bab9dfb6c8
commit c4dda59100
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -47,6 +47,8 @@ in
aviallon.hardening.expensive = mkIf cfg.hardcore (mkForce true); aviallon.hardening.expensive = mkIf cfg.hardcore (mkForce true);
security.sudo.execWheelOnly = true;
services.openssh.permitRootLogin = "prohibit-password"; services.openssh.permitRootLogin = "prohibit-password";
security.apparmor.enable = true; security.apparmor.enable = true;