1
0
mirror of https://github.com/tommytran732/Linux-Setup-Scripts synced 2024-11-24 18:21:34 -05:00

Compliance update

Signed-off-by: Tommy <contact@tommytran.io>
This commit is contained in:
Tommy 2023-12-07 17:15:05 -07:00
parent 6a6b775631
commit 5aca397a76
No known key found for this signature in database
GPG Key ID: D30DEC268D3FEB17
6 changed files with 15 additions and 4 deletions

View File

@ -25,7 +25,9 @@ unpriv(){
}
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
sudo systemctl mask ctrl-alt-del.target
sudo systemctl mask debug-shell.service
sudo systemctl mask kdump.service
# Setting umask to 077
umask 077

View File

@ -23,7 +23,8 @@ unpriv(){
}
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
sudo systemctl mask ctrl-alt-del.target
sudo systemctl mask debug-shell.service
# Setup NTS
sudo rm -rf /etc/chrony/chrony.conf

View File

@ -21,7 +21,8 @@ output(){
}
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
systemctl mask ctrl-alt-del.target
systemctl mask debug-shell.service
# Setup NTS
rm -rf /etc/chrony/chrony.conf

View File

@ -25,7 +25,8 @@ unpriv(){
}
# Compliance
sudo systemctl disable --now ctrl-alt-del.target
sudo systemctl mask ctrl-alt-del.target
sudo systemctl mask debug-shell.service
# Setup NTS
sudo curl https://raw.githubusercontent.com/GrapheneOS/infrastructure/main/chrony.conf -o /etc/chrony.conf

View File

@ -33,6 +33,9 @@ sudo apt install -y usg
sudo apt autoremove -y
sudo usg fix cis_level2_workstation
sudo systemctl mask ctrl-alt-del.target
sudo systemctl mask debug-shell.service
# Remove AIDE
sudo apt purge -y aide*

View File

@ -33,6 +33,9 @@ sudo apt install -y usg curl libpam-pwquality
sudo apt autoremove -y
sudo usg fix cis_level2_server
sudo systemctl mask ctrl-alt-del.target
sudo systemctl mask debug-shell.service
# Remove AIDE
sudo apt purge -y aide*