diff options
author | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-06-02 15:54:36 +0200 |
---|---|---|
committer | Zyad A. Ali <zyad.ali.me@gmail.com> | 2021-07-13 22:12:02 +0200 |
commit | 4a874557f5846ec9cb2e5b2515921e37a4ca4f07 (patch) | |
tree | f8e3f5d9b1ec5b8f003fb8185e03df3effb394fd /pkg/sentry/kernel | |
parent | 084aa4fa51b74b426cf1bc0e1347624b2b516bcd (diff) |
Implement stubs for msgget(2) and msgctl(IPC_RMID).
Add support for msgget, and msgctl(IPC_RMID), and enable msgqueue
syscall tests.
Updates #135
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r-- | pkg/sentry/kernel/msgqueue/msgqueue.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/msgqueue/msgqueue.go b/pkg/sentry/kernel/msgqueue/msgqueue.go index 5f7f35cd3..3ce926950 100644 --- a/pkg/sentry/kernel/msgqueue/msgqueue.go +++ b/pkg/sentry/kernel/msgqueue/msgqueue.go @@ -213,3 +213,8 @@ func (q *Queue) Destroy() { q.senders.Notify(waiter.EventOut) q.receivers.Notify(waiter.EventIn) } + +// ID returns queue's ID. +func (q *Queue) ID() ipc.ID { + return q.obj.ID +} |