summary refs log tree commit diff
path: root/pkgs/os-specific/linux
diff options
context:
space:
mode:
authorShea Levy <shea@shealevy.com>2015-05-18 14:32:29 -0400
committerShea Levy <shea@shealevy.com>2015-05-18 14:32:29 -0400
commit8dbd385e1cc6f486b8913235ed92e952ae96c16a (patch)
treea3aa2d4b9a608a9883d476d259eb29d0222ee165 /pkgs/os-specific/linux
parent023aaf8f6dcec62bf498d1e9a08d80ebc7d96835 (diff)
downloadnixpkgs-8dbd385e1cc6f486b8913235ed92e952ae96c16a.tar
nixpkgs-8dbd385e1cc6f486b8913235ed92e952ae96c16a.tar.gz
nixpkgs-8dbd385e1cc6f486b8913235ed92e952ae96c16a.tar.bz2
nixpkgs-8dbd385e1cc6f486b8913235ed92e952ae96c16a.tar.lz
nixpkgs-8dbd385e1cc6f486b8913235ed92e952ae96c16a.tar.xz
nixpkgs-8dbd385e1cc6f486b8913235ed92e952ae96c16a.tar.zst
nixpkgs-8dbd385e1cc6f486b8913235ed92e952ae96c16a.zip
kernel config: Fix grsecurity-specific config
Refs 13a38440c6993438ec7847eb8f00ad66fb3fd946
Diffstat (limited to 'pkgs/os-specific/linux')
-rw-r--r--pkgs/os-specific/linux/kernel/common-config.nix4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/os-specific/linux/kernel/common-config.nix b/pkgs/os-specific/linux/kernel/common-config.nix
index 4f3813f6ed8..25b707614ed 100644
--- a/pkgs/os-specific/linux/kernel/common-config.nix
+++ b/pkgs/os-specific/linux/kernel/common-config.nix
@@ -234,7 +234,7 @@ with stdenv.lib;
   # Security related features.
   STRICT_DEVMEM y # Filter access to /dev/mem
   SECURITY_SELINUX_BOOTPARAM_VALUE 0 # Disable SELinux by default
-  ${optionalString (!features.grsecurity or true) ''
+  ${optionalString (!(features.grsecurity or false)) ''
     DEVKMEM n # Disable /dev/kmem
   ''}
   ${if versionOlder version "3.14" then ''
@@ -380,7 +380,7 @@ with stdenv.lib;
 
   # Virtualisation.
   PARAVIRT? y
-  ${optionalString (!features.grsecurity or true)
+  ${optionalString (!(features.grsecurity or false))
     (if versionAtLeast version "3.10" then ''
       HYPERVISOR_GUEST y
     '' else ''