1
0
mirror of https://github.com/tommytran732/QubesOS-Scripts synced 2024-11-25 11:01:32 -05:00
QubesOS-Scripts/debian/whonix-hardening.sh
2022-05-24 22:49:46 -04:00

17 lines
540 B
Bash

#!/bin/bash
#Enabling SUID Disabler and Permission Hardener
sudo systemctl enable --now permission-hardening
#Install LKRG
sudo apt update
sudo apt full-upgrade -y
sudo apt install --no-install-recommends lkrg-dkms linux-headers-amd64
#Enable hardened malloc
echo "/usr/lib/libhardened_malloc.so/libhardened_malloc.so" | sudo tee /etc/ld.so.preload
#Reduce kernel information leaks
#Will break a lot of applications. The apps I use on Whonix work fine with it so I am enabling it.
sudo systemctl enable --now hide-hardware-info.service