summaryrefslogtreecommitdiffstats
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-04-16 19:09:38 +0200
committerMike Yuan <me@yhndnzj.com>2023-04-16 23:46:32 +0200
commit2cd04086ee555ae9b1423f6a4c5adeffd2affd72 (patch)
tree3957c0bdcdc79f638b221994042663269505fd03 /src/udev/udevd.c
parentmkosi: default to Fedora 38 (diff)
downloadsystemd-2cd04086ee555ae9b1423f6a4c5adeffd2affd72.tar.xz
systemd-2cd04086ee555ae9b1423f6a4c5adeffd2affd72.zip
process-util: make safe_fork() unset $NOTIFY_SOCKET
Propagating $NOTIFY_SOCKET is typically dangerous. Let's unset it unless explicitly requested to keep it. Fixes #27288. Replaces #27291.
Diffstat (limited to '')
-rw-r--r--src/udev/udevd.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index d70fccde41..c56956c378 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -706,8 +706,6 @@ static int worker_main(Manager *_manager, sd_device_monitor *monitor, sd_device
assert(monitor);
assert(dev);
- assert_se(unsetenv("NOTIFY_SOCKET") == 0);
-
assert_se(sigprocmask_many(SIG_BLOCK, NULL, SIGTERM, -1) >= 0);
/* Reset OOM score, we only protect the main daemon. */