summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/file.go
diff options
context:
space:
mode:
authorJamie Liu <jamieliu@google.com>2019-12-10 18:16:47 -0800
committergVisor bot <gvisor-bot@google.com>2019-12-10 18:21:07 -0800
commit46651a7d26559bdc69d460bdeb4de5968212d615 (patch)
tree00ca98ae40b9a2c12a8dfa3a51ec98cd78d04cf9 /pkg/abi/linux/file.go
parent4ff71b5be462f3f16808abea11de1f5e01567e5d (diff)
Add most VFS methods for syscalls.
PiperOrigin-RevId: 284892289
Diffstat (limited to 'pkg/abi/linux/file.go')
-rw-r--r--pkg/abi/linux/file.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/pkg/abi/linux/file.go b/pkg/abi/linux/file.go
index c9ee098f4..0f014d27f 100644
--- a/pkg/abi/linux/file.go
+++ b/pkg/abi/linux/file.go
@@ -144,9 +144,13 @@ const (
ModeCharacterDevice = S_IFCHR
ModeNamedPipe = S_IFIFO
- ModeSetUID = 04000
- ModeSetGID = 02000
- ModeSticky = 01000
+ S_ISUID = 04000
+ S_ISGID = 02000
+ S_ISVTX = 01000
+
+ ModeSetUID = S_ISUID
+ ModeSetGID = S_ISGID
+ ModeSticky = S_ISVTX
ModeUserAll = 0700
ModeUserRead = 0400