containerd/plugins/services/introspection
Samuel Karp 0dcc51aedf
introspection: regenerate UUID if state is empty
The /var/lib/containerd/io.containerd.grpc.v1.introspection/uuid file
stores a UUID to identify the particular containerd daemon responding to
requests.  The file should either exist with a UUID, or not exist.
However, it has been observed that the file can be truncated with 0
bytes, which will then fail to be parsed as a valid UUID.

As a defensive practice, detect a 0-length file and overwrite with a new
UUID rather than failing.

Fixes: https://github.com/containerd/containerd/issues/10491
Signed-off-by: Samuel Karp <samuelkarp@google.com>
2024-07-25 11:02:54 -07:00
..
local.go introspection: regenerate UUID if state is empty 2024-07-25 11:02:54 -07:00
pidns_linux.go Move services to plugins/services 2024-01-17 09:52:57 -08:00
pidns_others.go Move services to plugins/services 2024-01-17 09:52:57 -08:00
service.go Make api a Go sub-module 2024-05-02 11:03:00 -07:00