Skip to content

Commit 4916d9b

Browse files
committed
feedback
1 parent 95e4a73 commit 4916d9b

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

libs/entitlement/qa/entitlement-test-plugin/src/main/java/org/elasticsearch/entitlement/qa/test/FileCheckActions.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -614,7 +614,7 @@ static void javaDesktopFileAccess() throws Exception {
614614

615615
@EntitlementTest(expectedAccess = ALWAYS_DENIED)
616616
static void javaXmlFileRequest() throws Exception {
617-
// java.xml is part of the jdk, but not a system module. this checks it can't access the network
617+
// java.xml is part of the jdk, but not a system module. this checks it can't access files
618618
var saxParser = SAXParserFactory.newInstance().newSAXParser();
619619
saxParser.parse(readFile().toFile(), new DefaultHandler());
620620
}

libs/entitlement/src/main/java/org/elasticsearch/entitlement/runtime/policy/entitlements/ReadJdkCodeEntitlement.java

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@
1010
package org.elasticsearch.entitlement.runtime.policy.entitlements;
1111

1212
/**
13-
* Internal entitlement to read code from the jdk, ie jrt urls
13+
* Internal entitlement to read code from the jdk.
14+
*
15+
* Concretely this means the code can open jrt urls. Since the java
16+
* runtime images (jrt) are read only, this implicitly only allows
17+
* reading those urls.
1418
*/
1519
public class ReadJdkCodeEntitlement implements Entitlement {}

0 commit comments

Comments
 (0)