summaryrefslogtreecommitdiffstats
path: root/src/responder/nss/nsssrv_mmap_cache.h
Commit message (Collapse)AuthorAgeFilesLines
* NSS: Initgr memory cache should work with fq namesLukas Slebodnik2015-08-051-0/+1
| | | | | | | | | | | | | | | | | | | | | 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>
* mmap_cache: Rename variablesLukas Slebodnik2015-08-051-2/+2
| | | | Reviewed-by: Michal Židek <mzidek@redhat.com>
* nss: Store entries in responder to initgr mmap cacheLukas Slebodnik2015-07-031-0/+9
| | | | | | | Resolves: https://fedorahosted.org/sssd/ticket/2485 Reviewed-by: Michal Židek <mzidek@redhat.com>
* mmap_cache: Check if slot and name_ptr are not invalid.Michal Zidek2013-08-111-0/+2
| | | | | | | 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
* mmap cache: invalidate cache on fatal errorSimo Sorce2012-12-201-2/+2
| | | | | | | | | | 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.
* mmap cache: public functions to invalidate recordsSimo Sorce2012-12-051-0/+10
| | | | | | 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.
* sss_cache tool invalidates records in memory cache.Michal Zidek2012-09-241-0/+5
|
* Allow fast memcache timeout to be configurableJan Zeleny2012-06-101-1/+1
| | | | https://fedorahosted.org/sssd/ticket/1318
* nsssrv: add handling of memory cache group mapSimo Sorce2012-03-191-0/+6
|
* nsssrv: add handling of memory cache passwd mapSimo Sorce2012-03-191-0/+8
|
* nsssrv: shared memory cache server initializationSimo Sorce2012-03-191-0/+37