Skip to content

Conversation

@taukakao
Copy link
Contributor

The current implementation has a huge oversight. If the uids in the image change, which they regularly do, they also change on the installed system.

This is a very big problem since it means that system services will not have access to the right folders in that case.
More information about this can be found here: Vanilla-OS/ABRoot#419

This PR is a complete rework of EtcBuilder which has logic that dynamically adds new users and groups from the image/lower dir. It also changes the owner and group of the lower files to adjust them to the specific system they're on.

A rework was needed since it would have been very messy to implement this with the old structure. The API does stay the same, except for the settings file for "special Files", which doesn't exist anymore.

This was needed to handle special files such as /etc/passwd correctly.
@taukakao taukakao marked this pull request as ready for review November 16, 2025 00:17
@mirkobrombin mirkobrombin merged commit 7bc972f into linux-immutability-tools:main Nov 16, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants