Skip to content

Commit cdfb37e

Browse files
committed
libcontainer/specconv/spec_linux: Add support for (no)acl
Part of catching runC up with the spec, which punts valid options to mount(8) [1,2]. This is a filesystem-specific entry in mount(8), but it's represented by a MS_* flag in mount(2) so we need an entry in the translation table. [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 1b05c2b commit cdfb37e

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
@@ -639,6 +639,7 @@ func parseMountOptions(options []string) (int, []int, string, int) {
639639
clear bool
640640
flag int
641641
}{
642+
"acl": {false, unix.MS_POSIXACL},
642643
"async": {true, unix.MS_SYNCHRONOUS},
643644
"atime": {true, unix.MS_NOATIME},
644645
"bind": {false, unix.MS_BIND},
@@ -651,6 +652,7 @@ func parseMountOptions(options []string) (int, []int, string, int) {
651652
"lazytime": {false, unix.MS_LAZYTIME},
652653
"loud": {true, unix.MS_SILENT},
653654
"mand": {false, unix.MS_MANDLOCK},
655+
"noacl": {true, unix.MS_POSIXACL},
654656
"noatime": {false, unix.MS_NOATIME},
655657
"nodev": {false, unix.MS_NODEV},
656658
"nodiratime": {false, unix.MS_NODIRATIME},

0 commit comments

Comments
 (0)