Skip to content

Commit c3f2f16

Browse files
committed
libcontainer/specconv/spec_linux: Add support for silent and loud
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 10327eb commit c3f2f16

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
@@ -648,6 +648,7 @@ func parseMountOptions(options []string) (int, []int, string, int) {
648648
"dirsync": {false, unix.MS_DIRSYNC},
649649
"exec": {true, unix.MS_NOEXEC},
650650
"lazytime": {false, unix.MS_LAZYTIME},
651+
"loud": {true, unix.MS_SILENT},
651652
"mand": {false, unix.MS_MANDLOCK},
652653
"noatime": {false, unix.MS_NOATIME},
653654
"nodev": {false, unix.MS_NODEV},
@@ -663,6 +664,7 @@ func parseMountOptions(options []string) (int, []int, string, int) {
663664
"remount": {false, unix.MS_REMOUNT},
664665
"ro": {false, unix.MS_RDONLY},
665666
"rw": {true, unix.MS_RDONLY},
667+
"silent": {false, unix.MS_SILENT},
666668
"strictatime": {false, unix.MS_STRICTATIME},
667669
"suid": {true, unix.MS_NOSUID},
668670
"sync": {false, unix.MS_SYNCHRONOUS},

0 commit comments

Comments
 (0)