diff --git a/src/main/resources/org/elasticsearch/bootstrap/security.policy b/src/main/resources/org/elasticsearch/bootstrap/security.policy index ef79e807cd7..51c66f9cc9e 100644 --- a/src/main/resources/org/elasticsearch/bootstrap/security.policy +++ b/src/main/resources/org/elasticsearch/bootstrap/security.policy @@ -98,4 +98,7 @@ grant { // needed by JDKESLoggerTests permission java.util.logging.LoggingPermission "control"; + + // needed by Mockito + permission java.lang.RuntimePermission "reflectionFactoryAccess"; };