1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-27 01:55:22 +03:00
systemd/test/testsuite-23.units
Yu Watanabe a60f96fcf5 core/unit: make JoinsNamespaceOf= implies the inverse dependency
Previously, even if a.service has JoinsNamespaceOf=b.service, the
inverse direction of reference was not introduced.
Hence, a.service is started earlier than b.service, the namespace will
not shared with b.service.
Also, even if a.service had the reference to b.service, b.service did not.
If b.service is freed earlier, then unit_clear_dependencies() does not clear
the reference from a to b, and will cause use-after-free on unit_free() for
a.service.

Let's make JoinsNamespaceOf=b.service in a.service implies the inverse
dependency, i.e. JoinsNamespaceOf=a.service for b.service. Then, we can safely
free b.service.
2023-05-26 11:50:08 +09:00
..
testsuite-23-binds-to.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-bound-by.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-fail.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-joins-namespace-of-1.service test: add tests for JoinsNamespaceOf= 2023-05-26 11:50:05 +09:00
testsuite-23-joins-namespace-of-2.service test: add tests for JoinsNamespaceOf= 2023-05-26 11:50:05 +09:00
testsuite-23-joins-namespace-of-3.service test: add tests for JoinsNamespaceOf= 2023-05-26 11:50:05 +09:00
testsuite-23-joins-namespace-of-4.service test: add tests for JoinsNamespaceOf= 2023-05-26 11:50:05 +09:00
testsuite-23-joins-namespace-of-5.service core/unit: make JoinsNamespaceOf= implies the inverse dependency 2023-05-26 11:50:08 +09:00
testsuite-23-joins-namespace-of-6.service test: add tests for JoinsNamespaceOf= 2023-05-26 11:50:05 +09:00
testsuite-23-joins-namespace-of-7.service test: add tests for JoinsNamespaceOf= 2023-05-26 11:50:05 +09:00
testsuite-23-joins-namespace-of-8.service core/unit: make JoinsNamespaceOf= implies the inverse dependency 2023-05-26 11:50:08 +09:00
testsuite-23-joins-namespace-of-9.service core/unit: make JoinsNamespaceOf= implies the inverse dependency 2023-05-26 11:50:08 +09:00
testsuite-23-namespaced.service test: merge TEST-49-RUNTIME-BIND-PATHS into TEST-23-UNIT-FILE 2023-05-16 23:07:45 +02:00
testsuite-23-non-namespaced.service test: merge TEST-49-RUNTIME-BIND-PATHS into TEST-23-UNIT-FILE 2023-05-16 23:07:45 +02:00
testsuite-23-prop-stop-one.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-prop-stop-two.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-retry-fail.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-retry-upheld.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-retry-uphold.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-short-lived.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-specifier-j-depends-wants.service test: merge TEST-28-PERCENTJ-WANTEDBY into TEST-23-UNIT-FILE 2023-05-16 22:43:52 +02:00
testsuite-23-specifier-j-wants.service test: merge TEST-28-PERCENTJ-WANTEDBY into TEST-23-UNIT-FILE 2023-05-16 22:43:52 +02:00
testsuite-23-success.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00
testsuite-23-upheldby-install.service test: add tests for UpheldBy= in [Install] section 2023-05-15 15:04:38 +08:00
testsuite-23-uphold.service test: move TEST-23's units into a dedicated subfolder 2023-05-10 21:26:26 +02:00