mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
096e6f88f0
Go 1.23 tightens access to internal symbols, and even puts runc into "hall of shame" for using an internal symbol (recently added by commitda68c8e3). So, while not impossible, it becomes harder to access those internal symbols, and it is a bad idea in general. Since Go 1.23 includes https://go.dev/cl/588076, we can clean the internal rlimit cache by setting the RLIMIT_NOFILE for ourselves, essentially disabling the rlimit cache. Once Go 1.22 is no longer supported, we will remove the go:linkname hack. (cherry picked from commit584afc6756) Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>