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
* Grant qat-java a permission to modify arbitrary thread.

Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Mulugeta Mammo <[email protected]>

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

Signed-off-by: Mulugeta Mammo <[email protected]>

* Fix GitHib action workflows (#212)

Signed-off-by: Andriy Redko <[email protected]>

---------

Signed-off-by: Ubuntu <[email protected]>
Signed-off-by: Mulugeta Mammo <[email protected]>
Signed-off-by: Andriy Redko <[email protected]>
Co-authored-by: Ubuntu <[email protected]>
Co-authored-by: Andriy Redko <[email protected]>
(cherry picked from commit 9de7fd3)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Jan 10, 2025
1 parent bdfca1a commit 0662ae9
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 0662ae9

Please sign in to comment.