This repository has been archived by the owner on Feb 6, 2024. It is now read-only.
forked from blue-build/legacy-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: apply patches to harden system (part 3)
* feat: blacklist numerous unused kernel modules * feat: include the option to apply additional hardening * feat: apply some hardened sysctl values Everything was taken from here: https://github.com/secureblue/secureblue
- Loading branch information
1 parent
5122576
commit 8fb3882
Showing
5 changed files
with
152 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
install dccp /bin/true | ||
install sctp /bin/true | ||
install rds /bin/true | ||
install tipc /bin/true | ||
install firewire-core /bin/true | ||
install firewire_core /bin/true | ||
install firewire-ohci /bin/true | ||
install firewire_ohci /bin/true | ||
install firewire_sbp2 /bin/true | ||
install firewire-sbp2 /bin/true | ||
install thunderbolt /bin/true | ||
install n-hdlc /bin/false | ||
install ax25 /bin/false | ||
install netrom /bin/false | ||
install x25 /bin/false | ||
install rose /bin/false | ||
install decnet /bin/false | ||
install econet /bin/false | ||
install af_802154 /bin/false | ||
install ipx /bin/false | ||
install appletalk /bin/false | ||
install psnap /bin/false | ||
install p8023 /bin/false | ||
install p8022 /bin/false | ||
install can /bin/false | ||
install atm /bin/false | ||
install cramfs /bin/false | ||
install freevxfs /bin/false | ||
install jffs2 /bin/false | ||
install hfs /bin/false | ||
install hfsplus /bin/false | ||
install squashfs /bin/false | ||
install udf /bin/false | ||
install cifs /bin/true | ||
install nfs /bin/true | ||
install nfsv3 /bin/true | ||
install nfsv4 /bin/true | ||
install ksmbd /bin/true | ||
install gfs2 /bin/true | ||
install vivid /bin/false | ||
install ohci1394 /bin/false | ||
install sbp2 /bin/false | ||
install dv1394 /bin/false | ||
install raw1394 /bin/false | ||
install video1394 /bin/false | ||
install msr /bin/true | ||
install vivid /bin/false | ||
|
||
blacklist tipc | ||
blacklist dccp | ||
blacklist sctp | ||
blacklist rds | ||
blacklist ath_pci |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,15 @@ | ||
# ZRAM tweaks (PopOS defaults) | ||
vm.swappiness=180 | ||
vm.watermark_boost_factor=0 | ||
vm.watermark_scale_factor=125 | ||
vm.page-cluster=0 | ||
vm.swappiness = 180 | ||
vm.watermark_boost_factor = 0 | ||
vm.watermark_scale_factor = 125 | ||
vm.page-cluster = 0 | ||
|
||
# Prevent long file transfer OOM | ||
vm.dirty_bytes=268435456 | ||
vm.dirty_background_bytes=134217728 | ||
vm.dirty_bytes = 268435456 | ||
vm.dirty_background_bytes = 134217728 | ||
|
||
# Increase memory maps (SteamOS default) | ||
vm.max_map_count=2147483642 | ||
vm.max_map_count = 2147483642 | ||
|
||
# Restrict userfaultfd to CAP_SYS_PTRACE | ||
vm.unprivileged_userfaultfd = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters