-
Notifications
You must be signed in to change notification settings - Fork 198
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] composepost: write sysusers.d fragment with base UIDs/GIDs #3712
Conversation
7e61a4b
to
551bdc6
Compare
Have you considered directly including those sysusers file into the setup RPM? |
Agree, I'm not excited by carrying a copy of that stuff in rpm-ostree. Among other things, it is surely distribution specific and would potentially be problematic for usage of rpm-ostree in e.g. openSUSE or whatever.
Can't we do that as a postprocessing operation, using what already exists in |
Another suggestion:
That might be much harder however. |
Yes, that's likely where it will end up longer-term, see discussion at systemd/systemd#23509. But the focus of this is not to generate |
To my understanding, in the general case rpm-ostree cannot. The As a counter-example for |
OK, yeah I see your point; we've lost the information about whether the allocation is static or dynamic. But you also touched on another point - in unified core mode, we can intercept calls to (Although of course, it's not only unified core versus not, but we simply cannot intercept |
Another bit for the puzzle: this |
Thanks for the feedback, while it won't solve all our problems I think this may be the most interesting direction to explore right now. |
Work in progress: this still needs some polish, plus we are waiting for https://pagure.io/setup/pull-requests?status=Open&author=lucab.
This imports the table of all known static UIDs/GIDs from the
setup
packageand adds parsing logic for that.
The immediate usage is to synthesize the content of
/etc/passwd
and/etc/group
skeletons as equivalent sysusers.d configuration.
Later on, this same table may be used to distinguish between static and dynamic
IDs when importing arbitrary packages with system users/groups.