787c2e03d7
Factor out the open-flags to use for directories and add the CLOEXEC flag to ensure that open FDs do not get passed to any child process. A prominent cases where this can happen is the proxmox-daemon reload code, which re-execs itself in a forked child-process and thus gets all FDs passed. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> [ TL: expand doc-comment and reword commit message to point at actual thing this fixes (exec not daemon reload) ] Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
src | ||
tests | ||
Cargo.toml |