Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
Description
There are a number of places where os::system is used for convenience. To reduce the risk of command injection, we should replace most of these with subprocess or os::spawn and not execute them with the shell.
posix/chown.hpp | os::chown | Replace with fts(3). |
launcher/fetcher.cpp | extract() | Replace with subprocess. |
launcher/fetcher.cpp | copyFile | Replace with subprocess. |
linux/perf.cpp | valid() | Replace with subprocess. |
cni/cni.cpp | NetworkCniIsolatorSetup::execute() | Not a problem, but should use subprocess for consistency. |
|
|
|
|
|
|
In the above table, read "replacement" as replacement with os::spawn or subprocess as appropriate.
Attachments
Issue Links
- relates to
-
MESOS-7041 Default CommandInfo usage to not use the shell.
- Open
-
MESOS-6866 Mesos agent not checking IDs before using them as part of the paths
- Resolved