···343343344344 # Security related features.
345345 RANDOMIZE_BASE? y
346346- STRICT_DEVMEM y # Filter access to /dev/mem
346346+ STRICT_DEVMEM? y # Filter access to /dev/mem
347347 SECURITY_SELINUX_BOOTPARAM_VALUE 0 # Disable SELinux by default
348348 SECURITY_YAMA? y # Prevent processes from ptracing non-children processes
349349 DEVKMEM n # Disable /dev/kmem
+2-2
pkgs/os-specific/linux/kernel/hardened-config.nix
···6161DEBUG_WX y # boot-time warning on RWX mappings
62626363# Stricter /dev/mem
6464-STRICT_DEVMEM y
6565-IO_STRICT_DEVMEM y
6464+STRICT_DEVMEM? y
6565+IO_STRICT_DEVMEM? y
66666767# Perform additional validation of commonly targeted structures.
6868DEBUG_CREDENTIALS y