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

launch/policy: fix misallocations and leaks with invalid uids/gids #373

Merged
merged 2 commits into from
Aug 2, 2024

Conversation

dvdhrm
Copy link
Member

@dvdhrm dvdhrm commented Aug 1, 2024

2 fixes related to policy imports with invalid uids/gids.

Initial report was in #360.

dvdhrm added 2 commits August 1, 2024 15:00
When records are imported, but never linked to any policy list, we
currently leak the records. Fix this and properly deallocate the records
in those cases.

Note that this only happens when invalid uids/gids are specified, which
is not common for production systems.

Reported-by: Evgeny Vereshchagin <[email protected]>
Reported-by: Frantisek Sumsal <[email protected]>
Signed-off-by: David Rheinsberg <[email protected]>
Invalid groups/users are reported as `-1` by the config parser, and
generally ignored by the policy import. Unfortunately, the own-policy
importer does not check for it when importing into groups. Fix this and
align it with `policy_import_send/recv`.

Signed-off-by: David Rheinsberg <[email protected]>
@dvdhrm dvdhrm merged commit 4fa73fd into bus1:main Aug 2, 2024
33 checks 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.

1 participant