mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
nixos/firewall: fix inverted assertion for reverse path filtering
Previously the assertion passed if the kernel had support OR the filter was *enabled*. In the case of a kernel without support, the `checkReversePath` option defaulted to false, and then failed the assertion.
This commit is contained in:
parent
7ed8a2c7f5
commit
2c121f4215
1 changed files with 1 additions and 1 deletions
|
@ -546,7 +546,7 @@ in
|
|||
options nf_conntrack nf_conntrack_helper=1
|
||||
'';
|
||||
|
||||
assertions = [ { assertion = (cfg.checkReversePath != false) || kernelHasRPFilter;
|
||||
assertions = [ { assertion = cfg.checkReversePath -> kernelHasRPFilter;
|
||||
message = "This kernel does not support rpfilter"; }
|
||||
];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue