aboutsummaryrefslogtreecommitdiff
path: root/src/unix/linux.c
diff options
context:
space:
mode:
authorBen Noordhuis <info@bnoordhuis.nl>2025-04-07 22:34:23 +0200
committerGitHub <noreply@github.com>2025-04-07 22:34:23 +0200
commitfc29c125d41792e931afe7cf0bc9283499bfd59d (patch)
tree399123c6219e52ae547cbc8af2665d54d3d4100b /src/unix/linux.c
parent745c68d4ea5ecbf420056e7dfa7ab9bd43cb2f07 (diff)
downloadlibuv-fc29c125d41792e931afe7cf0bc9283499bfd59d.tar.gz
libuv-fc29c125d41792e931afe7cf0bc9283499bfd59d.zip
unix: remove TOCTOU issues from uv_pipe_chmod (#4749)
Use fchmod() on platforms that support it on UNIX sockets. Only fall back to chmod() on platforms that don't (macOS and the BSDs.) Remove the stat + chmod dance from the fallback and just call chmod directly, because that's another source of TOCTOU issues. Fixes: https://github.com/libuv/libuv/issues/2040
Diffstat (limited to 'src/unix/linux.c')
0 files changed, 0 insertions, 0 deletions