Uploaded image for project: 'Mesos'
  1. Mesos
  2. MESOS-9175

`Subprocess::FD` can leak file descriptors into child processes

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: libprocess
    • Labels:
      None

      Description

      When you use the subprocess API, you can use Subprocess::FD() to define how the standard IO streams are attached to the child process. The default type argument is IO::DUPLICATED. In that case, the descriptors are duplicated with dup(2) in the parent process. The new file descriptors will have their close-on-exec flag cleared and could then be inherited to undefined child processes.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                jamespeach James Peach
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: