Explorar el Código

oci/defaults_linux.go: mask /sys/firmware

On typical x86_64 machines, /sys/firmware can contain SMBIOS and ACPI tables.
There is no need to expose the directory to containers.

Signed-off-by: Akihiro Suda <suda.akihiro@lab.ntt.co.jp>
Akihiro Suda hace 8 años
padre
commit
8b1772c86b
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1 0
      oci/defaults_linux.go

+ 1 - 0
oci/defaults_linux.go

@@ -83,6 +83,7 @@ func DefaultSpec() specs.Spec {
 			"/proc/timer_list",
 			"/proc/timer_list",
 			"/proc/timer_stats",
 			"/proc/timer_stats",
 			"/proc/sched_debug",
 			"/proc/sched_debug",
+			"/sys/firmware",
 		},
 		},
 		ReadonlyPaths: []string{
 		ReadonlyPaths: []string{
 			"/proc/asound",
 			"/proc/asound",