Skip to content

Commit

Permalink
It's /proc/stat, not /proc/stats
Browse files Browse the repository at this point in the history
Also adds /proc/net/dev to the valid mount destination white list

Signed-off-by: Chun Chen <ramichen@tencent.com>
  • Loading branch information
chenchun committed Feb 16, 2016
1 parent 361f9b7 commit 2ee9cbb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libcontainer/rootfs_linux.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 2ee9cbb

Please sign in to comment.