mirror of
https://github.com/Kicksecure/security-misc.git
synced 2024-12-25 23:09:25 -05:00
Merge remote-tracking branch 'origin/master'
This commit is contained in:
commit
ccb89cfd55
2
etc/default/grub.d/40_enable_iommu.cfg
Normal file
2
etc/default/grub.d/40_enable_iommu.cfg
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Enables IOMMU to prevent DMA attacks.
|
||||||
|
GRUB_CMDLINE_LINUX="$GRUB_CMDLINE_LINUX intel_iommu=on amd_iommu=on"
|
3
etc/modprobe.d/blacklist-dma.conf
Normal file
3
etc/modprobe.d/blacklist-dma.conf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# Blacklist thunderbolt and firewire to prevent some DMA attacks.
|
||||||
|
blacklist firewire-core
|
||||||
|
blacklist thunderbolt
|
2
etc/sysctl.d/dmesg_restrict.conf
Normal file
2
etc/sysctl.d/dmesg_restrict.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Restricts the kernel log to root only.
|
||||||
|
kernel.dmesg_restrict=1
|
2
etc/sysctl.d/sysrq.conf
Normal file
2
etc/sysctl.d/sysrq.conf
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
# Allow only rebooting/shutting down with the SysRq key.
|
||||||
|
kernel.sysrq=128
|
@ -15,5 +15,12 @@ net.ipv6.conf.default.accept_redirects=0
|
|||||||
net.ipv4.conf.all.send_redirects=0
|
net.ipv4.conf.all.send_redirects=0
|
||||||
net.ipv4.conf.default.send_redirects=0
|
net.ipv4.conf.default.send_redirects=0
|
||||||
|
|
||||||
# Ignores ICMP requests
|
# Ignores ICMP requests.
|
||||||
net.ipv4.icmp_echo_ignore_all=1
|
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
|
||||||
|
9
lib/systemd/system/remove-system-map.service
Normal file
9
lib/systemd/system/remove-system-map.service
Normal 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
|
14
usr/lib/security-misc/remove-system.map
Normal file
14
usr/lib/security-misc/remove-system.map
Normal 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
|
Loading…
Reference in New Issue
Block a user