Trouble creating a conditional AdminPermission with Felix 7.0.3 and OSGi Secutiry 2.8.3

2022-02-02 Thread Chris Rankin
Hi, I am trying to configure OSGi security such that bundles from certain locations are forbidden from performing anything that requires AdminPermission. To that end, I have created the following conditional permission (in Kotlin): val forbidAdmin =

RE: Trouble creating a conditional AdminPermission with Felix 7.0.3 and OSGi Secutiry 2.8.3

2022-02-02 Thread Chris Rankin
Hi, I am starting to suspect that the "CondtionInfo" aspect is actually working correctly, and that the actual problem is with AdminPermission itself. I have added this line to both a bundle whose location matches "CAGE/*" and one whose location doesn't:

Re: Trouble creating a conditional AdminPermission with Felix 7.0.3 and OSGi Secutiry 2.8.3

2022-02-02 Thread Karl Pauls
Sounds strange, do you have something you can share that reproduces the problem? regards, Karl On Wed, Feb 2, 2022 at 3:56 PM Chris Rankin wrote: > > Hi, > > I am starting to suspect that the "CondtionInfo" aspect is actually > working correctly, and that the actual problem is with

Re: Trouble creating a conditional AdminPermission with Felix 7.0.3 and OSGi Secutiry 2.8.3

2022-02-02 Thread Chris Rankin
Unfortunately not, because the host application is extremely non-trivial. I might be able to create a small Gradle project, in the hope that it captures the problem. Can you think of any ways that I can tease more OSGi diagnostic information out of the application I already have, please? Thanks,