[elbe-devel] [PATCH 0/1] Fix filesystem::mkdir

dion at linutronix.de dion at linutronix.de
Tue Jul 23 17:03:28 CEST 2019


From: Olivier Dion <dion at linutronix.de>

If one of the component of the path is a symlink, the 'os.makedirs'
call fails.  Also, it leaks informations from the host to the target.

Using 'self.realpath' before calling 'os.makedirs' will ensure that:

  - Path has no symbolic link in its part
  - Path does not leak to another filesystem

Olivier Dion (1):
  Fix Filesystem mkdir method

 elbepack/filesystem.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.11.0




More information about the elbe-devel mailing list