Skip to content

Commit

Permalink
Revert unintended changes from elastic#77012
Browse files Browse the repository at this point in the history
This reverts some changes from
e73d16dc20cf50a5215ee8ff8cccfcbd2f0c1a7es that were incorrectly
included within elastic#77012.
  • Loading branch information
tvernum committed Sep 22, 2021
1 parent 7d61b02 commit cfe2df9
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ public boolean test(Permission permission) {
new RuntimePermission("loadLibrary.*"),
new RuntimePermission("accessClassInPackage.*"),
new RuntimePermission("accessDeclaredMembers"),
new RuntimePermission("org.elasticsearch.modifyInnocuousThread"),
new NetPermission("requestPasswordAuthentication"),
new NetPermission("getProxySelector"),
new NetPermission("getCookieHandler"),
Expand All @@ -113,7 +112,7 @@ public boolean test(Permission permission) {
new SecurityPermission("createAccessControlContext"),
new SecurityPermission("insertProvider"),
new SecurityPermission("putProviderProperty.*"),
// apache abuses the SecurityPermission class for its own purposes
// apache abuses the SecurityPermission class for it's own purposes
new SecurityPermission("org.apache.*"),
// write is needed because of HdfsPlugin
new PropertyPermission("*", "read,write"),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,4 @@ grant {

// needed for multiple server implementations used in tests
permission java.net.SocketPermission "*", "accept,connect";

// Needed for OpenSAML to start a java.lang.ref.Cleaner
permission java.lang.RuntimePermission "org.elasticsearch.modifyInnocuousThread";
};
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ grant {
// needed for SAML
permission java.util.PropertyPermission "org.apache.xml.security.ignoreLineBreaks", "read,write";

// Needed for OpenSAML to start a java.lang.ref.Cleaner
permission java.lang.RuntimePermission "org.elasticsearch.modifyInnocuousThread";

// needed during initialization of OpenSAML library where xml security algorithms are registered
// see https://github.com/apache/santuario-java/blob/e79f1fe4192de73a975bc7246aee58ed0703343d/src/main/java/org/apache/xml/security/utils/JavaUtils.java#L205-L220
// and https://git.shibboleth.net/view/?p=java-opensaml.git;a=blob;f=opensaml-xmlsec-impl/src/main/java/org/opensaml/xmlsec/signature/impl/SignatureMarshaller.java;hb=db0eaa64210f0e32d359cd6c57bedd57902bf811#l52
Expand Down

0 comments on commit cfe2df9

Please sign in to comment.