Lines Matching refs:cache
20 int cachefiles_get_security_ID(struct cachefiles_cache *cache) in cachefiles_get_security_ID() argument
25 _enter("{%s}", cache->secctx); in cachefiles_get_security_ID()
33 if (cache->secctx) { in cachefiles_get_security_ID()
34 ret = set_security_override_from_ctx(new, cache->secctx); in cachefiles_get_security_ID()
43 cache->cache_cred = new; in cachefiles_get_security_ID()
53 static int cachefiles_check_cache_dir(struct cachefiles_cache *cache, in cachefiles_check_cache_dir() argument
79 int cachefiles_determine_cache_security(struct cachefiles_cache *cache, in cachefiles_determine_cache_security() argument
94 cachefiles_end_secure(cache, *_saved_cred); in cachefiles_determine_cache_security()
101 cachefiles_begin_secure(cache, _saved_cred); in cachefiles_determine_cache_security()
106 put_cred(cache->cache_cred); in cachefiles_determine_cache_security()
107 cache->cache_cred = new; in cachefiles_determine_cache_security()
109 cachefiles_begin_secure(cache, _saved_cred); in cachefiles_determine_cache_security()
110 ret = cachefiles_check_cache_dir(cache, root); in cachefiles_determine_cache_security()