Skip to content
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

More idmap fixes #382

Merged
merged 3 commits into from
Jan 11, 2024
Merged

More idmap fixes #382

merged 3 commits into from
Jan 11, 2024

Conversation

stgraber
Copy link
Member

No description provided.

This is needed to avoid a breaking change to the volatile keys in Incus
and potentially in other tools using the serialized JSON format.

Signed-off-by: Stéphane Graber <[email protected]>
This properly documents the working of AddSafe as well as fixes an issue
where a new entry that's of both UID and GID types could intersect with
more than one entry (if mixed with entries that aren't both UID and GID).

Simply keep track of whether the entry was already added and if it did,
process the intersection but don't add the entry again.

Signed-off-by: Stéphane Graber <[email protected]>
@tych0 tych0 merged commit 386cbe2 into lxc:main Jan 11, 2024
25 checks passed
@stgraber stgraber deleted the idmap branch March 20, 2024 10:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants