diff options
author | Tycho Andersen <tycho@tycho.ws> | 2020-02-19 12:01:29 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-04-02 15:28:14 +0200 |
commit | 5a8a69435d333f77b7551b8e662b2e6d6bc74227 (patch) | |
tree | f032b0293daefa5afd99c76b7deb524df329b782 /Documentation | |
parent | 1bea23309424822492029bd4163205917d04e95a (diff) | |
download | linux-stable-5a8a69435d333f77b7551b8e662b2e6d6bc74227.tar.gz linux-stable-5a8a69435d333f77b7551b8e662b2e6d6bc74227.tar.bz2 linux-stable-5a8a69435d333f77b7551b8e662b2e6d6bc74227.zip |
cgroup1: don't call release_agent when it is ""
[ Upstream commit 2e5383d7904e60529136727e49629a82058a5607 ]
Older (and maybe current) versions of systemd set release_agent to "" when
shutting down, but do not set notify_on_release to 0.
Since 64e90a8acb85 ("Introduce STATIC_USERMODEHELPER to mediate
call_usermodehelper()"), we filter out such calls when the user mode helper
path is "". However, when used in conjunction with an actual (i.e. non "")
STATIC_USERMODEHELPER, the path is never "", so the real usermode helper
will be called with argv[0] == "".
Let's avoid this by not invoking the release_agent when it is "".
Signed-off-by: Tycho Andersen <tycho@tycho.ws>
Signed-off-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'Documentation')
0 files changed, 0 insertions, 0 deletions