tools: add fakeroot
authorThomas Petazzoni <thomas.petazzoni@bootlin.com>
Fri, 7 Aug 2020 21:12:59 +0000 (11:12 -1000)
committerFelix Fietkau <nbd@nbd.name>
Mon, 10 Aug 2020 08:09:55 +0000 (10:09 +0200)
commit9e7ef460652748395c897468af662df6ce2cb8d5
tree7f878035d51375abf0476b7c4caca5b68e1a861b
parente27fbae63c3436ce5588ca06b78ea88c7a316fee
tools: add fakeroot

SELinux support requires setting the appropriate SELinux security context
to files and directories, which needs to happen at build time in order
to support read-only root filesystem scenarios. In order to create these
security contexts, we will have to run some SELinux-specific tools on
the host machine, but that requires root access. This adds support for
fakeroot, which the build process will use to run the SELinux security
context creation and the image creation.

Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Apply to current master, and adjust commit message

Thomas' original work is available at
http://lists.infradead.org/pipermail/openwrt-devel/2019-November/025976.html.

Signed-off-by: W. Michael Petullo <mike@flyn.org>
[add rules.mk FAKEROOT variable]
Signed-off-by: Paul Spooren <mail@aparcar.org>
[update, fix macos build]
Signed-off-by: Felix Fietkau <nbd@nbd.name>
rules.mk
tools/Makefile
tools/fakeroot/Makefile [new file with mode: 0644]
tools/fakeroot/patches/100-portability.patch [new file with mode: 0644]