about summary refs log tree commit diff
path: root/nixos/modules/security/lock-kernel-modules.nix
Commit message (Collapse)AuthorAge
* nixos/lock-kernel-modules: add myself to maintainersJoachim Fasting2018-10-15
|
* nixos/lock-kernel-modules: fix deferred fileSystem mountsJoachim Fasting2017-09-22
| | | | | | | Ensure that modules required by all declared fileSystems are explicitly loaded. A little ugly but fixes the deferred mount test. See also https://github.com/NixOS/nixpkgs/issues/29019
* nixos/hardened: simplify scriptJoachim Fasting2017-09-22
|
* nixos/lock-kernel-modules: fix typo in unitConfigJoachim Fasting2017-04-30
| | | | I managed to miss this one somehow ... meh
* nixos: add option to lock kernel modulesJoachim Fasting2017-04-30
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