[SAML] add security permission to get the classloader (elastic/x-pack-elasticsearch#3720)

This adds the security permission to get the thread context classloader to the security
plugin after it was inadvertently removed in elastic/x-pack-elasticsearch#3651. This was not caught as there is a
dependency on monitoring for security and monitoring has the getClassLoader permission.

relates elastic/x-pack-elasticsearch#3719

Original commit: elastic/x-pack-elasticsearch@61ad950f5b
This commit is contained in:
Jay Modi 2018-01-25 13:01:48 -07:00 committed by GitHub
parent e59bcd8f8e
commit f07a850ba2
1 changed files with 1 additions and 0 deletions

View File

@ -5,6 +5,7 @@ grant {
permission java.util.PropertyPermission "*", "read,write";
// needed because of SAML (cf. o.e.x.s.s.RestorableContextClassLoader)
permission java.lang.RuntimePermission "getClassLoader";
permission java.lang.RuntimePermission "setContextClassLoader";
// needed for multiple server implementations used in tests