[SSSD] [PATCHES] Fixes for sysdb_domain_init_internal()

Stephen Gallagher sgallagh at redhat.com
Wed Apr 13 20:19:36 UTC 2011


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Patch 0001: Don't leak memory if sysdb_domain_init() fails
This patch ensures we clean up the memory for the sysdb_ctx if we exit
on failure.

Patch 0002: Run all appropriate upgrades
Previously, if we were upgrading from version 0.4 or older, we
would only run sysdb_upgrade_04() and exit, instead of also
running sysdb_upgrade_05().

Patch 0003: Reopen the LDB after modifying it
If we change any of the special entries such as indexes or plugins,
we need to close and reopen the LDB to ensure that they take effect.


Note: Patch 0003 was still safe in the SSSD daemon right now, as we
always pre-create the sysdb caches in the monitor and close it before
the backends start, but it was causing some trouble with the tests if we
were only running a subset that required memberOf.

- -- 
Stephen Gallagher
RHCE 804006346421761

Delivering value year after year.
Red Hat ranks #1 in value among software vendors.
http://www.redhat.com/promo/vendor/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iEYEARECAAYFAk2mBVcACgkQeiVVYja6o6NtsQCgkTHJoJIexCFxl/1AwGw4R3uI
wTQAmgOffeltYDkff4b1roqiJOBu91cr
=kbIH
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-leak-memory-if-sysdb_domain_init-fails.patch
Type: text/x-patch
Size: 1184 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110413/55db0e72/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Run-all-appropriate-upgrades.patch
Type: text/x-patch
Size: 1650 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110413/55db0e72/attachment-0001.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Reopen-the-LDB-after-modifying-it.patch
Type: text/x-patch
Size: 1925 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110413/55db0e72/attachment-0002.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-Don-t-leak-memory-if-sysdb_domain_init-fails.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110413/55db0e72/attachment.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0002-Run-all-appropriate-upgrades.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110413/55db0e72/attachment-0001.sig>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0003-Reopen-the-LDB-after-modifying-it.patch.sig
Type: application/pgp-signature
Size: 72 bytes
Desc: not available
URL: <https://lists.fedorahosted.org/pipermail/sssd-devel/attachments/20110413/55db0e72/attachment-0002.sig>


More information about the sssd-devel mailing list