1
0
mirror of https://github.com/containers/bootc.git synced 2026-02-06 18:46:25 +01:00
Commit Graph

6 Commits

Author SHA1 Message Date
Colin Walters
2b32297540 sysusers: Parse a leading - in user
This is used in the wild by `vboxadd` from `virtualbox-guest-additions`.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-22 08:54:35 -05:00
Colin Walters
552da45c6d sysusers: Handle named group references
The libvirt package has this entry with a numeric user but
an explicit named group reference:

`u qemu 107:qemu "qemu user" - -`

Fix the parser to handle this.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-22 08:35:22 -05:00
Colin Walters
aa635b3a64 sysusers: Make loading /etc/passwd optional
On general principle; this fixes a test failure in the lint unit
tests which don't create /etc/passwd.

But also, someone might reasonably create an image this way.

Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-14 10:49:23 -05:00
Colin Walters
569d52a762 sysusers: Add analysis support
Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-14 10:49:23 -05:00
Colin Walters
7bb408dc95 sysusers: Import nameservice code from rpm-ostree
This imports the code from
https://github.com/coreos/rpm-ostree/tree/main/rust/src/nameservice
as of commit
e1d43ae9e8

Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-14 10:49:23 -05:00
Colin Walters
120db64abc sysusers: New stub crate
Signed-off-by: Colin Walters <walters@verbum.org>
2025-02-14 10:49:23 -05:00