summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorReinette Chatre <reinette.chatre@intel.com>2015-11-20 11:37:51 -0800
committerReinette Chatre <reinette.chatre@intel.com>2015-12-02 16:02:02 -0800
commit2aa356f6ec5c25ed9fb5f7d68b8b669d8be690b1 (patch)
treeec728af0ccf2b0f9aa64c721eaf5280fc74458f7
parentde26cedfa139acbe0d391bed3cb36a079a5b9855 (diff)
downloadmeta-systemdev-2aa356f6ec5c25ed9fb5f7d68b8b669d8be690b1.tar.gz
meta-systemdev-2aa356f6ec5c25ed9fb5f7d68b8b669d8be690b1.tar.bz2
meta-systemdev-2aa356f6ec5c25ed9fb5f7d68b8b669d8be690b1.zip
iotools: fixup permissions related to host-user-contaminated warning
During build we see following QA warning: WARNING: QA Issue: iotools: /iotools/usr/sbin/iotools is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated] This is because the Makefile installs files with "cp -a" which preserves ownership of user running bitbake. We fixup the permissions after installation from Makefile. Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Acked-by: Darren Hart <dvhart@linux.intel.com>
-rw-r--r--recipes-devtools/iotools/iotools_1.5.bb4
1 files changed, 4 insertions, 0 deletions
diff --git a/recipes-devtools/iotools/iotools_1.5.bb b/recipes-devtools/iotools/iotools_1.5.bb
index 187dc94..ba6701e 100644
--- a/recipes-devtools/iotools/iotools_1.5.bb
+++ b/recipes-devtools/iotools/iotools_1.5.bb
@@ -14,4 +14,8 @@ CFLAGS += ' -static -D_GNU_SOURCE -DVER_MAJOR=1 -DVER_MINOR=5'
do_install () {
install -d ${D}${sbindir}
oe_runmake SBINDIR=${D}${sbindir} install
+ #The Makefile installs files with "cp -a" which preserves ownership
+ #of user running bitbake resulting in QA Issue "host-user-contaminated"
+ #Fixup permissions
+ chown -R root:root ${D}${sbindir}
}