commit | adeceff641c5f084897f229c18b957da96d6f451 | [log] [tgz] |
---|---|---|
author | Milton Miller <miltonm@us.ibm.com> | Thu Jun 16 16:58:21 2016 -0500 |
committer | Milton Miller <miltonm@us.ibm.com> | Sat Jun 25 18:55:26 2016 -0500 |
tree | 06683604e480c6cbbd3d9e606697bcec32943bfe | |
parent | 4e87861f60679062eb13289c9fe39c0721f52e71 [diff] |
initfs: update: Sanitize whitelist directory entries Repeatedly strip trailing "/" and "/." from whitelist entries and fail if an entry includes "/../", ends with "/..", or doesn't start with a "/". Also use the entries quoted to avoid any glob. It was noticed the save code was saving directories that ended in "/" into a subdirectory of the last component name. This was traced the the code creating the directory just stripping the last "/" and then copying to the directory. Choose to sanitize the entry where possible for ease of use verses a small performance penalty. Signed-off-by: Milton Miller <miltonm@us.ibm.com>
OpenBMC uses Yocto/Open-Embedded for a build system, which supports an out-of-tree build. It is recommended that you create an empty directory somewhere to hold the build. This directory will get big.
On Ubuntu 14.04 the following packages are required to build the default target
sudo apt-get install -y git build-essential libsdl1.2-dev texinfo gawk chrpath diffstat
On Fedora 23 the following packages are required to build the default target:
sudo dnf install -y git patch diffstat texinfo chrpath SDL-devel bitbake sudo dnf groupinstall "C Development Tools and Libraries"
To start a build:
cd <builddir> . <repodir>/openbmc-env bitbake obmc-phosphor-image