From 42a586e76b522f3e137caaa3395069933eefde46 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 cc01f86fd900..1b97b4b4824d 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) }