Lines Matching refs:cache
13 * determine the security context within which we access the cache from within
16 int cachefiles_get_security_ID(struct cachefiles_cache *cache)
21 _enter("{%s}", cache->secctx);
29 if (cache->secctx) {
30 ret = set_security_override_from_ctx(new, cache->secctx);
39 cache->cache_cred = new;
49 static int cachefiles_check_cache_dir(struct cachefiles_cache *cache,
70 * check the security details of the on-disk cache
75 int cachefiles_determine_cache_security(struct cachefiles_cache *cache,
84 /* duplicate the cache creds for COW (the override is currently in
90 cachefiles_end_secure(cache, *_saved_cred);
92 /* use the cache root dir's security context as the basis with
97 cachefiles_begin_secure(cache, _saved_cred);
102 put_cred(cache->cache_cred);
103 cache->cache_cred = new;
105 cachefiles_begin_secure(cache, _saved_cred);
106 ret = cachefiles_check_cache_dir(cache, root);