open-nomad/helper
Seth Hoenig 92d4a05534
users: eliminate nobody user memoization (#16904)
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
2023-04-17 12:30:30 -05:00
..
args [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
boltdd [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
broker [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
bufconndialer [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
codec [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
constraints/semver [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
crypto [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
discover [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
envoy [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
escapingfs [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
escapingio [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
fields [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
flags [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
flatmap [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
gated-writer [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
grpc-middleware/logging [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
ipaddr [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
logging [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
mount [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
noxssrw [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
pluginutils [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
pointer [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
pool [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
raftutil [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
snapshot [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
stats [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
subproc [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
testlog [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
testtask [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
tlsutil [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
useragent [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
users users: eliminate nobody user memoization (#16904) 2023-04-17 12:30:30 -05:00
uuid [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
winsvc [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
cluster.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
cluster_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
eof.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
funcs.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
funcs_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
opaque.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
opaque_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
warning.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00
warning_test.go [COMPLIANCE] Add Copyright and License Headers 2023-04-10 15:36:59 +00:00