History log of /sssd-io/src/sss_client/nss_services.c
Revision Date Author Comments Expand
c096972ff25f14a390a621851f4935901b908be8 01-Dec-2017 Carlos O'Donell <carlos@systemhalted.org>

nss: Fix invalid enum nss_status return values. The upstream glibc test nss/bug17079 covers several cases where the NSS infrastructure passes invalid pointers to NSS plugins. The plugins should return correct results for the invalid values e.g. ERANGE, but it should do so by setting *errnop to the error and returning NSS_STATUS_TRYAGAIN. This commit fixes the group, netgroup, passwd and service handling code to correctly return ERANGE in *errnop and NSS_TATUS_TRYAGAIN in the case of invalid buffer (NULL) or zero sized buffer length. This fixes the nss/bug17079 regression test when run in a test configuration with sss enabled for any of the above mentioned services. Upstream glibc bug: Bug 22530 - FAIL: nss/bug17079 due to _nss_sss_getpwuid_r https://sourceware.org/bugzilla/show_bug.cgi?id=22530 Merges: https://pagure.io/SSSD/sssd/pull-request/3561 Signed-off-by: Carlos O'Donell <carlos@redhat.com> Reviewed-by: Florian Weimer <fweimer@redhat.com> Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

684405758a96bd9fb47480d44f2e1a2f038f8def 01-Jul-2014 Michal Zidek <mzidek@redhat.com>

Suppress safealign warnings with DISCARD_ALIGN. These warnings were all false positives. fixes: https://fedorahosted.org/sssd/ticket/1359 Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com>

8bf65dbab8703697c85b033beb5c189fce17b036 10-Dec-2013 Michal Zidek <mzidek@redhat.com>

Properly align buffer when storing pointers. Properly align buffer address to sizeof(char *) when storing pointers to strings. resolves: https://fedorahosted.org/sssd/ticket/1359

a171d77f40aa92e240e91aa4bafe5a392a98b5a2 03-Dec-2013 Michal Zidek <mzidek@redhat.com>

sss_client: Use SAFEALIGN_COPY_<type> macros where appropriate. resolves: https://fedorahosted.org/sssd/ticket/1359

b481712148b36362e09d7611be1f36be6b962ca0 29-May-2012 Jakub Hrozek <jhrozek@redhat.com>

Revert the client packet length, too, after reverting the packet protocol

8126906ab783494204dc853c814b0882d2a76523 25-May-2012 Stephen Gallagher <sgallagh@redhat.com>

NSS: Restore original protocol for getservbyport When fixing an endianness bug, we changed the protocol unnecessarily.

188f9e1e646b0bed530913ca76bbcdf0f342cc66 25-May-2012 Jakub Hrozek <jhrozek@redhat.com>

Send 16bit protocol numbers from the sss_client https://fedorahosted.org/sssd/ticket/1348

cff6bb5f8ee424b0e3aff74247e103e44075b16a 27-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

NSS: Add client support for [set|get|end]servent()

cc7ee57f3adada83ac657e69636ca995d5b6948e 27-Jan-2012 Stephen Gallagher <sgallagh@redhat.com>

NSS: Add client support for services (non-enumeration)