summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/strace/open.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/sentry/strace/open.go')
-rw-r--r--pkg/sentry/strace/open.go15
1 files changed, 3 insertions, 12 deletions
diff --git a/pkg/sentry/strace/open.go b/pkg/sentry/strace/open.go
index 5a72a940c..3bf348d7a 100644
--- a/pkg/sentry/strace/open.go
+++ b/pkg/sentry/strace/open.go
@@ -22,18 +22,9 @@ import (
// OpenMode represents the mode to open(2) a file.
var OpenMode = abi.ValueSet{
- {
- Value: syscall.O_RDWR,
- Name: "O_RDWR",
- },
- {
- Value: syscall.O_WRONLY,
- Name: "O_WRONLY",
- },
- {
- Value: syscall.O_RDONLY,
- Name: "O_RDONLY",
- },
+ syscall.O_RDWR: "O_RDWR",
+ syscall.O_WRONLY: "O_WRONLY",
+ syscall.O_RDONLY: "O_RDONLY",
}
// OpenFlagSet is the set of open(2) flags.