You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Platform: Linux NZXT 4.9.0-5-rt-amd64 deps: update openssl to 1.0.1j #1 SMP PREEMPT RT Debian 4.9.65-3+deb9u2 (2018-01-04) x86_64 GNU/Linux
Subsystem: module require
I recently upgraded my Node.js version from v9.6.1 to v10.9.0, and the behavior related to the capability cap_net_bind_service has changed.
Up until the v9.6.1 version, i have always set the net_bind_service capability to be able to load my service on ports 80 and 443 on my development machine. It has always worked as expected.
With v10.9.0, it prevents the NODE_PATH env variable to be used to set a different require path.
In this last example, you can see that /home/louis/tmp/node/node-v9.6.1-linux-x64/lib has disapeared.
However, without the setcap command, NODE_PATH works as expected with v10.9.0.
I recently upgraded my Node.js version from v9.6.1 to v10.9.0, and the behavior related to the capability cap_net_bind_service has changed.
Up until the v9.6.1 version, i have always set the net_bind_service capability to be able to load my service on ports 80 and 443 on my development machine. It has always worked as expected.
With v10.9.0, it prevents the NODE_PATH env variable to be used to set a different require path.
Full commands to replicate the behavior (v9.6.1):
Here, with the version v9.6.1,
/home/louis/tmp/node/node-v9.6.1-linux-x64/libis correctly set in the require pathsNow the same steps with the v10.9.0:
In this last example, you can see that
/home/louis/tmp/node/node-v9.6.1-linux-x64/libhas disapeared.However, without the setcap command, NODE_PATH works as expected with v10.9.0.
I will now use Node.js without the bind capability (port >1024), but I think this is a regression.