Request for review: 7190897 (fs) Files.isWritable method returns false when the path is writable (win).
alexey.utkin at oracle.com
Thu Feb 28 11:54:28 UTC 2013
Please review the fix.
The suggested fix:
The isolated method for the file security descriptor testing against the
process owner is not a realistic approach for run-time permission checking
by two reasons:
1. the user can hold additional privileges due to access to active logon
2. the test thread can be impersonated by token that is different from
The problem is covered by test NB project attached to the bug. Please,
read the bug comments for details.
New approach based on WIN32 function AccessCheck that makes run-time
permission checking against the thread token. The function security
setting was adjusted for the file system objects.
The bug JDK-8008810 [(fs) Handle leak in the
was resoled as part of suggested modification.
More information about the core-libs-dev