diff --git a/src/main/java/org/opensearch/index/codec/customcodecs/QatZipperFactory.java b/src/main/java/org/opensearch/index/codec/customcodecs/QatZipperFactory.java index a02f09a..9afdab6 100644 --- a/src/main/java/org/opensearch/index/codec/customcodecs/QatZipperFactory.java +++ b/src/main/java/org/opensearch/index/codec/customcodecs/QatZipperFactory.java @@ -31,7 +31,9 @@ public class QatZipperFactory { * @param pmode polling mode. */ public static QatZipper createInstance(Algorithm algorithm, int level, Mode mode, int retryCount, PollingMode pmode) { - return new QatZipper(algorithm, level, mode, retryCount, pmode); + return java.security.AccessController.doPrivileged( + (java.security.PrivilegedAction) () -> new QatZipper(algorithm, level, mode, retryCount, pmode) + ); } /**