From 6ef08c2bc2be1cc93bdf42bba5b96a0968a94552 Mon Sep 17 00:00:00 2001 From: Nicolas Lacasse Date: Thu, 15 Nov 2018 13:48:04 -0800 Subject: Allow setting sticky bit in tmpfs permissions. PiperOrigin-RevId: 221683127 Change-Id: Ide6a9f41d75aa19d0e2051a05a1e4a114a4fb93c --- pkg/sentry/fs/tmpfs/fs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/sentry/fs/tmpfs') 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. // -- cgit v1.2.3