Skip to content

Commit 17db656

Browse files
author
Ma Shimiao
committed
support unbindable,runbindable for rootfs propagation
Signed-off-by: Ma Shimiao <[email protected]>
1 parent fb6ec65 commit 17db656

File tree

1 file changed

+9
-7
lines changed

1 file changed

+9
-7
lines changed

libcontainer/specconv/spec_linux.go

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,15 @@ var namespaceMapping = map[specs.LinuxNamespaceType]configs.NamespaceType{
3131
}
3232

3333
var mountPropagationMapping = map[string]int{
34-
"rprivate": unix.MS_PRIVATE | unix.MS_REC,
35-
"private": unix.MS_PRIVATE,
36-
"rslave": unix.MS_SLAVE | unix.MS_REC,
37-
"slave": unix.MS_SLAVE,
38-
"rshared": unix.MS_SHARED | unix.MS_REC,
39-
"shared": unix.MS_SHARED,
40-
"": 0,
34+
"rprivate": unix.MS_PRIVATE | unix.MS_REC,
35+
"private": unix.MS_PRIVATE,
36+
"rslave": unix.MS_SLAVE | unix.MS_REC,
37+
"slave": unix.MS_SLAVE,
38+
"rshared": unix.MS_SHARED | unix.MS_REC,
39+
"shared": unix.MS_SHARED,
40+
"runbindable": unix.MS_UNBINDABLE | unix.MS_REC,
41+
"unbindable": unix.MS_UNBINDABLE,
42+
"": 0,
4143
}
4244

4345
var allowedDevices = []*configs.Device{

0 commit comments

Comments
 (0)