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

Thanks Tom, here's the bug id - https://bugs.eclipse.org/bugs/show_bug.cgi?id=286307

-- dims

On 08/11/2009 02:00 PM, Thomas Watson wrote:

Hi Dims

This sounds like a bug.  Can you please open one against Equinox?  It looks
like the code which tries to relativize FilePermissions to the bundle data
area has a bug when "<<ALL FILES>>" is used.

Tom





   From:       Davanum Srinivas<davanum@xxxxxxxxx>

   To:         equinox-dev@xxxxxxxxxxx

   Date:       08/11/2009 12:49 PM

   Subject:    [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,
_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev




------------------------------------------------------------------------

_______________________________________________
equinox-dev mailing list
equinox-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/equinox-dev