diff options
author | Nicolas Lacasse <nlacasse@google.com> | 2020-04-22 22:17:01 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-22 22:18:21 -0700 |
commit | e69a871c7bd4e4859b0acd8b875171f3ebbaec29 (patch) | |
tree | 093fb2f0bf73a586bd6b7ad876a107da6de968ad /pkg/sentry/fs/user/BUILD | |
parent | 0c586946ea26610b87c4ff7bda783a5a9ca11ec0 (diff) |
Move user home detection to its own library.
PiperOrigin-RevId: 307977689
Diffstat (limited to 'pkg/sentry/fs/user/BUILD')
-rw-r--r-- | pkg/sentry/fs/user/BUILD | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkg/sentry/fs/user/BUILD b/pkg/sentry/fs/user/BUILD new file mode 100644 index 000000000..f37f979f1 --- /dev/null +++ b/pkg/sentry/fs/user/BUILD @@ -0,0 +1,34 @@ +load("//tools:defs.bzl", "go_library", "go_test") + +package(licenses = ["notice"]) + +go_library( + name = "user", + srcs = ["user.go"], + visibility = ["//pkg/sentry:internal"], + deps = [ + "//pkg/abi/linux", + "//pkg/context", + "//pkg/fspath", + "//pkg/sentry/fs", + "//pkg/sentry/kernel/auth", + "//pkg/sentry/vfs", + "//pkg/usermem", + ], +) + +go_test( + name = "user_test", + size = "small", + srcs = ["user_test.go"], + library = ":user", + deps = [ + "//pkg/abi/linux", + "//pkg/context", + "//pkg/sentry/fs", + "//pkg/sentry/fs/tmpfs", + "//pkg/sentry/kernel/auth", + "//pkg/sentry/kernel/contexttest", + "//pkg/usermem", + ], +) |