You are viewing a plain text version of this content. The canonical link for it is here.
Posted to yarn-dev@hadoop.apache.org by "Eric Yang (JIRA)" <ji...@apache.org> on 2018/04/25 23:36:00 UTC

[jira] [Created] (YARN-8207) Docker container launch use popen have risk of shell expansion

Eric Yang created YARN-8207:
-------------------------------

             Summary: Docker container launch use popen have risk of shell expansion
                 Key: YARN-8207
                 URL: https://issues.apache.org/jira/browse/YARN-8207
             Project: Hadoop YARN
          Issue Type: Sub-task
          Components: yarn-native-services
            Reporter: Eric Yang


Container-executor code utilize a string buffer to construct docker run command, and pass the string buffer to popen for execution.  Popen spawn a shell to run the command.  Some arguments for docker run are still vulnerable to shell expansion.  The possible solution is to convert from char * buffer to string array for execv to avoid shell expansion.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: yarn-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: yarn-dev-help@hadoop.apache.org