/fs/nfs/ |
D | nfs4state.c | 113 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs4_init_clientid() argument 129 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs4_init_clientid() 136 status = nfs4_proc_setclientid_confirm(clp, &clid, cred); in nfs4_init_clientid() 160 const struct cred *cred) in nfs40_discover_server_trunking() argument 174 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs40_discover_server_trunking() 180 status = nfs40_walk_client_list(clp, result, cred); in nfs40_discover_server_trunking() 194 const struct cred *nfs4_get_machine_cred(struct nfs_client *clp) in nfs4_get_machine_cred() 207 static const struct cred * 210 const struct cred *cred = NULL; in nfs4_get_renew_cred_server_locked() local 220 cred = get_cred(sp->so_cred); in nfs4_get_renew_cred_server_locked() [all …]
|
D | nfs4_fs.h | 69 nfs4_stateid *, const struct cred *); 115 const struct cred *so_cred; /* Associated cred */ 222 int (*establish_clid)(struct nfs_client *, const struct cred *); 223 int (*reclaim_complete)(struct nfs_client *, const struct cred *); 225 const struct cred *); 255 const struct cred *cred; member 259 int (*sched_state_renewal)(struct nfs_client *, const struct cred *, unsigned); 260 const struct cred * (*get_state_renewal_cred)(struct nfs_client *); 261 int (*renew_lease)(struct nfs_client *, const struct cred *); 266 struct nfs4_fs_locations *, struct page *, const struct cred *); [all …]
|
D | delegation.h | 18 const struct cred *cred; member 42 int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, 44 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, 69 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid… 72 …elegation_stateid(struct inode *inode, fmode_t flags, nfs4_stateid *dst, const struct cred **cred);
|
D | delegation.c | 35 put_cred(delegation->cred); in __nfs_free_delegation() 36 delegation->cred = NULL; in __nfs_free_delegation() 230 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, in nfs_inode_reclaim_delegation() argument 235 const struct cred *oldcred = NULL; in nfs_inode_reclaim_delegation() 244 oldcred = delegation->cred; in nfs_inode_reclaim_delegation() 245 delegation->cred = get_cred(cred); in nfs_inode_reclaim_delegation() 256 nfs_inode_set_delegation(inode, cred, type, stateid, in nfs_inode_reclaim_delegation() 263 const struct cred *cred; in nfs_do_return_delegation() local 268 cred = get_cred(delegation->cred); in nfs_do_return_delegation() 270 res = nfs4_proc_delegreturn(inode, cred, in nfs_do_return_delegation() [all …]
|
D | nfs4renewd.c | 60 const struct cred *cred; in nfs4_renew_state() local 81 cred = ops->get_state_renewal_cred(clp); in nfs4_renew_state() 82 if (cred == NULL) { in nfs4_renew_state() 92 ret = ops->sched_state_renewal(clp, cred, renew_flags); in nfs4_renew_state() 93 put_cred(cred); in nfs4_renew_state()
|
D | nfs4proc.c | 97 static int nfs4_do_setattr(struct inode *inode, const struct cred *cred, 103 const struct cred *cred, 107 const struct cred *); 109 const struct cred *, bool); 385 const struct cred *cred) in nfs4_test_and_free_stateid() argument 389 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 394 const struct cred *cred) in __nfs4_free_revoked_stateid() argument 397 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid() 402 const struct cred *cred) in nfs4_free_revoked_stateid() argument 407 __nfs4_free_revoked_stateid(server, &tmp, cred); in nfs4_free_revoked_stateid() [all …]
|
D | pnfs.c | 966 pnfs_set_layout_cred(struct pnfs_layout_hdr *lo, const struct cred *cred) in pnfs_set_layout_cred() argument 968 const struct cred *old; in pnfs_set_layout_cred() 970 if (cred && cred_fscmp(lo->plh_lc_cred, cred) != 0) { in pnfs_set_layout_cred() 971 old = xchg(&lo->plh_lc_cred, get_cred(cred)); in pnfs_set_layout_cred() 979 const struct cred *cred, bool update_barrier) in pnfs_set_layout_stateid() argument 985 pnfs_set_layout_cred(lo, cred); in pnfs_set_layout_stateid() 1134 lgp->cred = ctx->cred; in pnfs_alloc_init_layoutget_args() 1193 const struct cred **cred, in pnfs_prepare_layoutreturn() argument 1204 *cred = get_cred(lo->plh_lc_cred); in pnfs_prepare_layoutreturn() 1237 const struct cred **pcred, in pnfs_send_layoutreturn() [all …]
|
D | nfs4idmap.c | 58 static const struct cred *id_resolver_cache; 199 struct cred *cred; in nfs_idmap_init() local 206 cred = prepare_kernel_cred(NULL); in nfs_idmap_init() 207 if (!cred) in nfs_idmap_init() 211 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, in nfs_idmap_init() 229 cred->thread_keyring = keyring; in nfs_idmap_init() 230 cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING; in nfs_idmap_init() 231 id_resolver_cache = cred; in nfs_idmap_init() 239 put_cred(cred); in nfs_idmap_init() 309 const struct cred *saved_cred; in nfs_idmap_get_key()
|
D | pnfs_dev.c | 99 const struct cred *cred, gfp_t gfp_flags) in nfs4_get_device_info() argument 142 rc = nfs4_proc_getdeviceinfo(server, pdev, cred); in nfs4_get_device_info() 189 const struct nfs4_deviceid *id, const struct cred *cred, in nfs4_find_get_deviceid() argument 199 new = nfs4_get_device_info(server, id, cred, gfp_mask); in nfs4_find_get_deviceid()
|
D | pnfs.h | 216 const struct cred *plh_lc_cred; /* layoutcommit cred */ 249 const struct cred *cred); 287 const struct cred *cred, 302 const struct cred *cred); 370 const struct nfs4_deviceid *id, const struct cred *cred, 770 const struct cred *cred) in pnfs_roc() argument
|
D | dir.c | 518 .cred = desc->file->f_cred, in nfs_readdir_xdr_filler() 2553 put_cred(entry->cred); in nfs_access_free_entry() 2679 …tic struct nfs_access_entry *nfs_access_search_rbtree(struct inode *inode, const struct cred *cred) in nfs_access_search_rbtree() argument 2686 int cmp = cred_fscmp(cred, entry->cred); in nfs_access_search_rbtree() 2698 static int nfs_access_get_cached_locked(struct inode *inode, const struct cred *cred, u32 *mask, bo… in nfs_access_get_cached_locked() argument 2709 cache = nfs_access_search_rbtree(inode, cred); in nfs_access_get_cached_locked() 2740 static int nfs_access_get_cached_rcu(struct inode *inode, const struct cred *cred, u32 *mask) in nfs_access_get_cached_rcu() argument 2756 cred_fscmp(cred, cache->cred) != 0) in nfs_access_get_cached_rcu() 2769 int nfs_access_get_cached(struct inode *inode, const struct cred *cred, in nfs_access_get_cached() argument 2774 status = nfs_access_get_cached_rcu(inode, cred, mask); in nfs_access_get_cached() [all …]
|
D | unlink.c | 34 put_cred(data->cred); in nfs_free_unlinkdata() 94 .rpc_cred = data->cred, in nfs_do_call_unlink() 185 data->cred = get_current_cred(); in nfs_async_unlink() 206 put_cred(data->cred); in nfs_async_unlink() 310 put_cred(data->cred); in nfs_async_rename_release() 360 data->cred = get_current_cred(); in nfs_async_rename() 364 msg.rpc_cred = data->cred; in nfs_async_rename()
|
D | internal.h | 83 const struct cred *cred; member 298 const struct cred *cred, const struct nfs_rpc_ops *rpc_ops, 307 return cred_fscmp(ctx1->cred, ctx2->cred) == 0 && ctx1->state == ctx2->state; in nfs_match_open_context() 608 const struct cred *cred); 611 const struct cred *cred);
|
/fs/cifs/ |
D | cifs_spnego.c | 21 static const struct cred *spnego_cred; 96 const struct cred *saved_cred; in cifs_get_spnego_key() 180 struct cred *cred; in init_cifs_spnego() local 192 cred = prepare_kernel_cred(NULL); in init_cifs_spnego() 193 if (!cred) in init_cifs_spnego() 197 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, in init_cifs_spnego() 215 cred->thread_keyring = keyring; in init_cifs_spnego() 216 cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING; in init_cifs_spnego() 217 spnego_cred = cred; in init_cifs_spnego() 225 put_cred(cred); in init_cifs_spnego()
|
/fs/nfs/flexfilelayout/ |
D | flexfilelayoutdev.c | 282 static const struct cred * 285 const struct cred *cred, __rcu **pcred; in ff_layout_get_mirror_cred() local 294 cred = rcu_dereference(*pcred); in ff_layout_get_mirror_cred() 295 if (!cred) in ff_layout_get_mirror_cred() 298 cred = get_cred_rcu(cred); in ff_layout_get_mirror_cred() 299 } while(!cred); in ff_layout_get_mirror_cred() 301 return cred; in ff_layout_get_mirror_cred() 418 const struct cred * 421 const struct cred *mdscred) in ff_layout_get_ds_cred() 423 const struct cred *cred; in ff_layout_get_ds_cred() local [all …]
|
/fs/ksmbd/ |
D | smb_common.c | 736 struct cred *cred; in ksmbd_override_fsids() local 748 cred = prepare_kernel_cred(NULL); in ksmbd_override_fsids() 749 if (!cred) in ksmbd_override_fsids() 752 cred->fsuid = make_kuid(&init_user_ns, uid); in ksmbd_override_fsids() 753 cred->fsgid = make_kgid(&init_user_ns, gid); in ksmbd_override_fsids() 757 abort_creds(cred); in ksmbd_override_fsids() 760 set_groups(cred, gi); in ksmbd_override_fsids() 763 if (!uid_eq(cred->fsuid, GLOBAL_ROOT_UID)) in ksmbd_override_fsids() 764 cred->cap_effective = cap_drop_fs_set(cred->cap_effective); in ksmbd_override_fsids() 767 work->saved_cred = override_creds(cred); in ksmbd_override_fsids() [all …]
|
/fs/lockd/ |
D | svc.c | 193 const struct cred *cred) in create_lockd_listener() argument 200 SVC_SOCK_DEFAULTS, cred); in create_lockd_listener() 206 const int family, const struct cred *cred) in create_lockd_family() argument 211 cred); in create_lockd_family() 216 cred); in create_lockd_family() 230 const struct cred *cred) in make_socks() argument 235 err = create_lockd_family(serv, net, PF_INET, cred); in make_socks() 239 err = create_lockd_family(serv, net, PF_INET6, cred); in make_socks() 255 const struct cred *cred) in lockd_up_net() argument 267 error = make_socks(serv, net, cred); in lockd_up_net() [all …]
|
D | clntproc.c | 261 nlmclnt_call(const struct cred *cred, struct nlm_rqst *req, u32 proc) in nlmclnt_call() argument 270 .rpc_cred = cred, in nlmclnt_call() 406 static int nlmclnt_async_call(const struct cred *cred, struct nlm_rqst *req, u32 proc, const struct… in nlmclnt_async_call() argument 411 .rpc_cred = cred, in nlmclnt_async_call() 515 const struct cred *cred = nfs_file_cred(fl->fl_file); in nlmclnt_lock() local 543 status = nlmclnt_call(cred, req, NLMPROC_LOCK); in nlmclnt_lock() 612 nlmclnt_async_call(cred, req, NLMPROC_UNLOCK, &nlmclnt_unlock_ops); in nlmclnt_lock()
|
/fs/proc/ |
D | array.c | 149 const struct cred *cred; in task_state() local 163 cred = get_task_cred(p); in task_state() 183 seq_put_decimal_ull(m, "\nUid:\t", from_kuid_munged(user_ns, cred->uid)); in task_state() 184 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->euid)); in task_state() 185 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->suid)); in task_state() 186 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid)); in task_state() 187 seq_put_decimal_ull(m, "\nGid:\t", from_kgid_munged(user_ns, cred->gid)); in task_state() 188 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->egid)); in task_state() 189 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->sgid)); in task_state() 190 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->fsgid)); in task_state() [all …]
|
/fs/fuse/ |
D | passthrough.c | 78 const struct cred *old_cred; in fuse_passthrough_read_iter() 86 old_cred = override_creds(ff->passthrough.cred); in fuse_passthrough_read_iter() 119 const struct cred *old_cred; in fuse_passthrough_write_iter() 133 old_cred = override_creds(ff->passthrough.cred); in fuse_passthrough_write_iter() 171 const struct cred *old_cred; in fuse_passthrough_mmap() 183 old_cred = override_creds(ff->passthrough.cred); in fuse_passthrough_mmap() 238 passthrough->cred = prepare_creds(); in fuse_passthrough_open() 290 if (passthrough->cred) { in fuse_passthrough_release() 291 put_cred(passthrough->cred); in fuse_passthrough_release() 292 passthrough->cred = NULL; in fuse_passthrough_release()
|
/fs/ |
D | file_table.c | 96 static struct file *__alloc_file(int flags, const struct cred *cred) in __alloc_file() argument 105 f->f_cred = get_cred(cred); in __alloc_file() 133 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file() argument 150 f = __alloc_file(flags, cred); in alloc_empty_file() 170 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount() argument 172 struct file *f = __alloc_file(flags, cred); in alloc_empty_file_noaccount()
|
D | coredump.c | 203 const struct cred *cred = current_cred(); in format_corename() local 282 cred->uid)); in format_corename() 288 cred->gid)); in format_corename() 563 static int umh_pipe_setup(struct subprocess_info *info, struct cred *new) in umh_pipe_setup() 587 const struct cred *old_cred; in do_coredump() 588 struct cred *cred; in do_coredump() local 618 cred = prepare_creds(); in do_coredump() 619 if (!cred) in do_coredump() 629 cred->fsuid = GLOBAL_ROOT_UID; /* Dump root private */ in do_coredump() 637 old_cred = override_creds(cred); in do_coredump() [all …]
|
/fs/overlayfs/ |
D | file.c | 46 const struct cred *old_cred; in ovl_open_realfile() 179 const struct cred *old_cred; in ovl_llseek() 283 const struct cred *old_cred; in ovl_read_iter() 336 const struct cred *old_cred; in ovl_write_iter() 417 const struct cred *old_cred; in ovl_splice_write() 452 const struct cred *old_cred; in ovl_fsync() 478 const struct cred *old_cred; in ovl_mmap() 501 const struct cred *old_cred; in ovl_fallocate() 533 const struct cred *old_cred; in ovl_fadvise() 561 const struct cred *old_cred; in ovl_copyfile() [all …]
|
/fs/cachefiles/ |
D | security.c | 18 struct cred *new; in cachefiles_get_security_ID() 77 const struct cred **_saved_cred) in cachefiles_determine_cache_security() 79 struct cred *new; in cachefiles_determine_cache_security()
|
/fs/nfsd/ |
D | nfssvc.c | 288 static int nfsd_init_socks(struct net *net, const struct cred *cred) in nfsd_init_socks() argument 297 SVC_SOCK_DEFAULTS, cred); in nfsd_init_socks() 302 SVC_SOCK_DEFAULTS, cred); in nfsd_init_socks() 377 static int nfsd_startup_net(struct net *net, const struct cred *cred) in nfsd_startup_net() argument 388 ret = nfsd_init_socks(net, cred); in nfsd_startup_net() 393 ret = lockd_up(net, cred); in nfsd_startup_net() 771 nfsd_svc(int nrservs, struct net *net, const struct cred *cred) in nfsd_svc() argument 796 error = nfsd_startup_net(net, cred); in nfsd_svc()
|