]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: use O_CLOEXEC with pipe2() in get_early_config 68223/head
authorKefu Chai <k.chai@proxmox.com>
Sun, 29 Mar 2026 11:42:25 +0000 (19:42 +0800)
committerKefu Chai <k.chai@proxmox.com>
Mon, 6 Apr 2026 12:33:36 +0000 (20:33 +0800)
commit859e741322ac7c6023b5e8aac4e7eb6e763e54ab
tree629b7a29cd545b0c78df4c274877874653e7f8db
parent109438c10552b5e23ee8242dc222224c3b87338a
crimson/osd: use O_CLOEXEC with pipe2() in get_early_config

Without O_CLOEXEC the pipe fds are inherited across any future exec()
calls. While the child in get_early_config does not exec, using
O_CLOEXEC is standard practice to prevent inadvertent fd leaks into
subprocesses spawned later in the OSD lifetime.

Signed-off-by: Kefu Chai <k.chai@proxmox.com>
src/crimson/osd/main_config_bootstrap_helpers.cc