77 * License v3.0 only", or the "Server Side Public License, v 1".
88 */
99
10- package org .elasticsearch .entitlement .initialization ;
10+ package org .elasticsearch .entitlement .bootstrap ;
1111
1212import org .elasticsearch .core .Booleans ;
1313import org .elasticsearch .entitlement .runtime .policy .Policy ;
4242import static org .elasticsearch .entitlement .runtime .policy .entitlements .FilesEntitlement .Mode .READ ;
4343import static org .elasticsearch .entitlement .runtime .policy .entitlements .FilesEntitlement .Mode .READ_WRITE ;
4444
45- class HardcodedEntitlements {
45+ public class HardcodedEntitlements {
4646
4747 private static List <Scope > createServerEntitlements (Path pidFile ) {
4848
@@ -179,7 +179,7 @@ private static List<Scope> createServerEntitlements(Path pidFile) {
179179 return serverScopes ;
180180 }
181181
182- static Policy serverPolicy (Path pidFile , Policy serverPolicyPatch ) {
182+ public static Policy serverPolicy (Path pidFile , Policy serverPolicyPatch ) {
183183 var serverScopes = createServerEntitlements (pidFile );
184184 return new Policy (
185185 "server" ,
@@ -190,7 +190,7 @@ static Policy serverPolicy(Path pidFile, Policy serverPolicyPatch) {
190190 // agents run without a module, so this is a special hack for the apm agent
191191 // this should be removed once https://github.com/elastic/elasticsearch/issues/109335 is completed
192192 // See also modules/apm/src/main/plugin-metadata/entitlement-policy.yaml
193- static List <Entitlement > agentEntitlements () {
193+ public static List <Entitlement > agentEntitlements () {
194194 return List .of (
195195 new CreateClassLoaderEntitlement (),
196196 new ManageThreadsEntitlement (),
0 commit comments