mirage/mirage-fs-unix — pull request #3 by hannesm (2014-07-15 14:30:00+00:00)
Title: prevent directory traversals below _base_ (fixes #2):

- unify read and size into Fs_common
- introduce check_filename which uses realpath to ensure that requested name is below base
- guard all file system accesses with check_filename