From fce64b29394148ef3826fc151996843040cee8b0 Mon Sep 17 00:00:00 2001 From: yo Date: Sun, 6 Aug 2023 14:50:33 +0200 Subject: [PATCH] Handle basejails --- cmd/console.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/console.go b/cmd/console.go index a1238f7..6c82e8d 100644 --- a/cmd/console.go +++ b/cmd/console.go @@ -12,7 +12,7 @@ import ( func ShellJail(args []string) error { // We cant shell more than one jail bc we replace gocage execution with jexec, so there wont be no return to gocage if len(args) > 0 { - cj, err := getJailFromArray(args[0], []string{"jail"}, gJails) + cj, err := getJailFromArray(args[0], []string{"basejail", "jail"}, gJails) if err != nil { fmt.Printf("Error getting jail %s: %v\n", args[0], err) return err