Skip to content
This repository has been archived by the owner on Sep 24, 2020. It is now read-only.

Commit

Permalink
Merge pull request #19 from mjg59/selinux-fix-overlayfs
Browse files Browse the repository at this point in the history
overlayfs: Don't attempt to relabel the merged directory
  • Loading branch information
Matthew Garrett committed Jun 13, 2016
2 parents 7e81653 + b1c07e3 commit 1f8f545
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions daemon/graphdriver/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -370,9 +370,6 @@ func (d *Driver) Get(id string, mountLabel string) (string, error) {
if err = label.Relabel(workDir, mountLabel, false); err != nil {
return "", fmt.Errorf("Error relabeling work directory: %v", err)
}
if err = label.Relabel(mergedDir, mountLabel, false); err != nil {
return "", fmt.Errorf("Error relabeling merged directory: %v", err)
}

opts := fmt.Sprintf("lowerdir=%s,upperdir=%s,workdir=%s", lowerDir, upperDir, workDir)
if err := syscall.Mount("overlay", mergedDir, "overlay", 0, label.FormatMountLabel(opts, mountLabel)); err != nil {
Expand Down

0 comments on commit 1f8f545

Please sign in to comment.