mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-11 06:03:57 +08:00
It's /proc/stat, not /proc/stats
Also adds /proc/net/dev to the valid mount destination white list Signed-off-by: Chun Chen <ramichen@tencent.com>
This commit is contained in:
@@ -308,7 +308,8 @@ func checkMountDestination(rootfs, dest string) error {
|
|||||||
"/proc/cpuinfo",
|
"/proc/cpuinfo",
|
||||||
"/proc/diskstats",
|
"/proc/diskstats",
|
||||||
"/proc/meminfo",
|
"/proc/meminfo",
|
||||||
"/proc/stats",
|
"/proc/stat",
|
||||||
|
"/proc/net/dev",
|
||||||
}
|
}
|
||||||
for _, valid := range validDestinations {
|
for _, valid := range validDestinations {
|
||||||
path, err := filepath.Rel(filepath.Join(rootfs, valid), dest)
|
path, err := filepath.Rel(filepath.Join(rootfs, valid), dest)
|
||||||
|
|||||||
Reference in New Issue
Block a user