| package main | |
| import ( | |
| "os" | |
| "github.com/opencontainers/runc/libcontainer" | |
| _ "github.com/opencontainers/runc/libcontainer/nsenter" | |
| ) | |
| func init() { | |
| if len(os.Args) > 1 && os.Args[1] == "init" { | |
| // This is the golang entry point for runc init, executed | |
| // before main() but after libcontainer/nsenter's nsexec(). | |
| libcontainer.Init() | |
| } | |
| } |