-
Notifications
You must be signed in to change notification settings - Fork 247
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
Invalidating initgroups memory cache by a single name does not work #4728
Labels
Comments
alexey-tikhonov
added a commit
to alexey-tikhonov/sssd
that referenced
this issue
Jun 20, 2022
According to the https://sssd.io/contrib/mmap_cache.html#the-initgr-data one of keys should be a canonical name. Based on the proposal by Sumit Bose: SSSD#6128 (comment) Resolves: SSSD#4728
alexey-tikhonov
added a commit
to alexey-tikhonov/sssd
that referenced
this issue
Jun 21, 2022
According to the https://sssd.io/contrib/mmap_cache.html#the-initgr-data one of keys should be a canonical name. Based on the proposal by Sumit Bose: SSSD#6128 (comment) Resolves: SSSD#4728
alexey-tikhonov
added a commit
to alexey-tikhonov/sssd
that referenced
this issue
Jul 1, 2022
According to the https://sssd.io/contrib/mmap_cache.html#the-initgr-data one of keys should be a canonical name. Based on the proposal by Sumit Bose: SSSD#6128 (comment) Resolves: SSSD#4728
Pushed PR: #6128 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Cloned from Pagure issue: https://pagure.io/SSSD/sssd/issue/3718
I found this bug while working on tests for the nss_ex interface, but even with the help of the design page, I'm not sure what would the best fix be, so I'm filing a ticket.
When a user is being invalidated from the initgroups memory cache, the
sss_mmap_cache_invalidate
function is passed the input name (e.g.user
). Then the code goes tosss_mc_find_record
where the name is used to generate the hash and the slot and an entry is found. But then we go to:Which never matches, because the
t_key
is the unique name in case of the initgroup cache, so the comparison is always false..There is a crude fix in PR #558 but it's probable that someone else will be doing a proper fix, so filing an issue is safer.
Comments
Comment from pbrezina at 2020-03-13 15:07:59
Metadata Update from @pbrezina:
The text was updated successfully, but these errors were encountered: