Merge pull request #35442 from Microsoft/jjh/sysfirmware

Don't special case /sys/firmware in masked paths
This commit is contained in:
Yong Tang 2017-11-08 20:02:01 -08:00 committed by GitHub
commit d4239a6e28
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -120,6 +120,7 @@ func DefaultLinuxSpec() specs.Spec {
"/proc/timer_stats",
"/proc/sched_debug",
"/proc/scsi",
"/sys/firmware",
},
ReadonlyPaths: []string{
"/proc/asound",
@ -205,10 +206,5 @@ func DefaultLinuxSpec() specs.Spec {
s.Windows = &specs.Windows{}
}
// For LCOW support, don't mask /sys/firmware
if runtime.GOOS != "windows" {
s.Linux.MaskedPaths = append(s.Linux.MaskedPaths, "/sys/firmware")
}
return s
}