diff options
author | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-07-19 18:22:31 +0200 |
---|---|---|
committer | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-09-15 21:56:35 +0200 |
commit | 61cbf77873ad5095f1a5f4726f486c883cf7e7dc (patch) | |
tree | d82f437486fab451de870bd0b4509c37ad88c32c /pkg/sentry/fsimpl/mqfs/BUILD | |
parent | 2774b3ea3bcae10afa8c87e1fce46d60e7580fe1 (diff) |
Implement mqfs.rootInode.
rootInode represents the root inode for mqueue filesystem (/dev/mqueue).
Updates #136
Diffstat (limited to 'pkg/sentry/fsimpl/mqfs/BUILD')
-rw-r--r-- | pkg/sentry/fsimpl/mqfs/BUILD | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/pkg/sentry/fsimpl/mqfs/BUILD b/pkg/sentry/fsimpl/mqfs/BUILD new file mode 100644 index 000000000..8a5925396 --- /dev/null +++ b/pkg/sentry/fsimpl/mqfs/BUILD @@ -0,0 +1,33 @@ +load("//tools:defs.bzl", "go_library") +load("//tools/go_generics:defs.bzl", "go_template_instance") + +package(licenses = ["notice"]) + +go_template_instance( + name = "root_inode_refs", + out = "root_inode_refs.go", + package = "mqfs", + prefix = "rootInode", + template = "//pkg/refsvfs2:refs_template", + types = { + "T": "rootInode", + }, +) + +go_library( + name = "mqfs", + srcs = [ + "inodes.go", + "root_inode_refs.go", + ], + visibility = ["//pkg/sentry:internal"], + deps = [ + "//pkg/abi/linux", + "//pkg/context", + "//pkg/errors/linuxerr", + "//pkg/refsvfs2", + "//pkg/sentry/fsimpl/kernfs", + "//pkg/sentry/kernel/auth", + "//pkg/sentry/vfs", + ], +) |