Q&A
Q&AWhat can a subprocess inherit across exec?
Environment strings and open descriptors not marked close-on-exec.
Read the concise answer
Construct a deliberate environment and descriptor allowlist. Descriptors grant capabilities to files, sockets, or pipes; inherited writers can delay EOF and inherited secrets can leak to less-trusted children.