* Regarding overiding of file permissions using fs-perms.txt in distro layer. #bitbake
@ 2023-07-03 11:17 yogish sanjeeva
0 siblings, 0 replies; only message in thread
From: yogish sanjeeva @ 2023-07-03 11:17 UTC (permalink / raw)
To: openembedded-core
[-- Attachment #1: Type: text/plain, Size: 1535 bytes --]
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?
[-- Attachment #2: Type: text/html, Size: 5958 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-07-03 11:17 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-07-03 11:17 Regarding overiding of file permissions using fs-perms.txt in distro layer. #bitbake yogish sanjeeva
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.