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> |
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 |
fd3714d0cf068f3c782c1fff32105fc51cc97a0e |
|
18-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Add sss_readrep_copy_string
There were many places in the client code where we were
duplicating a loop to copy data in from the response buffer. This
patch turns those loops into a function for easier maintenance and
easier-to-read *readrep() routines. |
22c7230dc0c8d41a189eb758be78991d183de1f7 |
|
14-Jan-2012 |
Stephen Gallagher <sgallagh@redhat.com> |
NSS: Validate input string lengths
Also fixes a return value bug where we were returning errno error
codes instead of nss_status codes.
Fixes https://fedorahosted.org/sssd/ticket/1135 |
c89589fa349f38214c9cb8d9389c0fd557e5dca2 |
|
22-Nov-2010 |
Simo Sorce <ssorce@redhat.com> |
sss_client: make code thread-safe
Add mutexes around nss operations and serialize them.
This is necessary because nss operations may have global state.
For pam it is sufficient to protect socket operations instead.
As pam functions use only the provided pam handler.
Fixes: https://fedorahosted.org/sssd/ticket/640 |
60dceaee2014822717a3f22e1b65b228e20cc5f0 |
|
13-Oct-2010 |
Sumit Bose <sbose@redhat.com> |
Avoid a global variable in netgroup client.
The structure which is used to store the result also provides elements to
store a context for the netgroup enumeration call. |
36fc83f3f64bb16db7bef3e1cebe829424edacd1 |
|
13-Oct-2010 |
Sumit Bose <sbose@redhat.com> |
Add handling of nested netgroups to nss client |
c640ae818270b1e8d57190516587d06c007d3938 |
|
13-Oct-2010 |
Sumit Bose <sbose@redhat.com> |
Return NSS_STATUS_RETURN instead of NSS_STATUS_NOTFOUND
NSS_STATUS_RETURN needs to be returned to glibc otherwise nested groups
are not resolved by glibc. |
f128b7b865062da662127712935dcc58bd022384 |
|
13-Oct-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Add support for netgroups to NSS sss_client |