[oe] [PATCH 4/8] dracut: fix host-user-contaminated
Robert Yang
liezhi.yang at windriver.com
Fri Nov 20 09:32:43 UTC 2015
Issue: LIN8-1629
Fixed:
dracut-043+giteab03540cd695d940062af5b55c02e8829aaa526: dracut: /dracut/usr/lib/dracut/modules.d/99img-lib/img-lib.sh is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
lib32-dracut-043+giteab03540cd695d940062af5b55c02e8829aaa526: lib32-dracut: /lib32-dracut/usr/lib/dracut/modules.d/99img-lib/img-lib.sh is owned by uid 15220, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
Its Makefile uses cp -arx to install modules.d, so fix the owner
to root:root
(LOCAL REV: NOT UPSTREAM) -- Sent to oe-devel on 20151120
Signed-off-by: Robert Yang <liezhi.yang at windriver.com>
---
.../recipes-devtools/dracut/dracut_git.bb | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
index 91a8321..e026da7 100644
--- a/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
+++ b/meta-initramfs/recipes-devtools/dracut/dracut_git.bb
@@ -36,6 +36,9 @@ do_configure() {
do_install() {
oe_runmake install DESTDIR=${D}
+ # Its Makefile uses cp -arx to install modules.d, so fix the owner
+ # to root:root
+ chown -R root:root ${D}/${prefix}/lib/dracut/modules.d
}
PACKAGES =+ "${PN}-bash-completion"
--
1.7.9.5
More information about the Openembedded-devel
mailing list