Skip to content

Commit 414039b

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 67bd2ab commit 414039b

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},
@@ -648,6 +649,7 @@ func parseMountOptions(options []string) (int, []int, string, int) {
648649
"dirsync": {false, unix.MS_DIRSYNC},
649650
"exec": {true, unix.MS_NOEXEC},
650651
"mand": {false, unix.MS_MANDLOCK},
652+
"noacl": {true, unix.MS_POSIXACL},
651653
"noatime": {false, unix.MS_NOATIME},
652654
"nodev": {false, unix.MS_NODEV},
653655
"nodiratime": {false, unix.MS_NODIRATIME},

0 commit comments

Comments
 (0)