From f70f1ad2afae3bc63b26041bfcd664fac93e04c7 Mon Sep 17 00:00:00 2001 From: marco Date: Thu, 30 May 2024 13:34:15 +0200 Subject: [PATCH] interface conversion: interface {} is *syscall.Stat_t, not *unix.Stat_t --- pkg/csplugin/utils.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/csplugin/utils.go b/pkg/csplugin/utils.go index ec6373e682b..2c7d21db412 100644 --- a/pkg/csplugin/utils.go +++ b/pkg/csplugin/utils.go @@ -118,7 +118,7 @@ func pluginIsValid(path string) error { if err != nil { return fmt.Errorf("while looking up the current uid: %w", err) } - stat := details.Sys().(*unix.Stat_t) + stat := details.Sys().(*syscall.Stat_t) if stat.Uid != currentUID { return fmt.Errorf("plugin at %s is not owned by user '%s'", path, currentUser.Username) }