grsecurity: add GRKERNSEC_DENYUSB option (disabled by default)
This option tells the kernel to ignore plug-in events of USB devices. Useful to
protect against attacks with malicious hardware. Currently disabled by default,
though.
commitcfce8509b85281a967a5937f3f0c672125990474
authorPeter Simons <simons@cryp.to>
dateTue 11 Nov 2014, 13:29 (12 years ago)
parent47f0784
pkgs/build-support/grsecurity/default.nix+2
@@ -10,6 +10,7 @@ let
1010 mode = "auto";
1111 sysctl = false;
1212 denyChrootChmod = false;
13+ denyUSB = false;
1314 restrictProc = false;
1415 restrictProcWithGroup = true;
1516 unrestrictProcGid = 121; # Ugh, an awful hack. See grsecurity NixOS gid
@@ -106,6 +107,7 @@ let
106107
107108 GRKERNSEC_SYSCTL ${boolToKernOpt cfg.config.sysctl}
108109 GRKERNSEC_CHROOT_CHMOD ${boolToKernOpt cfg.config.denyChrootChmod}
110+ GRKERNSEC_DENYUSB ${boolToKernOpt cfg.config.denyUSB}
109111 GRKERNSEC_NO_RBAC ${boolToKernOpt cfg.config.disableRBAC}
110112 ${restrictLinks}
111113