We implement the securejoin method to make sure the paths to /etc/passwd and /etc/group are not symlinks to something naughty or outside the container image. And then instead of actually chrooting, we use the runc functions to get information about a user. The net result is increased security and a a performance gain from 41ms to 100us. Signed-off-by: baude <bbaude@redhat.com> |
||
|---|---|---|
| .. | ||
| github.com | ||
| golang.org/x | ||
| gopkg.in | ||
| k8s.io | ||