summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/fs
diff options
context:
space:
mode:
authorNicolas Lacasse <nlacasse@google.com>2018-11-15 13:48:04 -0800
committerShentubot <shentubot@google.com>2018-11-15 13:48:59 -0800
commit6ef08c2bc2be1cc93bdf42bba5b96a0968a94552 (patch)
tree181e70012f472be072d5e48d9643c58ea3b2dbf3 /pkg/sentry/fs
parent9d8e49d9505e0b2659be01ec49cdad1948134188 (diff)
Allow setting sticky bit in tmpfs permissions.
PiperOrigin-RevId: 221683127 Change-Id: Ide6a9f41d75aa19d0e2051a05a1e4a114a4fb93c
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r--pkg/sentry/fs/tmpfs/fs.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/fs/tmpfs/fs.go b/pkg/sentry/fs/tmpfs/fs.go
index 453ed5bd9..2e57f2b42 100644
--- a/pkg/sentry/fs/tmpfs/fs.go
+++ b/pkg/sentry/fs/tmpfs/fs.go
@@ -44,7 +44,7 @@ const (
)
// modeRegexp is the expected format of the mode option.
-var modeRegexp = regexp.MustCompile("^0?[0-7][0-7][0-7]$")
+var modeRegexp = regexp.MustCompile("^[0-1]?[0-7][0-7][0-7]$")
// Filesystem is a tmpfs.
//