| Summary: | insane.bbclass: host-user-contaminated QA doesn't skip the home directory | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Build System, Metadata & Runtime] OE-Core | Reporter: | Ahmed Hossam <Ahmed.Hossam> | ||||
| Component: | oe-core other | Assignee: | Ahmed Hossam <Ahmed.Hossam> | ||||
| Status: | CLOSED FIXED | QA Contact: | |||||
| Severity: | normal | ||||||
| Priority: | Medium+ | CC: | abongwabonalais, randy.macleod, ross.burton | ||||
| Version: | 3.4 | ||||||
| Target Milestone: | 4.1 M3 | ||||||
| Hardware: | x86 | ||||||
| OS: | Multiple | ||||||
| Whiteboard: | NEWCOMER | ||||||
| OS type for building Yocto: | --- | Type of Regression: | --- | ||||
| Verified: | Documentation change: | No (bug/feature does not impact docs) | |||||
| Attachments: |
|
||||||
|
Description
Ahmed Hossam
2021-09-17 05:26:04 UTC
Hello Ahmed, I wish to ask how to reproduce this error. I'm asking because I would like to work on it Abongwa, thats great! Ahmen, could you help out by providing detailed steps to reproduce? Created attachment 4858 [details]
Layer with a recipe that demonstrates the issue
I attached a layer that reproduces the bug, to reproduce extract the layer and run the following commands:
git clone git://git.yoctoproject.org/poky
source poky/oe-init-build-env
bitbake-layers add-layer ../meta-bugtest
bitbake example
You should see the following warning
WARNING: example-0.1-r0 do_package_qa: QA Issue: example: /home/testuser/dummy.sh is owned by uid 1000, which is the same as the user running bitbake. This may be due to host contamination [host-user-contaminated]
Note: to reproduce this bug you need to run bitbake with a user id 1000, this is the default on most installations, you can check it by running "id -u"
Thanks Ahmed. Abongwa, I've assigned the bug to you. Let me know if you need help. Patch submitted: https://lists.openembedded.org/g/openembedded-core/message/167243 Fixed on OE-core master https://git.openembedded.org/openembedded-core/commit/?id=ae8f22d9e2694eea5ede3b31c6f3bca404ea4a5a Fix taken into Poky master https://git.yoctoproject.org/poky/commit/?id=24e6bbb90f5b8a4ba1e867b2652cd4a39ffd259d It was also back ported to other branches. Closing bug. |