92d4a05534
This PR eliminates code specific to looking up and caching the uid/gid/user.User object associated with the nobody user in an init block. This code existed before adding the generic users cache and was meant to optimize the one search path we knew would happen often. Now that we have the cache, seems reasonable to eliminate this init block and use the cache instead like for any other user. Also fixes a constraint on the podman (and other) drivers, where building without CGO became problematic on some OS like Fedora IoT where the nobody user cannot be found with the pure-Go standard library. Fixes github.com/hashicorp/nomad-driver-podman/issues/228 |
||
---|---|---|
.. | ||
input | ||
alloc_dir.go | ||
alloc_dir_test.go | ||
fs_darwin.go | ||
fs_freebsd.go | ||
fs_linux.go | ||
fs_linux_test.go | ||
fs_solaris.go | ||
fs_unix.go | ||
fs_windows.go | ||
task_dir.go | ||
task_dir_linux.go | ||
task_dir_nonlinux.go | ||
task_dir_test.go | ||
testing.go |