[crac] RFR: Handle open file descriptors with configurable policies [v6]

Radim Vansa rvansa at openjdk.org
Fri Jun 16 14:49:43 UTC 2023

On Fri, 16 Jun 2023 12:50:26 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:

>> Radim Vansa has updated the pull request incrementally with one additional commit since the last revision:
>>   cleanup
> src/java.base/share/classes/java/io/RandomAccessFile.java line 89:
>> 87:             return fd;
>> 88:         }
>> 89:     };
> The path known to RandomAccessFile and one read from the OS may differ, if the former is symlink. So the RandomAccessFile may need to override getPath, getOffset,.. Apparently, RandomAccessFile don't need operating system intraspection at all.

The symlink has a point, from the 'application intention' view. On the other hand if the file is changed; there's a higher chance that something unexpected will be read.
In any case user has the chance to override the target in policies.


PR Review Comment: https://git.openjdk.org/crac/pull/69#discussion_r1232351685

More information about the crac-dev mailing list