open-nomad/helper
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
..
args address review comments 2018-10-30 13:58:52 -04:00
boltdd deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00
broker core: allow pausing and un-pausing of leader broker routine (#13045) 2022-07-06 16:13:48 +02:00
bufconndialer test: test the buffered pipe used by nsd (#12563) 2022-04-14 08:38:25 -07:00
codec Provide mock secure variables implementation (#12980) 2022-07-11 13:34:03 -04:00
constraints/semver chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
crypto keyring: wrap root key in key encryption key (#14388) 2022-08-30 10:59:25 -04:00
discover chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
envoy ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
escapingfs cleanup: move fs helpers into escapingfs 2022-08-24 14:45:34 -05:00
escapingio build: run gofmt on all go source files 2022-08-16 11:14:11 -05:00
fields goimports 2019-01-22 15:44:31 -08:00
flags ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
flatmap Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
freeport ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
gated-writer gatedwriter: Fix race condition (#9791) 2021-01-14 12:43:14 -08:00
grpc-middleware/logging Add gosimple linter (#9590) 2020-12-09 11:05:18 -08:00
ipaddr helper: add ipaddr pkg to check for any IP addresses. 2022-03-03 11:24:50 +01:00
logging cli Ui implementation that logs to a hclogger 2019-02-19 17:53:14 -06:00
mount deps: upgrade docker and runc 2022-01-18 08:35:26 -06:00
noxssrw lint: mark false positive or fix gocritic append lint errors. 2021-09-06 10:49:44 +02:00
pluginutils cleanup: replace TypeToPtr helper methods with pointer.Of (#14151) 2022-08-17 18:26:34 +02:00
pointer cleanup: rename Equals to Equal for consistency (#14759) 2022-10-10 09:28:46 -05:00
pool rpc: fix race in conn last used tracking (#14173) 2022-08-17 14:57:53 -07:00
raftutil Merge branch 'main' into f-gh-13120-sso-umbrella-merged-main 2022-08-30 08:59:13 +01:00
snapshot snapshot restore-from-archive streaming and filtering (#13658) 2022-07-11 10:48:00 -04:00
stats chore: fix incorrect docstring formatting. 2021-08-30 11:08:12 +02:00
testlog tests: add a space between node name and timestamp (#13750) 2022-07-13 16:23:03 -04:00
testtask gofmt all the files 2021-10-01 10:14:28 -04:00
tlsutil ci: swap ci parallelization for unconstrained gomaxprocs 2022-03-15 12:58:52 -05:00
useragent Set user-agent when talking to GCE metadata 2018-04-10 10:36:46 -04:00
users helpers: lockfree lookup of nobody user on unix systems (#14866) 2022-10-11 08:38:05 -05:00
uuid keyring: wrap root key in key encryption key (#14388) 2022-08-30 10:59:25 -04:00
winsvc gofmt all the files 2021-10-01 10:14:28 -04:00
cluster.go helper: guard against negative inputs into random stagger 2022-09-08 09:17:48 -05:00
cluster_test.go deps: update set and test (#14680) 2022-09-26 08:28:03 -05:00
eof.go feat: remove dependency to consul/lib 2022-04-09 13:22:44 +02:00
funcs.go cleanup: rename Equals to Equal for consistency (#14759) 2022-10-10 09:28:46 -05:00
funcs_test.go cleanup: rename Equals to Equal for consistency (#14759) 2022-10-10 09:28:46 -05:00