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

[FELIX-5978] Ensure getClassLoader() is called in a safe way when sec… #160

Closed
wants to merge 3 commits into from

Conversation

timothyjward
Copy link
Contributor

…urity is enabled

Previously URLHandlers would explode when security was on because it didn't have permission to get the ClassLoader all the way down the stack

Signed-off-by: Tim Ward [email protected]

…urity is enabled

Previously URLHandlers would explode when security was on because it didn't have permission to get the ClassLoader all the way down the stack

Signed-off-by: Tim Ward <[email protected]>
Calls to getClassLoader for types within the Felix implementation are safe, calls to types that can come from other bundles are not. Proxying is also only safe within a classloader. Using SecureAction to do these things will make them safe in all cases.

Signed-off-by: Tim Ward <[email protected]>
…ning classes

Patch from Karl Pauls (karlpauls), also tested with the other changes for FELIX-5978

Signed-off-by: Tim Ward <[email protected]>
@asfgit asfgit closed this in 083a32d Nov 8, 2018
asfgit pushed a commit that referenced this pull request Nov 6, 2019
…rity is enabled - patched provided by Tim Ward - thanks! (This closes #160)

git-svn-id: https://svn.apache.org/repos/asf/felix/trunk@1846198 13f79535-47bb-0310-9956-ffa450edef68
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant