mirror of
https://github.com/openfaas/faasd.git
synced 2025-06-16 11:56:46 +00:00
* Fixes upstream deprecations for containerd * Fixes deprecations in ioutil package usage * Break out separate files for function handlers * Upgrades containerd to 1.7.22 * Fixes default namespace functionality * Pre-deploy checks as per license agreement * Removes extra log messages for payload in HTTP handlers, you can enable FAAS_DEBUG=1 in the CLI instead to see this from the client's perspective * Add additional Google DNS server 8.8.4.4 for functions Signed-off-by: Alex Ellis (OpenFaaS Ltd) <alexellis2@gmail.com>
17 lines
722 B
Go
Generated
17 lines
722 B
Go
Generated
// Package userns provides utilities to detect whether we are currently running
|
|
// in a Linux user namespace.
|
|
//
|
|
// This code was migrated from [libcontainer/runc], which based its implementation
|
|
// on code from [lcx/incus].
|
|
//
|
|
// [libcontainer/runc]: https://github.com/opencontainers/runc/blob/3778ae603c706494fd1e2c2faf83b406e38d687d/libcontainer/userns/userns_linux.go#L12-L49
|
|
// [lcx/incus]: https://github.com/lxc/incus/blob/e45085dd42f826b3c8c3228e9733c0b6f998eafe/shared/util.go#L678-L700
|
|
package userns
|
|
|
|
// RunningInUserNS detects whether we are currently running in a Linux
|
|
// user namespace and memoizes the result. It returns false on non-Linux
|
|
// platforms.
|
|
func RunningInUserNS() bool {
|
|
return inUserNS()
|
|
}
|