summaryrefslogtreecommitdiffstats
path: root/meta/files
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-11-21 14:39:47 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-03 23:02:08 +0000
commitcbd023e0db766ca30ab640274db3a7801ab19e04 (patch)
tree97174f3b015e517885907e85186893b5a1a4bca3 /meta/files
parent307146220b51f2c3d8c1fe517af711d14219488d (diff)
downloadpoky-cbd023e0db766ca30ab640274db3a7801ab19e04.tar.gz
fs-perms: Ensure /usr/src/debug/ file modes are correct
If files are copied into /usr/src/debug directly from WORKDIR (e.g. makedevs) we'd get the permissions from the checkout which would depend on the host umask. Avoid this and be deterministic by setting the file modes consistently. Core code copies the files in so we're responsible for the permissions. Unfortunately to force this change to apply we need to invalidate both the package tasks and the hash equivalance mappings since file mode 'corruption' already made it into the output hashes (both input options were mapped to the output hashes). (From OE-Core rev: 1f807da38b9d9aebdd86b3b5839305e03d9930e1) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> (cherry picked from commit 1f958bcd6c9cd12ec76d80586cba15f4d6ed17a7) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/files')
-rw-r--r--meta/files/fs-perms-persistent-log.txt2
-rw-r--r--meta/files/fs-perms.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/meta/files/fs-perms-persistent-log.txt b/meta/files/fs-perms-persistent-log.txt
index 3a7cf3ab94..518c1be3c9 100644
--- a/meta/files/fs-perms-persistent-log.txt
+++ b/meta/files/fs-perms-persistent-log.txt
@@ -41,7 +41,7 @@ ${includedir} 0755 root root true 0644 root root
41${oldincludedir} 0755 root root true 0644 root root 41${oldincludedir} 0755 root root true 0644 root root
42 42
43# Cleanup debug src 43# Cleanup debug src
44/usr/src/debug 0755 root root true - root root 44/usr/src/debug 0755 root root true 0644 root root
45 45
46# Items from base-files 46# Items from base-files
47# Links 47# Links
diff --git a/meta/files/fs-perms.txt b/meta/files/fs-perms.txt
index c8c3ac5dbe..daa4aed840 100644
--- a/meta/files/fs-perms.txt
+++ b/meta/files/fs-perms.txt
@@ -41,7 +41,7 @@ ${includedir} 0755 root root true 0644 root root
41${oldincludedir} 0755 root root true 0644 root root 41${oldincludedir} 0755 root root true 0644 root root
42 42
43# Cleanup debug src 43# Cleanup debug src
44/usr/src/debug 0755 root root true - root root 44/usr/src/debug 0755 root root true 0644 root root
45 45
46# Items from base-files 46# Items from base-files
47# Links 47# Links