[LinuxBIOS] PATCH: mkdirp() error on new directory outside given parent

Stefan Reinauer stepan at coresystems.de
Thu Jul 12 10:57:08 CEST 2007

* Peter Stuge <peter at stuge.se> [070712 09:50]:
> Have a look.
> I haven't gotten lar to build, but the function works in a separate
> test program.
> //Peter

> Make mkdirp() abort directory creation and return an error if a directory
> in dirpath is located outside the specified parent directory. Use the parent
> "/" to allow new directories anywhere.
Are you trying to avoid an exploit, or what is it needed for?

mkdirp should not be changed to take other parameters than this: 

coresystems GmbH • Brahmsstr. 16 • D-79104 Freiburg i. Br.
      Tel.: +49 761 7668825 • Fax: +49 761 7664613
Email: info at coresystems.dehttp://www.coresystems.de/

More information about the coreboot mailing list