Skip to content

Commit 1b05c2b

Browse files
committed
libcontainer/specconv/spec_linux: Add support for (no)iversion
Part of catching runC up with the spec, which punts valid options to mount(8) [1,2]. [1]: https://github.com/opencontainers/runtime-spec/blame/v1.0.0-rc5/config.md#L68 [2]: opencontainers/runtime-spec#771 Signed-off-by: W. Trevor King <[email protected]>
1 parent d7912aa commit 1b05c2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libcontainer/specconv/spec_linux.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -647,13 +647,15 @@ func parseMountOptions(options []string) (int, []int, string, int) {
647647
"diratime": {true, unix.MS_NODIRATIME},
648648
"dirsync": {false, unix.MS_DIRSYNC},
649649
"exec": {true, unix.MS_NOEXEC},
650+
"iversion": {false, unix.MS_I_VERSION},
650651
"lazytime": {false, unix.MS_LAZYTIME},
651652
"loud": {true, unix.MS_SILENT},
652653
"mand": {false, unix.MS_MANDLOCK},
653654
"noatime": {false, unix.MS_NOATIME},
654655
"nodev": {false, unix.MS_NODEV},
655656
"nodiratime": {false, unix.MS_NODIRATIME},
656657
"noexec": {false, unix.MS_NOEXEC},
658+
"noiversion": {true, unix.MS_I_VERSION},
657659
"nolazytime": {true, unix.MS_LAZYTIME},
658660
"nomand": {true, unix.MS_MANDLOCK},
659661
"norelatime": {true, unix.MS_RELATIME},

0 commit comments

Comments
 (0)