From 4fdd560b76dfe4e3df83a8cba5a070ce7142b433 Mon Sep 17 00:00:00 2001 From: Ian Lewis Date: Thu, 13 Jun 2019 15:44:17 -0700 Subject: Set the HOME environment variable (fixes #293) runsc will now set the HOME environment variable as required by POSIX. The user's home directory is retrieved from the /etc/passwd file located on the container's file system during boot. PiperOrigin-RevId: 253120627 --- runsc/boot/BUILD | 3 +++ 1 file changed, 3 insertions(+) (limited to 'runsc/boot/BUILD') diff --git a/runsc/boot/BUILD b/runsc/boot/BUILD index 744f852a1..0d8b74871 100644 --- a/runsc/boot/BUILD +++ b/runsc/boot/BUILD @@ -18,6 +18,7 @@ go_library( "network.go", "pprof.go", "strace.go", + "user.go", ], importpath = "gvisor.googlesource.com/gvisor/runsc/boot", visibility = [ @@ -69,6 +70,7 @@ go_library( "//pkg/sentry/time", "//pkg/sentry/unimpl:unimplemented_syscall_go_proto", "//pkg/sentry/usage", + "//pkg/sentry/usermem", "//pkg/sentry/watchdog", "//pkg/syserror", "//pkg/tcpip", @@ -97,6 +99,7 @@ go_test( "compat_test.go", "fs_test.go", "loader_test.go", + "user_test.go", ], embed = [":boot"], deps = [ -- cgit v1.2.3