Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/go_modules/github.com/Microsoft/h…
Browse files Browse the repository at this point in the history
…csshim-0.9.7
  • Loading branch information
rhatdan authored Feb 23, 2023
2 parents f6c5bd6 + 01edf7e commit eb56a36
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions drivers/overlay/overlay.go
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,7 @@ var (
)

const (
defaultPerms = os.FileMode(0555)
selinuxLabelTest = "system_u:object_r:container_file_t:s0"
defaultPerms = os.FileMode(0555)
)

// This backend uses the overlay union filesystem for containers
Expand Down Expand Up @@ -657,6 +656,8 @@ func SupportsNativeOverlay(home, runhome string) (bool, error) {
func supportsOverlay(home string, homeMagic graphdriver.FsMagic, rootUID, rootGID int) (supportsDType bool, err error) {
// We can try to modprobe overlay first

selinuxLabelTest := selinux.PrivContainerMountLabel()

exec.Command("modprobe", "overlay").Run()

logLevel := logrus.ErrorLevel
Expand Down

0 comments on commit eb56a36

Please sign in to comment.