Uh oh!
There was an error while loading. Please reload this page.
net: allow IPC servers be accessible by all - #19472
Conversation
bzoz
commented
Mar 20, 2018
There was a problem hiding this comment.
These options should be camelCase.
There was a problem hiding this comment.
Since these are expected to be booleans, you could do options.readableAll === true.
bzoz
commented
Mar 21, 2018
Updated, PTAL. |
bzoz
commented
Mar 29, 2018
ping CI failures are unrelated. |
vsemozhetbyt
commented
Mar 29, 2018
As per "Who to cc...", cc @bnoordhuis, @indutny, @nodejs/streams |
bnoordhuis
left a comment
There was a problem hiding this comment.
Pinging @santigimeno since he also reviewed the libuv pull request.
There was a problem hiding this comment.
Should explain why you would want to do that, not just how.
There was a problem hiding this comment.
Just curious, what is the reason you went for strict true-ness instead of truthiness?
santigimeno
left a comment
There was a problem hiding this comment.
Changes LGTM. A couple of comments:
- I guess it's not easy testing this functionality on every platform but we could add tests that at least make sure that the changes don't break anything. We could even use
fs.statto check the mode of the pipe path on unices? - We should merge libuv/libuv#1635 soon to fix
uv_pipe_chmodonOS X.
BridgeAR
commented
Apr 16, 2018
@bzoz seems like the tests are failing. |
bzoz
commented
Apr 16, 2018
Linux failures seem unrelated, re-running the CI just to make sure: https://ci.nodejs.org/job/node-test-pull-request/14333/ |
bzoz
commented
Apr 17, 2018
Failures look unrelated, PTAL |
bzoz
commented
Apr 19, 2018
Ping? |
BridgeAR
commented
Apr 28, 2018
It would be good to get some further LGs for this. Ping @nodejs/http @nodejs/http2 @nodejs/streams |
There was a problem hiding this comment.
Could you use the overload that takes a context argument, or (even better imo) write this as
CHECK(args[0]->IsInt32());
int mode = args[0].As<Int32>()->Value();?
There was a problem hiding this comment.
Is there any reason not to expose the libuv names directly? Makes things a bit more grepable :)
addaleax
commented
May 14, 2018
Gentle ping in the direction of @bzoz :) |
Adds mappings to uv_pipe_chmod call by adding two new options to listen call. This allows the IPC server pipe to be made readable or writable by all users. Fixes: nodejs#19154
bzoz
commented
May 17, 2018
Updated (and rebased), PTAL |
bzoz
commented
May 21, 2018
bzoz
commented
May 23, 2018
Failures are unrelated, If no one objects I'll land this tomorrow. |
bzoz
commented
May 24, 2018
Landed in 531b4be |
targos
commented
May 25, 2018
Marking semver-minor because of the two new options. |
Notable Changes: * **deps**: - upgrade npm to 6.1.0 (Rebecca Turner) #20190 * **fs**: - fix reads with pos \> 4GB (Mathias Buus) #21003 * **net**: - new option to allow IPC servers to be readable and writable by all users (Bartosz Sosnowski) #19472 * **stream**: - fix removeAllListeners() for Stream.Readable to work as expected when no arguments are passed (Kael Zhang) #20924 * **Added new collaborators** - John-David Dalton (https://github.com/jdalton) PR-URL: #21011
Notable Changes: * **deps**: - upgrade npm to 6.1.0 (Rebecca Turner) #20190 * **fs**: - fix reads with pos \> 4GB (Mathias Buus) #21003 * **net**: - new option to allow IPC servers to be readable and writable by all users (Bartosz Sosnowski) #19472 * **stream**: - fix removeAllListeners() for Stream.Readable to work as expected when no arguments are passed (Kael Zhang) #20924 * **Added new collaborators** - John-David Dalton (https://github.com/jdalton) PR-URL: #21011
Notable Changes: * **deps**: - upgrade npm to 6.1.0 (Rebecca Turner) #20190 * **fs**: - fix reads with pos \> 4GB (Mathias Buus) #21003 * **net**: - new option to allow IPC servers to be readable and writable by all users (Bartosz Sosnowski) #19472 * **stream**: - fix removeAllListeners() for Stream.Readable to work as expected when no arguments are passed (Kael Zhang) #20924 * **Added new collaborators** - John-David Dalton (https://github.com/jdalton) PR-URL: #21011
jeroenvollenbrock
commented
May 14, 2019
Just out of curiosity, is there any chance of this receiving a backport to Node 8 even though it already entered maintenance state? It seems like a very minor task as the proper libuv version is already present, and since there is no easy workaround for the lack of this functionality on node 8, especially on windows, I'd be happy to give it a shot. |
MylesBorins
commented
May 14, 2019
@jeroenvollenbrock I do not believe this will be able to land on 8.x. It is in maintenance mode and as such we don't do regular semver-minors. We did recently do one, but the only minor changes that landed were updates to napi /cc @nodejs/lts |
jeroenvollenbrock
commented
May 14, 2019
I understand and very well respect the policy of not backporting semver-minor changes. I do think however it might be a good idea to make it a bit more clear in the documentation that readableAll and writableAll are node 10+ options in case a backport is definitely not possible. The docs currently make it seem like these two options have been around since Node v0.11.14. I actually only found out they weren't after debugging EACCESS errors, and manually compared v8 docs with the v10 docs. |
Adds mappings to
uv_pipe_chmodcall by adding two new options to listen call. This allows the IPC server pipe to be made readable or writable by all users.Fixes: #19154
Checklist
make -j4 test(UNIX), orvcbuild test(Windows) passes