summaryrefslogtreecommitdiffhomepage
path: root/runsc/boot/BUILD
diff options
context:
space:
mode:
authorIan Lewis <ianlewis@google.com>2019-06-13 15:44:17 -0700
committerShentubot <shentubot@google.com>2019-06-13 15:45:25 -0700
commit4fdd560b76dfe4e3df83a8cba5a070ce7142b433 (patch)
tree81c8096435d17ccf47659ad1c6cb2effb5271720 /runsc/boot/BUILD
parent9f77b36fa100761eb3eabbb87f5111419202a9d5 (diff)
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
Diffstat (limited to 'runsc/boot/BUILD')
-rw-r--r--runsc/boot/BUILD3
1 files changed, 3 insertions, 0 deletions
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 = [