mirror of
https://github.com/opencontainers/runc.git
synced 2026-02-06 03:45:41 +01: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/diskstats",
|
||||
"/proc/meminfo",
|
||||
"/proc/stats",
|
||||
"/proc/stat",
|
||||
"/proc/net/dev",
|
||||
}
|
||||
for _, valid := range validDestinations {
|
||||
path, err := filepath.Rel(filepath.Join(rootfs, valid), dest)
|
||||
|
||||
Reference in New Issue
Block a user