Searched defs:cred (Results 1 - 25 of 30) sorted by relevance

12

/fs/nfs/
H A Dnfs4renewd.c60 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 Ddelegation.h17 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 Ddelegation.c26 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 Dunlink.c28 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 Dproc.c538 nfs_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, argument
551 .rpc_cred = cred,
H A Didmap.c147 #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 Dnfs3proc.c193 .rpc_cred = entry->cred,
633 nfs3_proc_readdir(struct dentry *dentry, struct rpc_cred *cred, argument
654 .rpc_cred = cred
H A Dclient.c149 struct rpc_cred *cred; local
188 cred = rpc_lookup_machine_cred("*");
189 if (!IS_ERR(cred))
190 clp->cl_machine_cred = cred;
H A Dinode.c636 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 Dnfs4state.c66 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 Dkthread.c137 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 Dmain.c122 const struct cred *cred = current_cred(); local
128 cred);
/fs/
H A Dioprio.c36 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 Dfile_table.c107 const struct cred *cred = current_cred(); local
128 f->f_cred = get_cred(cred);
H A Dfcntl.c210 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 Dopen.c301 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 Dbinfmt_elf_fdpic.c486 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 Dexpfs.c254 const struct cred *cred = current_cred(); local
269 file = dentry_open(dget(dentry), mntget(mnt), O_RDONLY, cred);
/fs/lockd/
H A Dclntproc.c248 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 Dhppfs.c421 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 Darray.c167 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 Dxfs_ioctl.c205 const struct cred *cred = current_cred(); local
262 hreq->oflags, cred);
/fs/cifs/
H A Dcifsacl.c45 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 Dsuper.c220 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 Ddir.c950 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)

Completed in 737 milliseconds

12