Skip to content

Commit 0662ae9

Browse files
github-actions[bot]Ubuntureta
committed
Wrap a call to QatZipper with AccessController.doPrivileged. (#211)
* Grant qat-java a permission to modify arbitrary thread. Signed-off-by: Ubuntu <ubuntu@ip-172-31-60-200.us-west-2.compute.internal> Signed-off-by: Mulugeta Mammo <mulugeta.mammo@intel.com> * Wrap a QatZipper() inside AccessController.doPrivileged(). Signed-off-by: Mulugeta Mammo <mulugeta.mammo@intel.com> * Fix GitHib action workflows (#212) Signed-off-by: Andriy Redko <andriy.redko@aiven.io> --------- Signed-off-by: Ubuntu <ubuntu@ip-172-31-60-200.us-west-2.compute.internal> Signed-off-by: Mulugeta Mammo <mulugeta.mammo@intel.com> Signed-off-by: Andriy Redko <andriy.redko@aiven.io> Co-authored-by: Ubuntu <ubuntu@ip-172-31-60-200.us-west-2.compute.internal> Co-authored-by: Andriy Redko <andriy.redko@aiven.io> (cherry picked from commit 9de7fd3) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent bdfca1a commit 0662ae9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/opensearch/index/codec/customcodecs/QatZipperFactory.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,9 @@ public class QatZipperFactory {
3131
* @param pmode polling mode.
3232
*/
3333
public static QatZipper createInstance(Algorithm algorithm, int level, Mode mode, int retryCount, PollingMode pmode) {
34-
return new QatZipper(algorithm, level, mode, retryCount, pmode);
34+
return java.security.AccessController.doPrivileged(
35+
(java.security.PrivilegedAction<QatZipper>) () -> new QatZipper(algorithm, level, mode, retryCount, pmode)
36+
);
3537
}
3638

3739
/**

0 commit comments

Comments
 (0)