From 6d40311b8d66f70523672113f959dab5051ae36b Mon Sep 17 00:00:00 2001 From: Tommy Date: Tue, 26 Jul 2022 18:09:49 -0400 Subject: [PATCH] Create fedora-minimal.sh Signed-off-by: Tommy --- fedora-minimal/fedora-minimal.sh | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 fedora-minimal/fedora-minimal.sh diff --git a/fedora-minimal/fedora-minimal.sh b/fedora-minimal/fedora-minimal.sh new file mode 100644 index 0000000..c5602bb --- /dev/null +++ b/fedora-minimal/fedora-minimal.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Blacklisting kernel modules +sudo curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/Whonix/security-misc/master/etc/modprobe.d/30_security-misc.conf -o /etc/modprobe.d/30_security-misc.conf + +# Security kernel settings. +sudo curl --proxy http://127.0.0.1:8082 https://raw.githubusercontent.com/Whonix/security-misc/master/etc/sysctl.d/30_security-misc.conf -o /etc/sysctl.d/30_security-misc.conf +sudo sed -i 's/kernel.yama.ptrace_scope=2/kernel.yama.ptrace_scope=3/g' /etc/sysctl.d/30_security-misc.conf +sudo curl --proxy http://127.00.1:8082 https://raw.githubusercontent.com/Whonix/security-misc/master/etc/sysctl.d/30_silent-kernel-printk.conf -o /etc/sysctl.d/30_silent-kernel-printk.conf