INNER CODE UNIT · Go
appArmorProfile
kubearmor/KubeArmor · deployments/podman/Hook/main.go:174
appArmorProfile = spec.Process.ApparmorProfile // check if Process is nil??
isKubeArmor = spec.Process.Args[0] == "/KubeArmor/kubearmor"
}
if isKubeArmor {
err = startDetachedProcess()
if err != nil {
return err
}
// we still continue to try to send container details after starting the detached process
// to make sure if it was a false positive (container trying to act as KubeArmor), we still
// monitor it.
}
var homeDir string
homeDir = os.Getenv("HOME")
if homeDir == "" {
passwdFile, err := os.Open("/etc/passwd")
if err != nil {