Bug 13175

Summary: license files on root file system might be unreadable by non-root users when using COPY_LIC_DIRS
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Joshua Watt <JPEWhacker>
Component: configurationAssignee: Joshua Watt <JPEWhacker>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium+    
Version: unspecified   
Target Milestone: 2.7 M3   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Joshua Watt 2019-02-13 16:12:20 UTC
In a similar vein to https://bugzilla.yoctoproject.org/show_bug.cgi?id=12961, the License files written by COPY_LIC_DIRS inherit the permissions from whatever the permissions happen to be in the recipe. If these permissions don't allow all other reads, the files are unreadable. Since we are already coercing the user, it seems reasonable to also coerce the permissions to be -rw-r--r-- when installing the files.
Comment 2 Joshua Watt 2019-02-20 22:09:10 UTC
Fix in oe-core: 8190d192fceb9b0969385507d3d4bca7be75c810