Home
last modified time | relevance | path

Searched refs:saved_cred (Results 1 – 17 of 17) sorted by relevance

/Linux-v6.6/fs/cachefiles/
Dinterface.c176 const struct cred *saved_cred; in cachefiles_lookup_cookie() local
190 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_lookup_cookie()
203 cachefiles_end_secure(cache, saved_cred); in cachefiles_lookup_cookie()
208 cachefiles_end_secure(cache, saved_cred); in cachefiles_lookup_cookie()
279 const struct cred *saved_cred; in cachefiles_resize_cookie() local
286 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_resize_cookie()
288 cachefiles_end_secure(cache, saved_cred); in cachefiles_resize_cookie()
353 const struct cred *saved_cred; in cachefiles_withdraw_cookie() local
368 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_withdraw_cookie()
370 cachefiles_end_secure(cache, saved_cred); in cachefiles_withdraw_cookie()
Dcache.c22 const struct cred *saved_cred; in cachefiles_add_cache() local
36 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_add_cache()
77 ret = cachefiles_determine_cache_security(cache, root, &saved_cred); in cachefiles_add_cache()
156 cachefiles_end_secure(cache, saved_cred); in cachefiles_add_cache()
170 cachefiles_end_secure(cache, saved_cred); in cachefiles_add_cache()
343 const struct cred *saved_cred; in cachefiles_sync_cache() local
350 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_sync_cache()
354 cachefiles_end_secure(cache, saved_cred); in cachefiles_sync_cache()
Dvolume.c21 const struct cred *saved_cred; in cachefiles_acquire_volume() local
37 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_acquire_volume()
78 cachefiles_end_secure(cache, saved_cred); in cachefiles_acquire_volume()
102 cachefiles_end_secure(cache, saved_cred); in cachefiles_acquire_volume()
Ddaemon.c622 const struct cred *saved_cred; in cachefiles_daemon_cull() local
645 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_daemon_cull()
647 cachefiles_end_secure(cache, saved_cred); in cachefiles_daemon_cull()
693 const struct cred *saved_cred; in cachefiles_daemon_inuse() local
716 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_daemon_inuse()
718 cachefiles_end_secure(cache, saved_cred); in cachefiles_daemon_inuse()
Dio.c387 const struct cred *saved_cred; in cachefiles_do_prepare_read() local
423 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_do_prepare_read()
486 cachefiles_end_secure(cache, saved_cred); in cachefiles_do_prepare_read()
600 const struct cred *saved_cred; in cachefiles_prepare_write() local
610 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_prepare_write()
614 cachefiles_end_secure(cache, saved_cred); in cachefiles_prepare_write()
Dxattr.c175 const struct cred *saved_cred; in cachefiles_prepare_to_write() local
182 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_prepare_to_write()
184 cachefiles_end_secure(cache, saved_cred); in cachefiles_prepare_to_write()
Dondemand.c48 const struct cred *saved_cred; in cachefiles_ondemand_fd_write_iter() local
54 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_ondemand_fd_write_iter()
56 cachefiles_end_secure(cache, saved_cred); in cachefiles_ondemand_fd_write_iter()
Dinternal.h337 const struct cred *saved_cred) in cachefiles_end_secure() argument
339 revert_creds(saved_cred); in cachefiles_end_secure()
Dnamei.c442 const struct cred *saved_cred; in cachefiles_create_tmpfile() local
450 cachefiles_begin_secure(cache, &saved_cred); in cachefiles_create_tmpfile()
503 cachefiles_end_secure(cache, saved_cred); in cachefiles_create_tmpfile()
/Linux-v6.6/net/dns_resolver/
Ddns_query.c81 const struct cred *saved_cred; in dns_query() local
127 saved_cred = override_creds(dns_resolver_cache); in dns_query()
129 revert_creds(saved_cred); in dns_query()
/Linux-v6.6/fs/smb/client/
Dcifs_spnego.c96 const struct cred *saved_cred; in cifs_get_spnego_key() local
160 saved_cred = override_creds(spnego_cred); in cifs_get_spnego_key()
162 revert_creds(saved_cred); in cifs_get_spnego_key()
Dcifsacl.c287 const struct cred *saved_cred; in id_to_sid() local
295 saved_cred = override_creds(root_cred); in id_to_sid()
330 revert_creds(saved_cred); in id_to_sid()
345 const struct cred *saved_cred; in sid_to_id() local
401 saved_cred = override_creds(root_cred); in sid_to_id()
441 revert_creds(saved_cred); in sid_to_id()
/Linux-v6.6/fs/smb/server/
Dsmb_common.c751 WARN_ON(work->saved_cred); in ksmbd_override_fsids()
752 work->saved_cred = override_creds(cred); in ksmbd_override_fsids()
753 if (!work->saved_cred) { in ksmbd_override_fsids()
764 WARN_ON(!work->saved_cred); in ksmbd_revert_fsids()
767 revert_creds(work->saved_cred); in ksmbd_revert_fsids()
769 work->saved_cred = NULL; in ksmbd_revert_fsids()
Dksmbd_work.h61 const struct cred *saved_cred; member
Dksmbd_work.c46 WARN_ON(work->saved_cred != NULL); in ksmbd_free_work_struct()
/Linux-v6.6/fs/nfs/
Dnfs4idmap.c309 const struct cred *saved_cred; in nfs_idmap_get_key() local
314 saved_cred = override_creds(id_resolver_cache); in nfs_idmap_get_key()
316 revert_creds(saved_cred); in nfs_idmap_get_key()
/Linux-v6.6/kernel/cgroup/
Dcgroup.c5136 const struct cred *saved_cred; in __cgroup_procs_write() local
5159 saved_cred = override_creds(of->file->f_cred); in __cgroup_procs_write()
5163 revert_creds(saved_cred); in __cgroup_procs_write()