Skip to content

Commit

Permalink
Grant getClassLoader
Browse files Browse the repository at this point in the history
Signed-off-by: Ryan Liang <[email protected]>
  • Loading branch information
RyanL1997 authored and DarshitChanpura committed Sep 27, 2023
1 parent a38a6a5 commit 6e1f9f0
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
//// SecurityManager impl:
//// Must have all permissions to properly perform access checks

grant {
permission java.lang.RuntimePermission "getClassLoader";
};

grant codeBase "${codebase.opensearch-secure-sm}" {
permission java.security.AllPermission;
};
Expand All @@ -48,6 +52,8 @@ grant codeBase "${codebase.opensearch}" {
permission java.lang.RuntimePermission "setContextClassLoader";
// needed for SPI class loading
permission java.lang.RuntimePermission "accessDeclaredMembers";

permission java.lang.RuntimePermission "getClassLoader";
};

//// Very special jar permissions:
Expand Down

0 comments on commit 6e1f9f0

Please sign in to comment.