Skip to content

Commit

Permalink
libcontainer/specconv/spec_linux: Add support for (no)acl
Browse files Browse the repository at this point in the history
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 <wking@tremily.us>
  • Loading branch information
wking committed May 26, 2017
1 parent 1b05c2b commit cdfb37e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libcontainer/specconv/spec_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -639,6 +639,7 @@ func parseMountOptions(options []string) (int, []int, string, int) {
clear bool
flag int
}{
"acl": {false, unix.MS_POSIXACL},
"async": {true, unix.MS_SYNCHRONOUS},
"atime": {true, unix.MS_NOATIME},
"bind": {false, unix.MS_BIND},
Expand All @@ -651,6 +652,7 @@ func parseMountOptions(options []string) (int, []int, string, int) {
"lazytime": {false, unix.MS_LAZYTIME},
"loud": {true, unix.MS_SILENT},
"mand": {false, unix.MS_MANDLOCK},
"noacl": {true, unix.MS_POSIXACL},
"noatime": {false, unix.MS_NOATIME},
"nodev": {false, unix.MS_NODEV},
"nodiratime": {false, unix.MS_NODIRATIME},
Expand Down

0 comments on commit cdfb37e

Please sign in to comment.