diff options
author | Joachim Fasting <joachifm@fastmail.fm> | 2015-04-03 13:35:06 +0200 |
---|---|---|
committer | Joachim Fasting <joachifm@fastmail.fm> | 2015-04-03 13:38:32 +0200 |
commit | 66c4f51046507024ec09a39a8b3f6683883c8ba9 (patch) | |
tree | fdf6feb17fdedd5ee4bbda7fa945344313621c2e /nixos | |
parent | 2e88605a91d871f9c16a60c4e16da12b7aca9b7a (diff) | |
download | nixlib-66c4f51046507024ec09a39a8b3f6683883c8ba9.tar nixlib-66c4f51046507024ec09a39a8b3f6683883c8ba9.tar.gz nixlib-66c4f51046507024ec09a39a8b3f6683883c8ba9.tar.bz2 nixlib-66c4f51046507024ec09a39a8b3f6683883c8ba9.tar.lz nixlib-66c4f51046507024ec09a39a8b3f6683883c8ba9.tar.xz nixlib-66c4f51046507024ec09a39a8b3f6683883c8ba9.tar.zst nixlib-66c4f51046507024ec09a39a8b3f6683883c8ba9.zip |
grsecurity module: simplify assertion
Diffstat (limited to 'nixos')
-rw-r--r-- | nixos/modules/security/grsecurity.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/modules/security/grsecurity.nix b/nixos/modules/security/grsecurity.nix index 4eb5c3b990d9..f33f7abb52c4 100644 --- a/nixos/modules/security/grsecurity.nix +++ b/nixos/modules/security/grsecurity.nix @@ -245,11 +245,8 @@ in kernel 3.19) to continue. ''; } - { assertion = (cfg.stable -> !cfg.testing) || (cfg.testing -> !cfg.stable); - message = '' - You must select either the stable or testing patch, not - both. - ''; + { assertion = !(cfg.stable && cfg.testing); + message = "Select either one of the stable or testing patch"; } { assertion = (cfg.config.restrictProc -> !cfg.config.restrictProcWithGroup) || (cfg.config.restrictProcWithGroup -> !cfg.config.restrictProc); |