From 6b651fb25c1cc4ee8b29426b8a3ffbe0b3b549cd Mon Sep 17 00:00:00 2001 From: Sasha Mitchell Date: Sat, 17 Oct 2026 23:34:22 +0800 Subject: [PATCH] devices: skip .incus-mounts when listing devices Incus creates /dev/.incus-mounts mode 0700. GetDevices recursed into it and failed the whole listing with permission denied. .lxc, .lxd-mounts, and .udev are already skipped for that reason. Signed-off-by: Sasha Mitchell --- devices/device_unix.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/devices/device_unix.go b/devices/device_unix.go index bd401d3b..58c5c9ae 100644 --- a/devices/device_unix.go +++ b/devices/device_unix.go @@ -100,7 +100,8 @@ func GetDevices(path string) ([]*config.Device, error) { switch f.Name() { // ".lxc" & ".lxd-mounts" added to address https://github.com/lxc/lxd/issues/2825 // ".udev" added to address https://github.com/opencontainers/runc/issues/2093 - case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts", ".udev": + // ".incus-mounts" added to address https://github.com/moby/sys/issues/260 + case "pts", "shm", "fd", "mqueue", ".lxc", ".lxd-mounts", ".udev", ".incus-mounts": continue default: sub, err := GetDevices(filepath.Join(path, f.Name()))