[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[equinox-dev] FilePermission with "<<ALL FILES>>" in permissions.perm

Folks,

In one of my bundles, when i try to grant permission for reading any files using

(java.io.FilePermission "<<ALL FILES>>" "read")

the Equinox security manager just throws an AccessControlException

java.security.AccessControlException: Access denied
(java.io.FilePermission /mnt/sda1/dims/test/test.jks read)
	at java.security.AccessControlContext.checkPermission(AccessControlContext.java:160)
	at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.internalCheckPermission(EquinoxSecurityManager.java:117)
	at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager$CheckPermissionAction.run(EquinoxSecurityManager.java:60)
	at java.security.AccessController.doPrivileged(AccessController.java:202)
	at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.checkPermission(EquinoxSecurityManager.java:88)
	at org.eclipse.osgi.internal.permadmin.EquinoxSecurityManager.checkPermission(EquinoxSecurityManager.java:187)
	at java.lang.SecurityManager.checkRead(SecurityManager.java:871)
	at java.io.File.exists(File.java:742)

if i specify the full path then it works fine.

(java.io.FilePermission "/mnt/sda1/dims/test/test.jks" "read")

Thoughts? Tips?

thanks in advance,
dims

-- 
Davanum Srinivas :: http://davanum.wordpress.com