diff options
author | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-07-29 17:33:45 +0200 |
---|---|---|
committer | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-09-28 20:43:47 +0200 |
commit | 229c01552e2b819c2fa6bf1f5aa017cff366869e (patch) | |
tree | 9415551dea5e460433380aabb2fc381b04045ca4 /pkg/sentry/kernel/mq | |
parent | bcef079ec24d56d37a670c4c4149c638be6fb110 (diff) |
Move filesystem creation from GetFilesystem to RegistryImpl.
Move root dentry and filesystem creation from GetFilesystem to
NewRegistryImpl, create IPCNamespace.InitPosixQueues to create a new
mqueue filesystem for each ipc namespace, and update GetFilesystem to
retreive fs and root dentry from IPCNamespace and return them.
Updates #136
Diffstat (limited to 'pkg/sentry/kernel/mq')
-rw-r--r-- | pkg/sentry/kernel/mq/mq.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/mq/mq.go b/pkg/sentry/kernel/mq/mq.go index be46f78c8..739ea2f1c 100644 --- a/pkg/sentry/kernel/mq/mq.go +++ b/pkg/sentry/kernel/mq/mq.go @@ -79,6 +79,11 @@ func (r *Registry) Destroy(ctx context.Context) { r.impl.Destroy(ctx) } +// Impl returns RegistryImpl inside r. +func (r *Registry) Impl() RegistryImpl { + return r.impl +} + // Queue represents a POSIX message queue. // // +stateify savable |