-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add dt_filesocket to sapmachine17 #1618
Add dt_filesocket to sapmachine17 #1618
Conversation
… filesocket_sapmachine17
…use the builtin support for unix domain sockets.
Hello @schmelter-sap, I'm sorry, this pull request doesn't meet the expectations. The pull request description has an invalid format. Please have a look at https://github.com/SAP/SapMachine/wiki/Formal-Requirements-of-Pull-Requests . |
Hello @schmelter-sap, I'm sorry, this pull request doesn't meet the expectations. The pull request description has an invalid format. Please have a look at https://github.com/SAP/SapMachine/wiki/Formal-Requirements-of-Pull-Requests . |
Hello @schmelter-sap, this pull request fulfills all formal requirements. |
Hello @schmelter-sap, this pull request fulfills all formal requirements. |
Hello @schmelter-sap, this pull request fulfills all formal requirements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks mostly good but added a couple of minor comments/suggestions/questions
src/jdk.jdwp.agent/share/native/libdt_filesocket/fileSocketTransport.h
Outdated
Show resolved
Hide resolved
src/jdk.jdwp.agent/unix/native/libdt_filesocket/fileSocketTransport_md.c
Outdated
Show resolved
Hide resolved
src/jdk.jdwp.agent/unix/native/libdt_filesocket/fileSocketTransport_md.c
Show resolved
Hide resolved
#error "Unknown platform" | ||
#endif | ||
|
||
if (other_user != geteuid()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
At some other/similar places of the OpenJDK codebase e.g. os::Posix::matches_effective_uid_and_gid_or_root we do similar checks but allow root too. Was this considered here too (but not done e.g. because of security reasons) ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've added an additional check for uid == 0.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made some Copyright suggestions
Hello @schmelter-sap, this pull request fulfills all formal requirements. |
Hello @schmelter-sap, this pull request fulfills all formal requirements. |
Hello @schmelter-sap, this pull request fulfills all formal requirements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A few minor things/questions left
src/jdk.jdwp.agent/unix/native/libdt_filesocket/fileSocketTransport_md.c
Outdated
Show resolved
Hide resolved
src/jdk.jdwp.agent/windows/native/libdt_filesocket/fileSocketTransport_md.c
Outdated
Show resolved
Hide resolved
src/jdk.jdwp.agent/windows/native/libdt_filesocket/fileSocketTransport_md.c
Outdated
Show resolved
Hide resolved
Hello @schmelter-sap, this pull request fulfills all formal requirements. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for doing the changes, LGTM now.
This adds support for dt_filesocket to sapmachine17. In contrast to the sapmachine11 implementation, this uses Unix Domain Sockets on Windows too, since Java 16 added support for them.
fixes #1611