RFR: 8357425: (fs) SecureDirectoryStream setPermissions should use fchmodat

Alan Bateman alanb at openjdk.org
Fri May 30 08:16:50 UTC 2025


On Fri, 30 May 2025 07:55:02 GMT, Matthias Baesken <mbaesken at openjdk.org> wrote:

> > When I add aix to the test  (test/jdk/java/nio/file/DirectoryStream/SecureDS.java)  I get
> > `TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.AssertionError: SecureDirectoryStream not supported.`
> > but I guess this is expected currently because the test is linux/mac only ?

Thanks for checking. The newDirectoryStream methods return a SecureDirectoryStream on platforms that support all the "at" syscalls (list is in UnixNativeDispatcher.c) so I think it means that it is not supported on AIX because some of the "at" calls don't exist. In that case, once it builds it is okay.

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

PR Comment: https://git.openjdk.org/jdk/pull/25534#issuecomment-2921571564


More information about the nio-dev mailing list