nixpkgs/nixos/modules
Joachim Fasting 878ad1ce6e
nixos: add option to lock kernel modules
Adds an option `security.lockKernelModules` that, when enabled, disables
kernel module loading once the system reaches its normal operating state.

The rationale for this over simply setting the sysctl knob is to allow
some legitmate kernel module loading to occur; the naive solution breaks
too much to be useful.

The benefit to the user is to help ensure the integrity of the kernel
runtime: only code loaded as part of normal system initialization will be
available in the kernel for the duration of the boot session.  This helps
prevent injection of malicious code or unexpected loading of legitimate
but normally unused modules that have exploitable bugs (e.g., DCCP use
after free CVE-2017-6074, n_hldc CVE-2017-2636, XFRM framework
CVE-2017-7184, L2TPv3 CVE-2016-10200).

From an aestethic point of view, enabling this option helps make the
configuration more "declarative".

Closes https://github.com/NixOS/nixpkgs/pull/24681
2017-04-30 12:05:37 +02:00
..
config treewide: use boolToString function 2017-04-11 18:18:53 +02:00
hardware rtl8192su-firmware: init at unstable-2016-10-05 2017-03-31 10:49:38 +02:00
i18n/input-method Remove top-level kde5 attribute 2017-02-27 11:49:10 -06:00
installer nix: 1.11.8 -> 1.11.9 2017-04-25 17:19:10 +02:00
misc Merge branch 'master' into aria2.service 2017-04-27 17:50:13 +03:00
profiles nixos/hardened profile: disable legacy virtual syscalls 2017-04-29 17:27:11 +02:00
programs fix 'command-not-found: is a directory' error 2017-04-28 23:11:21 -04:00
security nixos: add option to lock kernel modules 2017-04-30 12:05:37 +02:00
services desktop-managers: Use a black BG as fallback 2017-04-29 19:03:30 +02:00
system Merge pull request #25005 from Lassulus/copytoram 2017-04-30 11:22:45 +02:00
tasks Add Elantech ETPS/2 Trackpoint (ThinkPad Yoga 260) 2017-04-22 13:42:57 +02:00
testing kdm: drop service 2017-02-11 13:55:09 -05:00
virtualisation Merge pull request #25245 from bachp/docker-proxy 2017-04-27 11:03:46 +02:00
module-list.nix nixos: add option to lock kernel modules 2017-04-30 12:05:37 +02:00
rename.nix zsh-syntax-highlighting: Add more configuration options and move to module (#25153) 2017-04-23 21:17:31 +02:00