Skip to contentSkip to conversation

Regarding overiding of file permissions using fs-perms.txt in distro layer. #bitbake

DISCUSSION yogish sanjeeva 1 participant 1 message Jul 3, 2023

lore
Share & tools
lore
#0 lore raw

Dear Team,

We have modified base-passwd recipe and we have added couple of new UID/GID for eg., shell.
Our fs-perms.txt is similar to https://github.com/openembedded/openembedded-core/blob/master/meta/files/fs-perms.txt, with extra entries as below

${base_bindir}         0751    root    shell   true    0655    root    shell ${base_sbindir}       0751    root    shell   true    0655    root    shell ${base_libdir}          0751    root    system  true    0644    root    system ${prefix}                  0751    root    system  true    0644    root    system ${bindir}                  0751    root    system  true    0655    root    system

We had tried overlaying fs-perms.txt using FILESYSTEM_PERMS_TABLES(meta/ files/fs-perms.txt) macro,But we have encountered below error as it was not referring the target file /etc/passwd.

File: '/oe-core/meta/classes/ package.bbclass', lineno: 953, function: _procgid

0949:                return -1
0950:            elif gid.isdigit():
0951:                return int(gid)
0952:            else:
*** 0953:                return grp.getgrnam(gid).gr_gid0954: 0955:
# Use for debugging the entries0956:
def str(self):0957:
if self.link:Exception:
*KeyError: "getgrnam(): name not found: 'shell'"* *Question:

* Why packagegroup recipes are not able to find the *shell* user, even though we added base-passwd as depends in those modules?