summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace/linux64.go
diff options
context:
space:
mode:
authorFabricio Voznika <fvoznika@google.com>2018-12-21 11:52:39 -0800
committerShentubot <shentubot@google.com>2018-12-21 11:54:02 -0800
commit1679ef31ef15344eba218a5251fa1fb1438b4cb7 (patch)
tree8ca6bb1f5a074dfc21925f31f5f461fc93b140c0 /pkg/sentry/strace/linux64.go
parent5c7f70a07d8f4b08db3446e0cf75ad43bb2c1953 (diff)
inotify notifies watchers when control events bit are set
The code that matches the event being published with events watchers was wronly matching all watchers in case any of the control event bits were set. Issue #121 PiperOrigin-RevId: 226521230 Change-Id: Ie2c42bc4366faaf59fbf80a74e9297499bd93f9e
Diffstat (limited to 'pkg/sentry/strace/linux64.go')
-rw-r--r--pkg/sentry/strace/linux64.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/strace/linux64.go b/pkg/sentry/strace/linux64.go
index e8fb711a5..de2da9369 100644
--- a/pkg/sentry/strace/linux64.go
+++ b/pkg/sentry/strace/linux64.go
@@ -271,7 +271,7 @@ var linuxAMD64 = SyscallMap{
251: makeSyscallInfo("ioprio_set", Hex, Hex, Hex),
252: makeSyscallInfo("ioprio_get", Hex, Hex),
253: makeSyscallInfo("inotify_init"),
- 254: makeSyscallInfo("inotify_add_watch", Hex, Hex, Hex),
+ 254: makeSyscallInfo("inotify_add_watch", Hex, Path, Hex),
255: makeSyscallInfo("inotify_rm_watch", Hex, Hex),
256: makeSyscallInfo("migrate_pages", Hex, Hex, Hex, Hex),
257: makeSyscallInfo("openat", Hex, Path, OpenFlags, Mode),