Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 8 additions & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@ import (
)

var (
debug bool
debug bool
docker_sock_hunt bool
)

func main() {
Expand All @@ -36,6 +37,7 @@ func main() {
// Setup the global flags.
p.FlagSet = flag.NewFlagSet("ship", flag.ExitOnError)
p.FlagSet.BoolVar(&debug, "d", false, "enable debug logging")
p.FlagSet.BoolVar(&docker_sock_hunt, "s", false, "enable docker sock hunting")

// Set the before function.
p.Before = func(ctx context.Context) error {
Expand Down Expand Up @@ -99,9 +101,11 @@ func main() {

seccompIter()

// Docker.sock
fmt.Println("Looking for Docker.sock")
getValidSockets("/")
if docker_sock_hunt {
// Docker.sock
fmt.Println("Looking for Docker.sock")
getValidSockets("/")
}

return nil
}
Expand Down