mirror of
https://github.com/containerd/containerd.git
synced 2026-08-12 12:14:44 +00:00
Fixesae70213Inae70213the WritePidFile and WriteAddress functions were changed to use AtomicFile instead of os.CreateFile. However, AtomicFile creates a temporary file and then changes its permissions with os.Chmod which alters the previously observed behavior of os.CreateFile which takes the system's umask into account. This means that on Linux-based systems these files suddenly became world writable (#9363). Signed-off-by: Jaroslav Jindrak <dzejrou@gmail.com>