1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00
systemd/test/fuzz/fuzz-unit-file
Lennart Poettering ffec78c05b core: add new PropagateStopTo= dependency (and inverse)
This takes inspiration from PropagatesReloadTo=, but propagates
stop jobs instead of restart jobs.

This is defined based on exactly two atoms: UNIT_ATOM_PROPAGATE_STOP +
UNIT_ATOM_RETROACTIVE_STOP_ON_STOP. The former ensures that when the
unit the dependency is originating from is stopped based on user
request, we'll propagate the stop job to the target unit, too. In
addition, when the originating unit suddenly stops from external causes
the stopping is propagated too. Note that this does *not* include the
UNIT_ATOM_CANNOT_BE_ACTIVE_WITHOUT atom (which is used by BoundBy=),
i.e. this dependency is purely about propagating "edges" and not
"levels", i.e. it's about propagating specific events, instead of
continious states.

This is supposed to be useful for dependencies between .mount units and
their backing .device units. So far we either placed a BindsTo= or
Requires= dependency between them. The former gave a very clear binding
of the to units together, however was problematic if users establish
mounnts manually with different block device sources than our
configuration defines, as we there might come to the conclusion that the
backing device was absent and thus we need to umount again what the user
mounted. By combining Requires= with the new StopPropagatedFrom= (i.e.
the inverse PropagateStopTo=) we can get behaviour that matches BindsTo=
in every single atom but one: UNIT_ATOM_CANNOT_BE_ACTIVE_WITHOUT is
absent, and hence the level-triggered logic doesn't apply.

Replaces: #11340
2021-05-25 16:03:03 +02:00
..
dev-mapper-fedora_krowka\x2dswap.swap
directives-all.service network: save IPv4/IPv6 address states into state file 2021-04-14 08:51:02 +09:00
directives.automount test: check if the unit file fuzzer corpora is up to date 2021-04-05 14:41:05 +01:00
directives.mount fuzz: add SocketBind{Allow|Deny}= directive 2021-04-26 16:26:28 -07:00
directives.path test: check if the unit file fuzzer corpora is up to date 2021-04-05 14:41:05 +01:00
directives.scope fuzz: add SocketBind{Allow|Deny}= directive 2021-04-26 16:26:28 -07:00
directives.service core: add new PropagateStopTo= dependency (and inverse) 2021-05-25 16:03:03 +02:00
directives.slice fuzz: add SocketBind{Allow|Deny}= directive 2021-04-26 16:26:28 -07:00
directives.socket fuzz: add SocketBind{Allow|Deny}= directive 2021-04-26 16:26:28 -07:00
directives.swap fuzz: add SocketBind{Allow|Deny}= directive 2021-04-26 16:26:28 -07:00
directives.timer test: check if the unit file fuzzer corpora is up to date 2021-04-05 14:41:05 +01:00
empty.scope
github-19178 fuzzer: add a test case for #19178 2021-04-03 10:38:06 +01:00
machine.slice license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
oss-fuzz-6884
oss-fuzz-6885
oss-fuzz-6886
oss-fuzz-6892
oss-fuzz-6897
oss-fuzz-6897-evverx
oss-fuzz-6908
oss-fuzz-6917
oss-fuzz-6977
oss-fuzz-6977-unminimized
oss-fuzz-7004
oss-fuzz-8064
oss-fuzz-8827
oss-fuzz-10007
oss-fuzz-11569 fuzz-unit-file: add one more test case 2018-12-10 11:57:26 +01:00
oss-fuzz-13125 shared/calendarspec: do not allocate a big string on stack 2019-02-16 23:31:07 +01:00
oss-fuzz-32991 core: fix memleak of ipc_namespace_path 2021-04-07 22:12:50 +01:00
oss-fuzz-33270 core: fix crash in BPFProgram parsing 2021-05-05 17:15:04 +02:00
oss-fuzz-33876 core: fix crash in parsing of SocketBind{Allow,Deny}= 2021-05-05 17:14:58 +02:00
proc-sys-fs-binfmt_misc.automount license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
syslog.socket license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
systemd-ask-password-console.path license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
systemd-machined.service license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
systemd-resolved.service license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
systemd-tmpfiles-clean.timer Merge pull request #17497 from anitazha/randomizeonce 2020-11-10 13:29:04 +01:00
timers.target license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00
var-lib-machines.mount license: LGPL-2.1+ -> LGPL-2.1-or-later 2020-11-09 13:23:58 +09:00