/fs/nfs/ |
D | nfs4_fs.h | 65 nfs4_stateid *, const struct cred *); 111 const struct cred *so_cred; /* Associated cred */ 217 int (*establish_clid)(struct nfs_client *, const struct cred *); 218 int (*reclaim_complete)(struct nfs_client *, const struct cred *); 220 const struct cred *); 250 const struct cred *cred; member 254 int (*sched_state_renewal)(struct nfs_client *, const struct cred *, unsigned); 255 const struct cred * (*get_state_renewal_cred)(struct nfs_client *); 256 int (*renew_lease)(struct nfs_client *, const struct cred *); 261 struct page *, const struct cred *); [all …]
|
D | nfs4state.c | 111 int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred) in nfs4_init_clientid() argument 127 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs4_init_clientid() 134 status = nfs4_proc_setclientid_confirm(clp, &clid, cred); in nfs4_init_clientid() 158 const struct cred *cred) in nfs40_discover_server_trunking() argument 172 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); in nfs40_discover_server_trunking() 178 status = nfs40_walk_client_list(clp, result, cred); in nfs40_discover_server_trunking() 192 const struct cred *nfs4_get_machine_cred(struct nfs_client *clp) in nfs4_get_machine_cred() 205 static const struct cred * 208 const struct cred *cred = NULL; in nfs4_get_renew_cred_server_locked() local 218 cred = get_cred(sp->so_cred); in nfs4_get_renew_cred_server_locked() [all …]
|
D | delegation.h | 18 const struct cred *cred; member 40 int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, 42 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, 65 int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid… 68 …elegation_stateid(struct inode *inode, fmode_t flags, nfs4_stateid *dst, const struct cred **cred);
|
D | delegation.c | 30 put_cred(delegation->cred); in nfs_free_delegation() 31 delegation->cred = NULL; in nfs_free_delegation() 190 void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred, in nfs_inode_reclaim_delegation() argument 196 const struct cred *oldcred = NULL; in nfs_inode_reclaim_delegation() 206 oldcred = delegation->cred; in nfs_inode_reclaim_delegation() 207 delegation->cred = get_cred(cred); in nfs_inode_reclaim_delegation() 220 nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit); in nfs_inode_reclaim_delegation() 229 delegation->cred, in nfs_do_return_delegation() 355 int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred, in nfs_inode_set_delegation() argument 374 delegation->cred = get_cred(cred); in nfs_inode_set_delegation() [all …]
|
D | nfs4idmap.c | 57 static const struct cred *id_resolver_cache; 72 const struct cred *cred; member 77 if (idmap && idmap->cred) in idmap_userns() 78 return idmap->cred->user_ns; in idmap_userns() 198 struct cred *cred; in nfs_idmap_init() local 205 cred = prepare_kernel_cred(NULL); in nfs_idmap_init() 206 if (!cred) in nfs_idmap_init() 210 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, in nfs_idmap_init() 228 cred->thread_keyring = keyring; in nfs_idmap_init() 229 cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING; in nfs_idmap_init() [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 | 96 static int nfs4_do_setattr(struct inode *inode, const struct cred *cred, 102 const struct cred *cred, 106 const struct cred *); 108 const struct cred *, bool); 364 const struct cred *cred) in nfs4_test_and_free_stateid() argument 368 ops->test_and_free_expired(server, stateid, cred); in nfs4_test_and_free_stateid() 373 const struct cred *cred) in __nfs4_free_revoked_stateid() argument 376 nfs4_test_and_free_stateid(server, stateid, cred); in __nfs4_free_revoked_stateid() 381 const struct cred *cred) in nfs4_free_revoked_stateid() argument 386 __nfs4_free_revoked_stateid(server, &tmp, cred); in nfs4_free_revoked_stateid() [all …]
|
D | dir.c | 71 …struct nfs_open_dir_context *alloc_nfs_open_dir_context(struct inode *dir, const struct cred *cred) in alloc_nfs_open_dir_context() argument 81 ctx->cred = get_cred(cred); in alloc_nfs_open_dir_context() 99 put_cred(ctx->cred); in put_nfs_open_dir_context() 337 const struct cred *cred = ctx->cred; in nfs_readdir_xdr_filler() local 344 error = NFS_PROTO(inode)->readdir(file_dentry(file), cred, entry->cookie, pages, in nfs_readdir_xdr_filler() 2152 put_cred(entry->cred); in nfs_access_free_entry() 2278 …tic struct nfs_access_entry *nfs_access_search_rbtree(struct inode *inode, const struct cred *cred) in nfs_access_search_rbtree() argument 2285 int cmp = cred_fscmp(cred, entry->cred); in nfs_access_search_rbtree() 2297 static int nfs_access_get_cached(struct inode *inode, const struct cred *cred, struct nfs_access_en… in nfs_access_get_cached() argument 2308 cache = nfs_access_search_rbtree(inode, cred); in nfs_access_get_cached() [all …]
|
D | pnfs_dev.c | 97 const struct cred *cred, gfp_t gfp_flags) in nfs4_get_device_info() argument 140 rc = nfs4_proc_getdeviceinfo(server, pdev, cred); in nfs4_get_device_info() 187 const struct nfs4_deviceid *id, const struct cred *cred, in nfs4_find_get_deviceid() argument 197 new = nfs4_get_device_info(server, id, cred, gfp_mask); in nfs4_find_get_deviceid()
|
D | internal.h | 79 const struct cred *cred; member 252 const struct cred *cred, const struct nfs_rpc_ops *rpc_ops, 267 return cred_fscmp(ctx1->cred, ctx2->cred) == 0 && ctx1->state == ctx2->state; in nfs_match_open_context() 562 const struct cred *cred); 565 const struct cred *cred);
|
D | unlink.c | 34 put_cred(data->cred); in nfs_free_unlinkdata() 94 .rpc_cred = data->cred, in nfs_do_call_unlink() 181 data->cred = get_current_cred(); in nfs_async_unlink() 202 put_cred(data->cred); in nfs_async_unlink() 306 put_cred(data->cred); in nfs_async_rename_release() 352 data->cred = get_current_cred(); in nfs_async_rename() 356 msg.rpc_cred = data->cred; in nfs_async_rename()
|
/fs/cifs/ |
D | cifs_spnego.c | 33 static const struct cred *spnego_cred; 108 const struct cred *saved_cred; in cifs_get_spnego_key() 192 struct cred *cred; in init_cifs_spnego() local 204 cred = prepare_kernel_cred(NULL); in init_cifs_spnego() 205 if (!cred) in init_cifs_spnego() 209 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, in init_cifs_spnego() 227 cred->thread_keyring = keyring; in init_cifs_spnego() 228 cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING; in init_cifs_spnego() 229 spnego_cred = cred; in init_cifs_spnego() 237 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 …]
|
D | flexfilelayout.h | 84 const struct cred __rcu *ro_cred; 85 const struct cred __rcu *rw_cred; 220 const struct cred *ff_layout_get_ds_cred(struct nfs4_ff_layout_mirror *mirror, 222 const struct cred *mdscred);
|
/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()
|
D | host.c | 63 const struct cred *cred; member 166 host->h_cred = get_cred(ni->cred), in nlm_alloc_host() 223 const struct cred *cred) in nlmclnt_lookup_host() argument 235 .cred = cred, in nlmclnt_lookup_host() 468 .cred = host->h_cred, in nlm_bind_host()
|
/fs/proc/ |
D | array.c | 159 const struct cred *cred; in task_state() local 173 cred = get_task_cred(p); in task_state() 193 seq_put_decimal_ull(m, "\nUid:\t", from_kuid_munged(user_ns, cred->uid)); in task_state() 194 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->euid)); in task_state() 195 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->suid)); in task_state() 196 seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid)); in task_state() 197 seq_put_decimal_ull(m, "\nGid:\t", from_kgid_munged(user_ns, cred->gid)); in task_state() 198 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->egid)); in task_state() 199 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->sgid)); in task_state() 200 seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->fsgid)); in task_state() [all …]
|
/fs/sdcardfs/ |
D | inode.c | 26 const struct cred *override_fsids(struct sdcardfs_sb_info *sbi, in override_fsids() 29 struct cred *cred; in override_fsids() local 30 const struct cred *old_cred; in override_fsids() 33 cred = prepare_creds(); in override_fsids() 34 if (!cred) in override_fsids() 45 cred->fsuid = make_kuid(&init_user_ns, uid); in override_fsids() 46 cred->fsgid = make_kgid(&init_user_ns, sbi->options.fs_low_gid); in override_fsids() 48 old_cred = override_creds(cred); in override_fsids() 53 void revert_fsids(const struct cred *old_cred) in revert_fsids() 55 const struct cred *cur_cred; in revert_fsids() [all …]
|
/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() 134 struct file *alloc_empty_file(int flags, const struct cred *cred) in alloc_empty_file() argument 151 f = __alloc_file(flags, cred); in alloc_empty_file() 171 struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred) in alloc_empty_file_noaccount() argument 173 struct file *f = __alloc_file(flags, cred); in alloc_empty_file_noaccount()
|
D | coredump.c | 194 const struct cred *cred = current_cred(); in format_corename() local 270 cred->uid)); in format_corename() 276 cred->gid)); in format_corename() 547 static int umh_pipe_setup(struct subprocess_info *info, struct cred *new) in umh_pipe_setup() 571 const struct cred *old_cred; in do_coredump() 572 struct cred *cred; in do_coredump() local 602 cred = prepare_creds(); in do_coredump() 603 if (!cred) in do_coredump() 613 cred->fsuid = GLOBAL_ROOT_UID; /* Dump root private */ in do_coredump() 621 old_cred = override_creds(cred); in do_coredump() [all …]
|
D | fcntl.c | 97 const struct cred *cred = current_cred(); in f_modown() local 98 filp->f_owner.uid = cred->uid; in f_modown() 99 filp->f_owner.euid = cred->euid; in f_modown() 711 const struct cred *cred; in sigio_perm() local 715 cred = __task_cred(p); in sigio_perm() 717 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || in sigio_perm() 718 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && in sigio_perm()
|
/fs/overlayfs/ |
D | file.c | 29 const struct cred *old_cred; in ovl_open_realfile() 148 const struct cred *old_cred; in ovl_llseek() 232 const struct cred *old_cred; in ovl_read_iter() 259 const struct cred *old_cred; in ovl_write_iter() 297 const struct cred *old_cred; in ovl_fsync() 319 const struct cred *old_cred; in ovl_mmap() 351 const struct cred *old_cred; in ovl_fallocate() 373 const struct cred *old_cred; in ovl_fadvise() 393 const struct cred *old_cred; in ovl_real_ioctl() 561 const struct cred *old_cred; in ovl_copyfile()
|
/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 | 286 static int nfsd_init_socks(struct net *net, const struct cred *cred) in nfsd_init_socks() argument 295 SVC_SOCK_DEFAULTS, cred); in nfsd_init_socks() 300 SVC_SOCK_DEFAULTS, cred); in nfsd_init_socks() 375 static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cred) in nfsd_startup_net() argument 386 ret = nfsd_init_socks(net, cred); in nfsd_startup_net() 391 ret = lockd_up(net, cred); in nfsd_startup_net() 725 nfsd_svc(int nrservs, struct net *net, const struct cred *cred) in nfsd_svc() argument 747 error = nfsd_startup_net(nrservs, net, cred); in nfsd_svc()
|