Prevent unauthorized console take over.

This commit is contained in:
Michael Lipp 2025-01-26 21:49:37 +01:00
parent 3ca632c8da
commit 1b5ad5b73e
5 changed files with 21 additions and 4 deletions

View file

@ -65,7 +65,7 @@ public class VmDefinition {
*/
public enum Permission {
START("start"), STOP("stop"), RESET("reset"),
ACCESS_CONSOLE("accessConsole");
ACCESS_CONSOLE("accessConsole"), TAKE_CONSOLE("takeConsole");
@SuppressWarnings("PMD.UseConcurrentHashMap")
private static Map<String, Permission> reprs = new HashMap<>();