Skip to content

Commit 4ccae72

Browse files
committed
Update kernel module blacklist URLs
1 parent d443828 commit 4ccae72

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

Proxmox-9.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,8 @@ proxmox-boot-tool refresh
8585
###
8686

8787
# Kernel hardening
88-
curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/modprobe.d/server-blacklist.conf | tee /etc/modprobe.d/server-blacklist.conf > /dev/null
88+
curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/usr/lib/modprobe.d/secureblue-framebuffer.conf | tee /etc/modprobe.d/framebuffer-blacklist.conf > /dev/null
89+
curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/usr/lib/modprobe.d/secureblue.conf | tee /etc/modprobe.d/server-blacklist.conf > /dev/null
8990
curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/sysctl.d/99-server.conf | tee /etc/sysctl.d/99-server.conf > /dev/null
9091
sysctl -p /etc/sysctl.d
9192

RHEL-10.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,9 @@ sudo systemctl daemon-reload
7171
sudo systemctl restart sshd
7272

7373
# Security kernel settings
74-
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/modprobe.d/server-blacklist.conf | sudo tee /etc/modprobe.d/server-blacklist.conf > /dev/null
74+
unpriv curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/usr/lib/modprobe.d/secureblue-framebuffer.conf | sudo tee /etc/modprobe.d/framebuffer-blacklist.conf > /dev/null
75+
sudo chmod 644 /etc/modprobe.d/framebuffer-blacklist.conf
76+
unpriv curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/usr/lib/modprobe.d/secureblue.conf | sudo tee /etc/modprobe.d/server-blacklist.conf > /dev/null
7577
sudo chmod 644 /etc/modprobe.d/server-blacklist.conf
7678
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/sysctl.d/99-server.conf | sudo tee /etc/sysctl.d/99-server.conf > /dev/null
7779
sudo chmod 644 /etc/sysctl.d/99-server.conf

TrueNAS-25.04.sh renamed to TrueNAS-25.10.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ sudo systemctl daemon-reload
4949
sudo systemctl restart sshd
5050

5151
# Kernel hardening
52-
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/modprobe.d/server-blacklist.conf | sudo tee /etc/modprobe.d/server-blacklist.conf > /dev/null
53-
sed -i 's/^install squashfs/#install squashfs/' /etc/modprobe.d/server-blacklist.conf
52+
unpriv curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/usr/lib/modprobe.d/secureblue-framebuffer.conf | sudo tee /etc/modprobe.d/framebuffer-blacklist.conf > /dev/null
53+
unpriv curl -s https://raw.githubusercontent.com/secureblue/secureblue/live/files/system/usr/lib/modprobe.d/secureblue.conf | sudo tee /etc/modprobe.d/server-blacklist.conf > /dev/null
54+
sudo sed -i 's/^install squashfs/#install squashfs/' /etc/modprobe.d/server-blacklist.conf
5455
sudo chmod 644 /etc/modprobe.d/server-blacklist.conf
5556
unpriv curl -s https://raw.githubusercontent.com/Metropolis-nexus/Common-Files/main/etc/sysctl.d/99-server.conf | sudo tee /etc/sysctl.d/99-server.conf > /dev/null
5657
sudo chmod 644 /etc/sysctl.d/99-server.conf

0 commit comments

Comments
 (0)