linux: fix fallout from conflicting kernel configs
The parent commit forbids conflicting kernel config options. Fix the hardened kernels by allowing options in common-config.nix to be overridden by conflicting ones in hardened/config.nix. I'm explicitly avoiding using a higher priority (e.g. using mkForce) in hardened/config.nix so that the user can easily override the options in that file.
This commit is contained in:
committed by
Linus Heckemann
parent
6feb61233b
commit
d81067f3f3
@@ -193,16 +193,17 @@ let
|
||||
NET_DROP_MONITOR = yes;
|
||||
|
||||
# needed for ss
|
||||
INET_DIAG = module;
|
||||
INET_TCP_DIAG = module;
|
||||
INET_UDP_DIAG = module;
|
||||
INET_RAW_DIAG = whenAtLeast "4.14" module;
|
||||
INET_DIAG_DESTROY = whenAtLeast "4.9" yes;
|
||||
# Use a lower priority to allow these options to be overridden in hardened/config.nix
|
||||
INET_DIAG = mkDefault module;
|
||||
INET_TCP_DIAG = mkDefault module;
|
||||
INET_UDP_DIAG = mkDefault module;
|
||||
INET_RAW_DIAG = whenAtLeast "4.14" (mkDefault module);
|
||||
INET_DIAG_DESTROY = whenAtLeast "4.9" (mkDefault yes);
|
||||
|
||||
# enable multipath-tcp
|
||||
MPTCP = whenAtLeast "5.6" yes;
|
||||
MPTCP_IPV6 = whenAtLeast "5.6" yes;
|
||||
INET_MPTCP_DIAG = whenAtLeast "5.9" module;
|
||||
INET_MPTCP_DIAG = whenAtLeast "5.9" (mkDefault module);
|
||||
};
|
||||
|
||||
wireless = {
|
||||
|
||||
Reference in New Issue
Block a user