Hi,

First of all, thanks for your work.

I am trying to enable security in Felix 4.0.1 by launching the following
command :

java -Djava.security.policy=all.policy -Dorg.osgi.framework.security="osgi"
-Djava.library.path=. -jar bin/felix.jar 

The file all.policy contains :

grant { 
        permission java.security.AllPermission;
};

I put a file named permissions.perm in the directory OSGI-INF/ of my bundle
containing all the permissions my bundle must have.

When I deploy it, I can see that my bundle still has all the permissions ;
to check the permissions, here is what I am doing in Java :

System.getSecurityManager().checkPermission(... // my permissions here);

Whatever the permission is, this method never throws an exception...

In my opinion, my permissions.pem is not used/interpreted.

Did I miss or misunderstand something?

I have searched for this problem for days and I wasn't able to find any
solutions to this...

Best regards,

Frls




--
View this message in context: 
http://apache-felix.18485.n6.nabble.com/SECURITY-permissions-perm-files-tp5002699.html
Sent from the Apache Felix - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to