summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
diff options
context:
space:
mode:
authorDavid Anderson <dave@natulte.net>2019-08-04 16:20:08 -0700
committerDavid Anderson <dave@natulte.net>2019-08-04 16:23:22 -0700
commit089da1c14dfdd76c2f3d66c383d97cb3aee34142 (patch)
treeddcf5cfbb5c89ba1e8ef6c428b1800f90f971ffa /pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch
parente66f7529adf659b32e74cb1cda5c0d6ea0eb7511 (diff)
nixos/sshguard: create ipsets before starting, and clean up after stopping.
The fix for #62874 introduced a race condition on startup: the postStart commands that configure the firewall run concurrently with sshguard's creation of the ipsets that the rules depend on. Unfortunately iptables fails hard when referencing an ipset that doesn't exist, so this causes non-deterministic crashlooping until sshguard wins the race. This change fixes that race condition by always creating the ipset and reconfiguring the firewall before starting sshguard, so that the order of operations is always deterministic. This change also cleans up the ipsets on sshguard shutdown, so that removing sshguard from a running system doesn't leave state behind. Fixes #65985.
Diffstat (limited to 'pkgs/development/python-modules/python-mapnik/python-mapnik_std_optional.patch')
0 files changed, 0 insertions, 0 deletions