Make sure our parent is always pid 1

master
xSmurf 9 years ago
parent 0ce0904c9c
commit 578b78402d

@ -27,6 +27,11 @@ func Main() {
os.Exit(1)
}
if os.Getppid() != 1 {
log.Error("oz-seccomp wrapper much be called from oz-init!")
os.Exit(1)
}
var getvar = func(name string) string {
val := os.Getenv(name)
if val == "" {

Loading…
Cancel
Save