RFR: 8357425: (fs) SecureDirectoryStream setPermissions should use fchmodat
Matthias Baesken
mbaesken at openjdk.org
Fri May 30 07:57:58 UTC 2025
On Thu, 29 May 2025 23:37:26 GMT, Brian Burkhalter <bpb at openjdk.org> wrote:
> Modify to use the `fchmodat(2)` system call to set permissions where possible to do so. This fixes the problem presented in the issue description.
Hi Alan, thanks for reaching out.
> Do you want to confirm that this will build/run on AIX?
I can confirm that it builds on AIX.
Regarding running, the test that is part of the change it linux/macOS only.
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 ?
-------------
PR Comment: https://git.openjdk.org/jdk/pull/25534#issuecomment-2921528988
More information about the nio-dev
mailing list