[oe-commits] [openembedded-core] 05/13: HACK: Intercept broken permissions in build

git at git.openembedded.org git at git.openembedded.org
Wed Feb 5 13:48:26 UTC 2020


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository openembedded-core.

commit 6f7f9d7d320ad5be6e94476d5b3859183d2093f6
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Tue Feb 4 18:09:56 2020 +0000

    HACK: Intercept broken permissions in build
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 meta/classes/insane.bbclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/meta/classes/insane.bbclass b/meta/classes/insane.bbclass
index 795c7b9..bd5b7c3 100644
--- a/meta/classes/insane.bbclass
+++ b/meta/classes/insane.bbclass
@@ -908,6 +908,8 @@ def package_qa_check_host_user(path, name, d, elf, messages):
     if path == home or path.startswith(home + os.sep):
         return
 
+    import stat as stat2
+
     try:
         stat = os.lstat(path)
     except OSError as exc:
@@ -924,6 +926,9 @@ def package_qa_check_host_user(path, name, d, elf, messages):
         if stat.st_gid == check_gid:
             package_qa_add_message(messages, "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))
             return False
+        if "/usr/src/debug/tcp-wrappers" in path and "weak_symbols" not in path:
+            if stat2.S_IMODE(stat.st_mode) & stat2.S_IWUSR:
+                bb.error("Fatal perms for %s %s" % (path, stat2.S_IMODE(stat.st_mode)))
     return True
 
 QARECIPETEST[src-uri-bad] = "package_qa_check_src_uri"

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list