Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(v0.32.0)Fix limited doPrivilegedWithCombiner calls #14760

Merged

Conversation

mikezhang1234567890
Copy link
Contributor

@mikezhang1234567890 mikezhang1234567890 commented Mar 21, 2022

When calling doPrivilegedWithCombiner with limited permissions, if the passed
AccessControlContext is null, get the current context and set it as parent.
For limited doPrivilegedWithCombiner frames, getAccSnapshot returns a
ProtectionDomain array on the first and a single object on subsequent frames.
Update code in getContextHelper to handle the different format.

Signed-off-by: Mike Zhang mike.h.zhang@ibm.com

Port of #14606 to v0.32.0

fyi @pshipton

When calling doPrivilegedWithCombiner with limited permissions, if the passed
AccessControlContext is null, get the current context and set it as parent.
For limited doPrivilegedWithCombiner frames, getAccSnapshot returns a
ProtectionDomain array on the first and a single object on subsequent frames.
Update code in getContextHelper to handle the different format.

Signed-off-by: Mike Zhang <mike.h.zhang@ibm.com>
@pshipton pshipton merged commit dd29a39 into eclipse-openj9:v0.32.0-release Mar 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants