grsecurity: optionally disable features for redistributed kernels
This commit is contained in:
parent
27061905bd
commit
50d915c758
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user