Skip to content

Commit

Permalink
Wrap a call to QatZipper with AccessController.doPrivileged. (#211) (#…
Browse files Browse the repository at this point in the history
…214)

* Grant qat-java a permission to modify arbitrary thread.




* Wrap a QatZipper() inside AccessController.doPrivileged().



* Fix GitHib action workflows (#212)



---------






(cherry picked from commit 9de7fd3)

Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Mulugeta Mammo <[email protected]>
Signed-off-by: Andriy Redko <[email protected]>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Andriy Redko <[email protected]>
  • Loading branch information
4 people authored Jan 10, 2025
1 parent bdfca1a commit be22a59
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<QatZipper>) () -> new QatZipper(algorithm, level, mode, retryCount, pmode)
);
}

/**
Expand Down

0 comments on commit be22a59

Please sign in to comment.