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

NSS: Use netgr as memory context in set_netgr_lifetime() - Patch for SSSD-1.13 #445

Conversation

fidencio
Copy link
Contributor

@fidencio fidencio commented Nov 8, 2017

We've noticed some crashes that happened because netgr is already freed,
but the timeout handler is still called. In order to avoid that, let's
remove the timeout handler when enum_ctx is freed at other places.

Resolves: https://pagure.io/SSSD/sssd/issue/3523

Signed-off-by: Fabiano Fidêncio fidencio@redhat.com
(cherry picked from commit 67f739d)

@pbrezina
Copy link
Member

Ack. Just the commit message still talkes about enum_ctx which is not present on 1.13.

We've noticed some crashes that happened because gctx is already freed,
but the timeout handler is still called. In order to avoid that, let's
remove the timeout handler when netgr is freed at other places.

Resolves: https://pagure.io/SSSD/sssd/issue/3523

Signed-off-by: Fabiano Fidêncio <fidencio@redhat.com>
(cherry picked from commit 67f739d)
@fidencio fidencio force-pushed the wip/nss_setnetgrent_timeout_1_13_patch branch from 8af7eb1 to 977486f Compare November 13, 2017 12:39
@fidencio
Copy link
Contributor Author

@pbrezina, thanks for the review. I've changed the commit message.

@fidencio
Copy link
Contributor Author

Adding "Accepted" label per @pbrezina's review.

@lslebodn lslebodn removed the Accepted label Nov 13, 2017
@lslebodn
Copy link
Contributor

Patch will be the same as in sssd-1-14 branch therefore closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants