-
Notifications
You must be signed in to change notification settings - Fork 25k
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
Wrap netty accept/connect ops with doPrivileged #22572
Wrap netty accept/connect ops with doPrivileged #22572
Conversation
This is related to elastic#22116. netty channels require socket `connect` and `accept` privileges. Netty does not currently wrap these operations with `doPrivileged` blocks. These changes extend the netty channels and wrap calls to the relevant super methods in doPrivileged blocks.
This change should prevent removing socket permissions from core being blocked by Netty's release cycle. |
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.
LGTM.
The change looks good to me, but I wonder if we should just get rid of the blocking implementation? |
++ to get rid of blocking @tbrooks8 do you wanna take a look at this in a different PR? |
Yes. I can do that. |
This is related to #22116. netty channels require socket
connect
andaccept
privileges. Netty does not currently wrap these operationswith
doPrivileged
blocks. These changes extend the netty channelsand wrap calls to the relevant super methods in doPrivileged blocks.