1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00
moby--moby/volume
Brian Goff 5bbf5cc671 Set selinux label on local volumes from mounts API
When using a volume via the `Binds` API, a shared selinux label is
automatically set.
The `Mounts` API is not setting this, which makes volumes specified via
the mounts API useless when selinux is enabled.

This fix adopts the same selinux label for volumes on the mounts API as on
binds.
Note in the case of both the `Binds` API and the `Mounts` API, the
selinux label is only applied when the volume driver is the `local`
driver.

Signed-off-by: Brian Goff <cpuguy83@gmail.com>
2017-09-19 10:46:38 -04:00
..
drivers Add deadcode linter 2017-08-21 18:18:50 -04:00
local Set selinux label on local volumes from mounts API 2017-09-19 10:46:38 -04:00
store Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
testutils Spelling fixes 2017-07-03 13:13:09 -07:00
lcow_parser.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
linux_parser.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
parser.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate_test.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
validate_unix_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
validate_windows_test.go Add deadcode linter 2017-08-21 18:18:50 -04:00
volume.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_copy.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_test.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_unix.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
volume_windows.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00
windows_parser.go Volume refactoring for LCOW 2017-09-14 12:33:31 -07:00