History log of /sssd-io/src/responder/nss/nsssrv_mmap_cache.h
Revision Date Author Comments Expand
dda0258705de7255e6ec54b7f9adbde83a220996 05-Aug-2015 Lukas Slebodnik <lslebodn@redhat.com>

NSS: Initgr memory cache should work with fq names We need to stored two versions of name to the initgroups memory cache. Otherwise it could be stored many times if sssd is configured with case_sensitive = false. It would be impossible to invalidate all version of names after user login. As a result of this wrong user groups could be returned from initgroups memory cache. Therefore we store raw name provided by glibc function and internal sanitized fully qualified name, which is unique for particular user. This patch also increase average space for initgroups because there are also stored two quite long names in case of fq names. Resolves: https://fedorahosted.org/sssd/ticket/2712 Reviewed-by: Michal Židek <mzidek@redhat.com>

39b31427e2d11ca318df11fd48db33a7cc610aa7 05-Aug-2015 Lukas Slebodnik <lslebodn@redhat.com>

mmap_cache: Rename variables Reviewed-by: Michal Židek <mzidek@redhat.com>

ebf6735dd4f71bf3dc9105e5d04d11e744c64a59 03-Jul-2015 Lukas Slebodnik <lslebodn@redhat.com>

nss: Store entries in responder to initgr mmap cache Resolves: https://fedorahosted.org/sssd/ticket/2485 Reviewed-by: Michal Židek <mzidek@redhat.com>

9028706a00da1bc48547e74aa872c825ac15adb2 11-Aug-2013 Michal Zidek <mzidek@redhat.com>

mmap_cache: Check if slot and name_ptr are not invalid. This patch prevents jumping outside of allocated memory in case of corrupted slot or name_ptr values. It is not proper solution, just hotfix until we find out what is the root cause of ticket https://fedorahosted.org/sssd/ticket/2018

0e6c9d03cacf24de4265ee0f902c216ba5a131c9 20-Dec-2012 Simo Sorce <simo@redhat.com>

mmap cache: invalidate cache on fatal error If a fatal EFAULT error is returned by the internal function that frees used memory invalidate the whole cache and reinit it. This way we avoid further corruption and insure clients see consistent data. Also insure we use the right context in init() and we use talloc_zfree() in reinit so that if the init() later fails we do not leave around a pointer to free memory in the callers.

8088274b2389b76f4be581736e55f26a8322fad1 05-Dec-2012 Simo Sorce <simo@redhat.com>

mmap cache: public functions to invalidate records These functions can be called from the nss responder to invalidate records that have ceased to exist or that need to be refreshed the first time an application needs them.

99c99e557020775714f028b28a147edda290c783 24-Sep-2012 Michal Zidek <mzidek@redhat.com>

sss_cache tool invalidates records in memory cache.

e9f08ebaba5ec61af74c112f50c7d66257998c97 10-Jun-2012 Jan Zeleny <jzeleny@redhat.com>

Allow fast memcache timeout to be configurable https://fedorahosted.org/sssd/ticket/1318

c3ef027218fe9a7d16a70ca9d2f53e3d995e369f 19-Mar-2012 Simo Sorce <simo@redhat.com>

nsssrv: add handling of memory cache group map

6cb1a6e7c7517ab4ccb8ad37ade86f95b5c16a01 19-Mar-2012 Simo Sorce <simo@redhat.com>

nsssrv: add handling of memory cache passwd map

eb2e21b764d03544d8161e9956d7f70b07b75f77 19-Mar-2012 Simo Sorce <simo@redhat.com>

nsssrv: shared memory cache server initialization