nixpkgs/nixos/modules
Tamara Schmitz b80c3284d5
nixos/hardened: update hardened profile to new recommendations
Borrowing from here to match hardened profile with more recent kernels:
* https://madaidans-insecurities.github.io/guides/linux-hardening.html?#boot-parameters
* https://github.com/a13xp0p0v/kernel-hardening-checker/

Removed "slub_debug" as that option disables kernel memory address
hashing. You also see a big warning about this in the dmesg:
"This system shows unhashed kernel memory addresses via the console, logs, and other interfaces."

"init_on_alloc=1" and "init_on_free=1" zeroes all SLAB and SLUB allocations. Introduced in 6471384af2a6530696fc0203bafe4de41a23c9ef. Also the default for the Android Google kernel btw. It is on by default through the KConfig.

"slab_nomerge" prevents the merging of slab/slub caches. These are
effectively slab/slub pools.

"LEGACY_VSYSCALL_NONE" disables the older vsyscall mechanic that relies on
static address. It got superseeded by vdsos a decade ago. Read some
LWN.net to learn more ;)

"debugfs=off" I'm sure there are some few userspace programs that rely on
debugfs, but they shouldn't.

Most other things mentioned on the blog where already the default on a
running machine or may not be applicable.

Most other Kconfigs changes come from the kernel hardening checker and
were added, when they were not applied to the kernel already.

Unsure about CONFIG_STATIC_USERMODEHELPER. Would need testing.
2024-01-27 20:43:58 +00:00
..
config Merge pull request #270727 from nikstur/nixos-perlless-activation 2024-01-22 10:11:44 +01:00
hardware nixos/corectrl: add package option 2024-01-23 15:35:44 -05:00
i18n/input-method nixos/fcitx5: allow using the wayland frontend instead of the fcitx5 one 2024-01-04 15:06:58 -05:00
image image/repart: add version and compression options 2024-01-19 14:43:29 +01:00
installer Merge pull request #279174 from SuperSandro2000/iso-minimal-override 2024-01-14 15:26:29 -05:00
misc Merge pull request #277633 from nikstur/image-repart-improvements 2024-01-19 15:25:08 +01:00
profiles nixos/hardened: update hardened profile to new recommendations 2024-01-27 20:43:58 +00:00
programs Merge pull request #265056 from rgri/init-mouse-actions 2024-01-27 03:47:42 +01:00
security nixos/acme: fix assertion for renamed option 2024-01-19 16:28:56 -05:00
services Merge pull request #284115 from jacekpoz/ratbagd-module 2024-01-27 11:12:55 -05:00
system nixos/systemd-boot: move builder script in bin folder 2024-01-27 01:29:40 +00:00
tasks Merge pull request #279852 from Madouura/pr/bcachefs 2024-01-25 01:11:04 +01:00
testing nixos/test-instrumentation: use file to set root password 2024-01-18 23:08:13 +01:00
virtualisation Merge pull request #281186 from Sohalt/podman-dns-firewall 2024-01-19 17:01:23 +01:00
module-list.nix nixos/systemd-lock-handler: init 2024-01-27 11:55:46 +02:00
rename.nix prayer: remove 2023-11-10 20:44:28 -03:00