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
syscall: exec_linux: switch to F_DUPFD_CLOEXEC in clobber-prevention logic
The existing clobber-prevention logic can end up clobbering random file
descriptors, which can cause issues on Linux if a user wants to execute
a /proc/self/fd/$n handle that isn't included in attr.Files. Similar
logic already exists for the BSDs and Solaris.
In addition, the F_DUPFD_CLOEXEC makes the clobber-prevention logic much
simpler to follow.
Closes#61751
0 commit comments