Skip to content

Commit

Permalink
Add missing ProcessBuilder.start entitlements test (#119100)
Browse files Browse the repository at this point in the history
  • Loading branch information
prdoyle authored Dec 19, 2024
1 parent 9676faf commit 7304418
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ static CheckAction forPlugins(Runnable action) {
entry("runtime_exit", deniedToPlugins(RestEntitlementsCheckAction::runtimeExit)),
entry("runtime_halt", deniedToPlugins(RestEntitlementsCheckAction::runtimeHalt)),
entry("create_classloader", forPlugins(RestEntitlementsCheckAction::createClassLoader)),
// entry("processBuilder_start", deniedToPlugins(RestEntitlementsCheckAction::processBuilder_start)),
entry("processBuilder_start", deniedToPlugins(RestEntitlementsCheckAction::processBuilder_start)),
entry("processBuilder_startPipeline", deniedToPlugins(RestEntitlementsCheckAction::processBuilder_startPipeline))
);

Expand All @@ -78,7 +78,11 @@ private static void createClassLoader() {
}

private static void processBuilder_start() {
// TODO: processBuilder().start();
try {
new ProcessBuilder("").start();
} catch (IOException e) {
throw new IllegalStateException(e);
}
}

private static void processBuilder_startPipeline() {
Expand Down

0 comments on commit 7304418

Please sign in to comment.