containerd/oci
Daniel Canter 50a5685951 Change oci.WithUser behavior for LCOW
The `oci.WithUser` function relies on checking a path on the hosts disk to
grab/validate the uid:gid pair for the user string provided. For LCOW it's a
bit harder to confirm that the user actually exists on the host as a rootfs isn't
mounted on the host and shared into the guest, but rather the rootfs is constructed
entirely in the guest itself. To accomodate this, a spot to place the user string
provided by a client as-is is needed.

The `Username` field on the runtime spec is marked by Platform as only for Windows,
and in this case it *is* being set on a Windows host at least, but will be used as a
temporary holding spot until the guest can use the string to perform these same
operations to grab the uid:gid inside.

Signed-off-by: Daniel Canter <dcanter@microsoft.com>
2021-09-17 09:36:24 -07:00
..
client.go Licence header added 2018-02-19 10:32:26 +09:00
mounts_freebsd.go Add ruleset=4 option 2021-05-25 09:17:16 +02:00
mounts.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
spec_opts_linux_test.go Adding testing of two devices 2021-08-30 11:28:43 -05:00
spec_opts_linux.go Fix dir support for devices V3 (#4847) 2021-08-19 07:18:31 -05:00
spec_opts_nonlinux.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
spec_opts_test.go Merge pull request #5063 from Iceber/fix-with-dev-shm-size 2021-05-06 23:48:04 +08:00
spec_opts_unix_test.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00
spec_opts_unix.go cri: Devices ownership from SecurityContext 2021-08-30 09:30:00 +03:00
spec_opts_windows_test.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
spec_opts_windows.go Remove redundant build tags 2021-08-05 22:27:46 -07:00
spec_opts.go Change oci.WithUser behavior for LCOW 2021-09-17 09:36:24 -07:00
spec_test.go oci.WithPrivileged: set the current caps, not the known caps 2021-02-10 17:14:17 +09:00
spec.go Fix mounts for FreeBSD 2021-05-10 21:49:46 +02:00
utils_unix.go Run go fmt with Go 1.17 2021-08-22 09:31:50 +09:00