8028270: Files.readSymbolicLink calls AccessController directly so security manager can't grant the permission

Mandy Chung mandy.chung at oracle.com
Wed Nov 13 08:00:22 PST 2013


On 11/13/2013 4:38 AM, Alan Bateman wrote:
>
> This is a follow-up to Martin's mail of yesterday where he pointed out 
> that the implementations of readSymbolicLink are doing the permission 
> check by calling AccessController.checkPermission directly. The bug 
> means the security manager doesn't get a chance to grant the permission.
>
> Here's the webrev to fix this (and also expand the CheckPermissions 
> test to cover this case, the lack of the a test case is how this one 
> slipped through).
>
> http://cr.openjdk.java.net/~alanb/8028270/webrev/
>

Looks fine with me.
Mandy



More information about the nio-dev mailing list