Qubes component: core-agent-linux
Go to file
Rudd-O d5fb315a4e
Eliminate race condition with qubes-setup-dnat-to-ns
qubes-setup-dnat-to-ns is called multiple times during boot.  Of particular interest are the two invocations done by:

1. `/usr/lib/qubes/init/network-proxy.setup.sh` (`qubes-network.service`)
2. `/usr/lib/qubes/init/misc-post.sh` (`qubes-misc-post.service`)

These can, and do often, run in parallel.  Often enough that the `PR-QBS` `nat` chain can end up with eight rules instead of four, or (worse) zero rules.

This commit represents the proper boot ordering of these services, where the post startup *must* happen after Qubes has already started its iptables, firewall, network setup and netwatcher.

This eliminates the race.
(cherry picked from commit b7d8d66bb1)
2016-11-19 00:30:53 +01:00
archlinux archlinux: ensure repositories are the last pacman.d files included 2016-11-19 00:21:38 +01:00
autostart-dropins Merge branch 'autostart-dropins' 2015-09-02 01:16:19 +02:00
debian version 3.1.18 2016-07-28 00:17:22 +02:00
doc removed trailing spaces 2015-10-15 04:34:55 +02:00
misc upgrade: package for simplify upgrade from R3.1 to R3.2 2016-06-26 10:48:00 +02:00
network network: minor setup-ip fix 2016-11-19 00:30:12 +01:00
pkgs archlinux: created build scripts 2013-04-17 01:22:32 +02:00
qrexec qrexec: use #define for protocol-specified strings 2015-11-08 22:06:54 +01:00
qubes-rpc qvm-open-in-vm: fix wrapping URL in HTML file 2016-07-28 00:15:39 +02:00
rpm_spec systemd: include tor-disabling drop-ins in the package 2016-11-19 00:27:14 +01:00
vm-init.d network: use qubes-primary-dns QubesDB entry if present 2016-03-07 13:37:45 +01:00
vm-systemd Eliminate race condition with qubes-setup-dnat-to-ns 2016-11-19 00:30:53 +01:00
.gitignore gitignore: fix binary packages declaration 2014-07-27 06:11:14 +02:00
debian-quilt debian: Refactor Debian quilt packaging for xen 2015-02-11 08:02:55 -05:00
LICENSE Added LICENSE 2010-04-05 21:21:27 +02:00
Makefile systemd: include tor-disabling drop-ins in the package 2016-11-19 00:27:14 +01:00
Makefile.builder upgrade: package for simplify upgrade from R3.1 to R3.2 2016-06-26 10:48:00 +02:00
series-debian-vm.conf debian: Refactor Debian quilt packaging for xen 2015-02-11 08:02:55 -05:00
version version 3.1.18 2016-07-28 00:17:22 +02:00