code: func HasPrivilegedContainer(pod *v1.Pod) bool {
  	for _, c := range append(pod.Spec.Containers, pod.Spec.InitContainers...) {
  		if c.SecurityContext != nil &&
  			c.SecurityContext.Privileged != nil &&
  			*c.SecurityContext.Privileged {
  			return true
  		}
  	}
  	return false
  }
docs: // HasPrivilegedContainer returns true if any of the containers in the pod are privileged.