From b73a0fead6d1c1801f9f4dc7aa4b15b76d648479 Mon Sep 17 00:00:00 2001 From: Jonathan Ribas Date: Thu, 19 Dec 2024 10:03:12 +0100 Subject: [PATCH] remove ioutil dependency --- pkg/security/utils/proc_linux.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pkg/security/utils/proc_linux.go b/pkg/security/utils/proc_linux.go index 9a3a8ec869baa..35a0db8098c19 100644 --- a/pkg/security/utils/proc_linux.go +++ b/pkg/security/utils/proc_linux.go @@ -11,7 +11,6 @@ import ( "errors" "fmt" "io" - "io/ioutil" "os" "path" "path/filepath" @@ -457,7 +456,7 @@ func GetPidTasks(pid uint32) ([]string, error) { taskPath := procPidPath(pid, "task") // Read the contents of the task directory - tasks, err := ioutil.ReadDir(taskPath) + tasks, err := os.ReadDir(taskPath) if err != nil { return nil, fmt.Errorf("failed to read task directory: %v", err) }