grsecurity: optionally disable features for redistributed kernels

This commit is contained in:
Joachim Fasting 2016-05-06 15:22:40 +02:00
parent 27061905bd
commit 50d915c758
No known key found for this signature in database
GPG Key ID: 4330820E1E04DCF4

View File

@ -15,6 +15,7 @@ let
unrestrictProcGid = 121; # Ugh, an awful hack. See grsecurity NixOS gid
disableRBAC = false;
disableSimultConnect = false;
redistKernel = true;
verboseVersion = false;
kernelExtraConfig = "";
} // grsecOptions.config;
@ -91,6 +92,12 @@ let
GRKERNSEC y
${grsecMainConfig}
# Disable features rendered useless by redistributing the kernel
${optionalString cfg.config.redistKernel ''
GRKERNSEC_RANDSTRUCT n
GRKERNSEC_HIDESYM n
''}
# The paxmarks mechanism relies on ELF header markings, but the default
# grsecurity configuration only enables xattr markings
PAX_PT_PAX_FLAGS y