hardening: use lib.toList
This commit is contained in:
parent
9fe17b2153
commit
9783a677f3
1 changed files with 2 additions and 6 deletions
|
@ -119,13 +119,9 @@ rec {
|
||||||
"fortify" "stackprotector" "pic" "strictoverflow" "format" "relro" "bindnow"
|
"fortify" "stackprotector" "pic" "strictoverflow" "format" "relro" "bindnow"
|
||||||
];
|
];
|
||||||
|
|
||||||
hardeningDisable =
|
hardeningDisable = lib.toList (attrs.hardeningDisable or [ ]);
|
||||||
let val = attrs.hardeningDisable or [ ];
|
|
||||||
in if builtins.isList val then val else [ val ];
|
|
||||||
|
|
||||||
hardeningEnable =
|
hardeningEnable = lib.toList (attrs.hardeningEnable or [ ]);
|
||||||
let val = attrs.hardeningEnable or [ ];
|
|
||||||
in if builtins.isList val then val else [ val ];
|
|
||||||
|
|
||||||
enabledHardeningOptions =
|
enabledHardeningOptions =
|
||||||
if builtins.elem "all" hardeningDisable
|
if builtins.elem "all" hardeningDisable
|
||||||
|
|
Loading…
Reference in a new issue