From 74b9bc0a529bb0ab03ffc8f6fd2825668dac096d Mon Sep 17 00:00:00 2001 From: Tommaso Chiti Date: Sun, 13 Jun 2021 10:03:02 +0200 Subject: [PATCH] Update easy-arch.sh --- easy-arch.sh | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/easy-arch.sh b/easy-arch.sh index a0565ff..4145a39 100644 --- a/easy-arch.sh +++ b/easy-arch.sh @@ -179,16 +179,6 @@ sed -i -e 's,modconf block filesystems keyboard,keyboard keymap modconf block en UUID=$(blkid $Cryptroot | cut -f2 -d'"') sed -i "s/quiet/quiet cryptdevice=UUID=$UUID:cryptroot root=$BTRFS lsm=lockdown,yama,apparmor,bpf/g" /mnt/etc/default/grub -# Security kernel settings. -echo "kernel.kptr_restrict = 2" > /mnt/etc/sysctl.d/51-kptr-restrict.conf -echo "kernel.kexec_load_disabled = 1" > /mnt/etc/sysctl.d/51-kexec-restrict.conf -cat << EOF >> /mnt/etc/sysctl.d/10-security.conf - fs.protected_hardlinks = 1 - fs.protected_symlinks = 1 - net.core.bpf_jit_harden = 2 - kernel.yama.ptrace_scope = 3 -EOF - # Configuring the system. arch-chroot /mnt /bin/bash -e </dev/null # Enabling Reflector timer. +echo "Enabling Reflector." systemctl enable reflector.timer --root=/mnt &>/dev/null # Enabling Snapper automatic snapshots.