open-nomad/client
Seth Hoenig ba1e337f8b
helpers: lockfree lookup of nobody user on unix systems (#14866)
* helpers: lockfree lookup of nobody user on linux and darwin

This PR continues the nobody user lookup saga, by making the nobody
user lookup lock-free on linux and darwin.

By doing the lookup in an init block this originally broke on Windows,
where we must avoid doing the lookup at all. We can get around that
breakage by only doing the lookup on linux/darwin where the nobody
user is going to exist.

Also return the nobody user by value so that a copy is created that
cannot be modified by callers of Nobody().

* helper: move nobody code into unix file
2022-10-11 08:38:05 -05:00
..
allocdir helpers: lockfree lookup of nobody user on unix systems (#14866) 2022-10-11 08:38:05 -05:00
allochealth 2 small data race fixes in logmon and check tests (#14538) 2022-09-13 12:54:06 -07:00
allocrunner enhancement: UpdateTask when Task is waiting for ShutdownDelay (#14775) 2022-10-06 16:33:28 -04:00
allocwatcher
config cleanup: rename Equals to Equal for consistency (#14759) 2022-10-10 09:28:46 -05:00
consul
devicemanager
dynamicplugins
fingerprint fingerprint: add node attr for reserverable cores (#14694) 2022-09-26 13:03:03 -07:00
interfaces
lib cleanup: rename Equals to Equal for consistency (#14759) 2022-10-10 09:28:46 -05:00
logmon 2 small data race fixes in logmon and check tests (#14538) 2022-09-13 12:54:06 -07:00
pluginmanager cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
servers
serviceregistration deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00
state cleanup more helper updates (#14638) 2022-09-21 14:53:25 -05:00
stats
structs
taskenv
testutil
vaultclient
acl.go
acl_test.go
agent_endpoint.go
agent_endpoint_test.go
alloc_endpoint.go
alloc_endpoint_test.go
alloc_watcher_e2e_test.go
client.go cleanup: rename Equals to Equal for consistency (#14759) 2022-10-10 09:28:46 -05:00
client_stats_endpoint.go
client_stats_endpoint_test.go
client_test.go
csi_endpoint.go
csi_endpoint_test.go
driver_manager_test.go
enterprise_client_oss.go
fingerprint_manager.go fingerprint: lengthen Vault check after seen (#14693) 2022-09-26 12:14:19 -07:00
fingerprint_manager_test.go
fs_endpoint.go
fs_endpoint_test.go
gc.go
gc_test.go
heartbeatstop.go
heartbeatstop_test.go
node_updater.go
rpc.go
rpc_test.go
testing.go
util.go