Bug 1159

Summary: Need to change numeric user/groupids to names in device_table-minimal.txt
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Scott Garman <scott.a.garman>
Component: coreAssignee: Chen Qi <Qi.Chen>
Status: VERIFIED FIXED QA Contact:
Severity: enhancement    
Priority: Medium CC: jessica.zhang, kevin.tian, liezhi.yang, mark.hatle, meta.mr.watcher, meta.watcher, razvanx.ionescu, richard.purdie, sgw, yi.zhao
Version: unspecified   
Target Milestone: 1.5 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Scott Garman 2011-06-10 15:36:18 UTC
We really shouldn't use numeric group and user ids in meta/files/device_table-minimal.txt. Full usernames and groupnames should be used instead.

Associated code/classes which deal with this file need to be checked to ensure they also are not using hard-coded uid/gids.
Comment 1 Scott Garman 2012-03-21 17:30:24 UTC
Moving to 1.3 milestone since this kind of change needs more testing than we can provide before 1.2 is released.
Comment 2 Richard Purdie 2013-04-25 15:51:03 UTC
This still needs fixing, Saul to find someone who can work on it.
Comment 3 Chen Qi 2013-09-09 09:18:18 UTC
merged into poky/master:
771f794eed69a4e594fa2c9a4fc167f7bde623e3
033baea93df8f0d1fcd541b44ec58bb3710e2d57
36d622b4c6e2ff1e976b713c6841383f4188f851
Comment 4 Razvan Ionescu 2013-10-07 07:23:50 UTC
Verified with: poky/master: 771f794eed69a4e594fa2c9a4fc167f7bde623e3 .

Output:
cat meta/files/device_table-minimal.txt
#<path> <type> <mode>   <uid>   <gid>   <major> <minor> <start> <inc>   <count>
#/dev/mem    c      640      0       0       1       1       0        0        -
#
#type can be one of:
#    f  A regular file
#    d  Directory
#    c  Character special device file
#    b  Block special device file
#    p  Fifo (named pipe)

/dev            d       755     root    root    -       -       -       -       -
/dev/initctl    p       600     root    root    -       -       -       -       -
/dev/apm_bios   c       660     root    plugdev 10      134     -       -       -
/dev/fb0        c       600     root    root    29      0       -       -       -

...