summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorAlexander Kanavin <alex@linutronix.de>2025-02-25 13:09:22 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2025-02-28 07:49:18 +0000
commitc92709d4c0d83903695517798db71493bacc25df (patch)
tree1e2a11c02902acc65885cb65b67114221a23a190 /meta
parent707be18cac45cb252b30115dce09123504c08c54 (diff)
downloadpoky-c92709d4c0d83903695517798db71493bacc25df.tar.gz
classes/insane: do not leak host uid/gid into package_qa sstate signatures
This prevented package_qa sstate from being reusable unless host uid/gid values would match exactly (and they unfortunately do on the yocto autobuilder worker machines which all share a 'pokybuild' user). I noticed this when testing CDN sstate reuse, which otherwise works well. (From OE-Core rev: 6ea8b4b10b0549c858427a8411bf2a4cd5c0eb7b) Signed-off-by: Alexander Kanavin <alex@linutronix.de> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes-global/insane.bbclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/meta/classes-global/insane.bbclass b/meta/classes-global/insane.bbclass
index 866cef6526..fc4ca84b35 100644
--- a/meta/classes-global/insane.bbclass
+++ b/meta/classes-global/insane.bbclass
@@ -1066,6 +1066,7 @@ def package_qa_check_host_user(path, name, d, elf):
1066 check_gid = int(d.getVar('HOST_USER_GID')) 1066 check_gid = int(d.getVar('HOST_USER_GID'))
1067 if stat.st_gid == check_gid: 1067 if stat.st_gid == check_gid:
1068 oe.qa.handle_error("host-user-contaminated", "%s: %s is owned by gid %d, which is the same as the user running bitbake. This may be due to host contamination" % (pn, package_qa_clean_path(path, d, name), check_gid), d) 1068 oe.qa.handle_error("host-user-contaminated", "%s: %s is owned by gid %d, which is the same as the user running bitbake. This may be due to host contamination" % (pn, package_qa_clean_path(path, d, name), check_gid), d)
1069package_qa_check_host_user[vardepsexclude] = "HOST_USER_UID HOST_USER_GID"
1069 1070
1070QARECIPETEST[unhandled-features-check] = "package_qa_check_unhandled_features_check" 1071QARECIPETEST[unhandled-features-check] = "package_qa_check_unhandled_features_check"
1071def package_qa_check_unhandled_features_check(pn, d): 1072def package_qa_check_unhandled_features_check(pn, d):