Add support for PID and net namespaces.