Skip to content

Commit

Permalink
Merge pull request #34732 from vizv/fix-relabel-config-files
Browse files Browse the repository at this point in the history
daemon: relabel config files.
  • Loading branch information
yongtang committed Sep 19, 2017
2 parents 3fa72d3 + 472c03a commit 1bb55e6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions daemon/container_operations_unix.go
Expand Up @@ -307,6 +307,8 @@ func (daemon *Daemon) setupConfigDir(c *container.Container) (setupErr error) {
if err := os.Chown(fPath, rootIDs.UID+uid, rootIDs.GID+gid); err != nil {
return errors.Wrap(err, "error setting ownership for config")
}

label.Relabel(fPath, c.MountLabel, false)
}

return nil
Expand Down

0 comments on commit 1bb55e6

Please sign in to comment.