/fs/nfs/ |
H A D | nfs4renewd.c | 60 struct rpc_cred *cred; local 82 cred = ops->get_state_renewal_cred_locked(clp); 84 if (cred == NULL) { 92 ops->sched_state_renewal(clp, cred, renew_flags); 93 put_rpccred(cred);
|
H A D | delegation.h | 17 struct rpc_cred *cred; member in struct:nfs_delegation 34 int nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); 35 void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res); 53 int nfs4_proc_delegreturn(struct inode *inode, struct rpc_cred *cred, const nfs4_stateid *stateid, int issync);
|
H A D | delegation.c | 26 if (delegation->cred) { 27 put_rpccred(delegation->cred); 28 delegation->cred = NULL; 127 * @cred: credential to use for request 131 void nfs_inode_reclaim_delegation(struct inode *inode, struct rpc_cred *cred, argument 146 oldcred = delegation->cred; 147 delegation->cred = get_rpccred(cred); 158 nfs_inode_set_delegation(inode, cred, res); 169 res = nfs4_proc_delegreturn(inode, delegation->cred, 227 nfs_inode_set_delegation(struct inode *inode, struct rpc_cred *cred, struct nfs_openres *res) argument [all...] |
H A D | unlink.c | 28 struct rpc_cred *cred; member in struct:nfs_unlinkdata 40 put_rpccred(data->cred); 136 .rpc_cred = data->cred, 269 data->cred = rpc_lookup_cred(); 270 if (IS_ERR(data->cred)) { 271 status = PTR_ERR(data->cred); 294 put_rpccred(data->cred); 347 struct rpc_cred *cred; member in struct:nfs_renamedata 402 put_rpccred(data->cred); 455 data->cred [all...] |
H A D | proc.c | 538 nfs_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, argument 551 .rpc_cred = cred,
|
H A D | idmap.c | 147 #include <linux/cred.h> 160 const struct cred *id_resolver_cache; 174 struct cred *cred; local 180 cred = prepare_kernel_cred(NULL); 181 if (!cred) 184 keyring = key_alloc(&key_type_keyring, ".id_resolver", 0, 0, cred, 201 cred->thread_keyring = keyring; 202 cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING; 203 id_resolver_cache = cred; [all...] |
H A D | nfs3proc.c | 193 .rpc_cred = entry->cred, 633 nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, argument 654 .rpc_cred = cred
|
H A D | client.c | 149 struct rpc_cred *cred; local 188 cred = rpc_lookup_machine_cred("*"); 189 if (!IS_ERR(cred)) 190 clp->cl_machine_cred = cred;
|
H A D | inode.c | 636 struct rpc_cred *cred = rpc_lookup_cred(); local 637 if (IS_ERR(cred)) 638 return ERR_CAST(cred); 642 put_rpccred(cred); 647 ctx->cred = cred; 679 if (ctx->cred != NULL) 680 put_rpccred(ctx->cred); 709 struct nfs_open_context *nfs_find_open_context(struct inode *inode, struct rpc_cred *cred, fmode_t mode) argument 716 if (cred ! [all...] |
H A D | nfs4state.c | 66 int nfs4_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) argument 81 status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid); 88 status = nfs4_proc_setclientid_confirm(clp, &clid, cred); 99 struct rpc_cred *cred = NULL; local 102 cred = get_rpccred(clp->cl_machine_cred); 103 return cred; 108 struct rpc_cred *cred; local 111 cred = clp->cl_machine_cred; 114 if (cred != NULL) 115 put_rpccred(cred); 121 struct rpc_cred *cred = NULL; local 146 struct rpc_cred *cred = NULL; local 239 nfs41_init_clientid(struct nfs_client *clp, struct rpc_cred *cred) argument 263 struct rpc_cred *cred; local 277 struct rpc_cred *cred = NULL; local 300 struct rpc_cred *cred; local 377 nfs4_find_state_owner_locked(struct nfs_server *server, struct rpc_cred *cred) argument 518 nfs4_get_state_owner(struct nfs_server *server, struct rpc_cred *cred) argument 1500 struct rpc_cred *cred; local 1525 struct rpc_cred *cred; local [all...] |
/fs/ecryptfs/ |
H A D | kthread.c | 137 const struct cred *cred) 149 (*lower_file) = dentry_open(lower_dentry, lower_mnt, flags, cred); 134 ecryptfs_privileged_open(struct file **lower_file, struct dentry *lower_dentry, struct vfsmount *lower_mnt, const struct cred *cred) argument
|
H A D | main.c | 122 const struct cred *cred = current_cred(); local 128 cred);
|
/fs/ |
H A D | ioprio.c | 36 const struct cred *cred = current_cred(), *tcred; local 40 if (tcred->uid != cred->euid && 41 tcred->uid != cred->uid && !capable(CAP_SYS_NICE)) {
|
H A D | file_table.c | 107 const struct cred *cred = current_cred(); local 128 f->f_cred = get_cred(cred);
|
H A D | fcntl.c | 210 const struct cred *cred = current_cred(); local 211 filp->f_owner.uid = cred->uid; 212 filp->f_owner.euid = cred->euid; 530 const struct cred *cred; local 534 cred = __task_cred(p); 536 fown->euid == cred->suid || fown->euid == cred->uid || 537 fown->uid == cred [all...] |
H A D | open.c | 301 const struct cred *old_cred; 302 struct cred *override_cred; 650 const struct cred *cred) 684 error = security_dentry_open(f, cred); 765 const struct cred *cred = current_cred(); local 773 open, cred); 792 const struct cred *cred local 647 __dentry_open(struct dentry *dentry, struct vfsmount *mnt, struct file *f, int (*open)(struct inode *, struct file *), const struct cred *cred) argument 812 dentry_open(struct dentry *dentry, struct vfsmount *mnt, int flags, const struct cred *cred) argument [all...] |
H A D | binfmt_elf_fdpic.c | 486 const struct cred *cred = current_cred(); local 635 NEW_AUX_ENT(AT_UID, (elf_addr_t) cred->uid); 636 NEW_AUX_ENT(AT_EUID, (elf_addr_t) cred->euid); 637 NEW_AUX_ENT(AT_GID, (elf_addr_t) cred->gid); 638 NEW_AUX_ENT(AT_EGID, (elf_addr_t) cred->egid); 1403 const struct cred *cred; local 1434 cred = __task_cred(p); 1435 SET_UID(psinfo->pr_uid, cred [all...] |
/fs/exportfs/ |
H A D | expfs.c | 254 const struct cred *cred = current_cred(); local 269 file = dentry_open(dget(dentry), mntget(mnt), O_RDONLY, cred);
|
/fs/lockd/ |
H A D | clntproc.c | 248 nlmclnt_call(struct rpc_cred *cred, struct nlm_rqst *req, u32 proc) argument 257 .rpc_cred = cred, 393 static int nlmclnt_async_call(struct rpc_cred *cred, struct nlm_rqst *req, u32 proc, const struct rpc_call_ops *tk_ops) argument 398 .rpc_cred = cred, 514 struct rpc_cred *cred = nfs_file_cred(fl->fl_file); local 542 status = nlmclnt_call(cred, req, NLMPROC_LOCK); 611 nlmclnt_async_call(cred, req, NLMPROC_UNLOCK, &nlmclnt_unlock_ops);
|
/fs/hppfs/ |
H A D | hppfs.c | 421 const struct cred *cred = file->f_cred; local 442 file_mode(file->f_mode), cred); 485 const struct cred *cred = file->f_cred; local 499 file_mode(file->f_mode), cred);
|
/fs/proc/ |
H A D | array.c | 167 const struct cred *cred; local 179 cred = get_task_cred(p); 192 cred->uid, cred->euid, cred->suid, cred->fsuid, 193 cred->gid, cred->egid, cred 304 const struct cred *cred; local [all...] |
/fs/xfs/ |
H A D | xfs_ioctl.c | 205 const struct cred *cred = current_cred(); local 262 hreq->oflags, cred);
|
/fs/cifs/ |
H A D | cifsacl.c | 45 const struct cred *root_cred; 299 const struct cred *saved_cred; 415 const struct cred *saved_cred; 524 struct cred *cred; local 536 cred = prepare_kernel_cred(NULL); 537 if (!cred) 540 keyring = key_alloc(&key_type_keyring, ".cifs_idmap", 0, 0, cred, 559 cred->thread_keyring = keyring; 560 cred [all...] |
/fs/exofs/ |
H A D | super.c | 220 static int exofs_read_kern(struct osd_dev *od, u8 *cred, struct osd_obj_id *obj, argument 237 ret = osd_finalize_request(or, 0, cred, NULL); 603 exofs_make_credential(comp.cred, &comp.obj); 605 ret = exofs_read_kern(fscb_od, comp.cred, &comp.obj, 0, dt, 676 ret = exofs_read_kern(od, comp.cred, &comp.obj, 0, &fscb, 746 exofs_make_credential(sbi->one_comp.cred, &sbi->one_comp.obj); 763 exofs_make_credential(comp.cred, &comp.obj); 765 ret = exofs_read_kern(od, comp.cred, &comp.obj, 0, &fscb, sizeof(fscb));
|
/fs/fuse/ |
H A D | dir.c | 950 const struct cred *cred; local 958 cred = __task_cred(task); 959 if (cred->euid == fc->user_id && 960 cred->suid == fc->user_id && 961 cred->uid == fc->user_id && 962 cred->egid == fc->group_id && 963 cred->sgid == fc->group_id && 964 cred->gid == fc->group_id)
|