mirror of
https://github.com/classy-giraffe/easy-arch.git
synced 2025-11-17 19:40:55 +00:00
Merge pull request #10 from tommytran732/patch-7
Some security settings from the Arch Wiki
This commit is contained in:
commit
77ddd82d57
1 changed files with 10 additions and 0 deletions
10
easy-arch.sh
10
easy-arch.sh
|
|
@ -186,6 +186,16 @@ arch-chroot /mnt /bin/bash -e <<EOF
|
|||
# Creating grub config file.
|
||||
echo "Creating GRUB config file."
|
||||
grub-mkconfig -o /boot/grub/grub.cfg &>/dev/null
|
||||
|
||||
#Security kernel settings
|
||||
echo "kernel.kptr_restrict = 2" > /etc/sysctl.d/51-kptr-restrict.conf
|
||||
echo "kernel.kexec_load_disabled = 1" > /etc/sysctl.d/51-kexec-restrict.conf
|
||||
echo << EOF >> /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
|
||||
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue