Merge remote-tracking branch 'origin/master'

This commit is contained in:
Patrick Schleizer 2019-06-28 03:00:21 -04:00
commit ccb89cfd55
No known key found for this signature in database
GPG Key ID: CB8D50BB77BB3C48
7 changed files with 40 additions and 1 deletions

View File

@ -0,0 +1,2 @@
# Enables IOMMU to prevent DMA attacks.
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX intel_iommu=on amd_iommu=on"

View File

@ -0,0 +1,3 @@
# Blacklist thunderbolt and firewire to prevent some DMA attacks.
blacklist firewire-core
blacklist thunderbolt

View File

@ -0,0 +1,2 @@
# Restricts the kernel log to root only.
kernel.dmesg_restrict=1

2
etc/sysctl.d/sysrq.conf Normal file
View File

@ -0,0 +1,2 @@
# Allow only rebooting/shutting down with the SysRq key.
kernel.sysrq=128

View File

@ -15,5 +15,12 @@ net.ipv6.conf.default.accept_redirects=0
net.ipv4.conf.all.send_redirects=0
net.ipv4.conf.default.send_redirects=0
# Ignores ICMP requests
# Ignores ICMP requests.
net.ipv4.icmp_echo_ignore_all=1
# Enables TCP syncookies.
net.ipv4.tcp_syncookies=1
# Disable source routing.
net.ipv4.conf.all.accept_source_route=0
net.ipv4.conf.default.accept_source_route=0

View File

@ -0,0 +1,9 @@
[Unit]
Description=Removes the System.map files
[Service]
Type=oneshot
ExecStart=/usr/lib/security-misc/remove-system.map
[Install]
WantedBy=multi-user.target

View File

@ -0,0 +1,14 @@
#!/bin/bash
## Copyright (C) 2012 - 2018 ENCRYPTED SUPPORT LP <adrelanos@riseup.net>
## See the file COPYING for copying conditions.
shopt -s nullglob
# Removes the System.map files as they are only used for debugging or malware.
for filename in /boot/System.map-*
do
if [ -f "${filename}" ]; then
rm -f "${filename}"
fi
done