summaryrefslogtreecommitdiff
path: root/src/udev
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2023-04-17 02:09:38 +0900
committerMike Yuan <me@yhndnzj.com>2023-04-17 05:46:32 +0800
commit2cd04086ee555ae9b1423f6a4c5adeffd2affd72 (patch)
tree3957c0bdcdc79f638b221994042663269505fd03 /src/udev
parent451812680755bdf62512bc3c174278280d5ce9cb (diff)
downloadsystemd-2cd04086ee555ae9b1423f6a4c5adeffd2affd72.tar.gz
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 'src/udev')
-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. */