forked from opensearch-project/OpenSearch
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix JSM policy for arrow-flight-rpc module
- Loading branch information
1 parent
12ad318
commit 90c8d61
Showing
3 changed files
with
39 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
modules/arrow-flight-rpc/src/main/plugin-metadata/plugin-security.policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
/* | ||
* SPDX-License-Identifier: Apache-2.0 | ||
* | ||
* The OpenSearch Contributors require contributions made to | ||
* this file be licensed under the Apache-2.0 license or a | ||
* compatible open source license. | ||
*/ | ||
|
||
grant codeBase "${codebase.arrow-flight-rpc}" { | ||
// arrow flight service permissions | ||
permission java.util.PropertyPermission "arrow.allocation.manager.type", "write"; | ||
permission java.util.PropertyPermission "arrow.enable_null_check_for_get", "write"; | ||
permission java.util.PropertyPermission "arrow.enable_unsafe_memory_access", "write"; | ||
permission java.util.PropertyPermission "arrow.memory.debug.allocator", "write"; | ||
|
||
permission java.util.PropertyPermission "io.netty.tryReflectionSetAccessible", "write"; | ||
permission java.util.PropertyPermission "io.netty.allocator.numDirectArenas", "write"; | ||
permission java.util.PropertyPermission "io.netty.noUnsafe", "write"; | ||
permission java.util.PropertyPermission "io.netty.tryUnsafe", "write"; | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters