summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fsimpl
diff options
context:
space:
mode:
authorZyad A. Ali <zyad.ali.me@gmail.com>2021-07-29 22:17:26 +0200
committerZyad A. Ali <zyad.ali.me@gmail.com>2021-09-28 20:43:52 +0200
commit7508a0efeeef19a3e08e06e80be8258743438412 (patch)
tree653ddcb5134c383a2987d92d1cbc21881714e083 /pkg/sentry/fsimpl
parentb2be0611cd75b83eafc5ec5e7a0fbaeb1eaf9663 (diff)
Define mq.View and use it for mqfs.queueFD.
View makes it easier to handle O_RDONLY, O_WRONLY, and ORDWR options in mq_open(2). Updates #136
Diffstat (limited to 'pkg/sentry/fsimpl')
-rw-r--r--pkg/sentry/fsimpl/mqfs/queue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/sentry/fsimpl/mqfs/queue.go b/pkg/sentry/fsimpl/mqfs/queue.go
index a8e9bc722..933dbc6ed 100644
--- a/pkg/sentry/fsimpl/mqfs/queue.go
+++ b/pkg/sentry/fsimpl/mqfs/queue.go
@@ -65,8 +65,8 @@ type queueFD struct {
vfsfd vfs.FileDescription
inode kernfs.Inode
- // queue is the queue backing this fd.
- queue *mq.Queue
+ // queue is a view into the queue backing this fd.
+ queue mq.View
}
// Init initializes a queueFD. Mostly copied from DynamicBytesFD.Init, but uses