Tycho Andersen ef76f1e9da 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>
2020-04-02 16:34:27 +02:00
..
2019-12-01 09:14:03 +01:00
2018-08-03 07:50:38 +02:00
2020-04-02 16:34:21 +02:00
2018-08-03 07:50:22 +02:00
2020-04-02 16:34:20 +02:00
2020-02-28 16:35:53 +01:00
2017-08-21 12:47:31 -07:00
2020-01-09 10:17:53 +01:00
2018-05-09 09:51:50 +02:00