]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/unit: do not load drop-in configs for masked unit files
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Sep 2025 01:13:17 +0000 (10:13 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 4 Sep 2025 01:58:33 +0000 (10:58 +0900)
commit2ba0eacc6cf3c2ff94272c100cb713931c768199
treeb4c9406103f7087dc0a52af762b6a0c4ec1b23e2
parentfe3c1b0de66f8c9924e675706cc6142eb9d7d754
core/unit: do not load drop-in configs for masked unit files

Otherwise, ExecXYZ= given by drop-ins may be added to a masked unit,
then commands may be unexpectedly executed. For example, if an ExecStop=
is set in a drop-in for a running unit, then 'systemctl mask --now' for
the unit try to invoke the command specified in ExecStop=.

Fixes #38802.
src/core/unit.c