Searched refs:cred (Results 126 - 150 of 336) sorted by relevance

1234567891011>>

/linux-master/kernel/
H A Dnsproxy.c214 struct nsproxy **new_nsp, struct cred *new_cred, struct fs_struct *new_fs)
340 nsset->cred = prepare_creds();
342 nsset->cred = current_cred();
343 if (!nsset->cred)
521 nsset->cred = NULL;
H A Dumh.c14 #include <linux/cred.h>
67 struct cred *new;
358 int (*init)(struct subprocess_info *info, struct cred *new),
/linux-master/net/sunrpc/auth_gss/
H A Dsvcauth_gss.c72 /* decoded gss client cred: */
371 struct svc_cred cred; member in struct:rsc
385 free_svc_cred(&rsci->cred);
402 free_svc_cred(&rsci->cred);
432 init_svc_cred(&new->cred);
445 new->cred = tmp->cred;
446 init_svc_cred(&tmp->cred);
513 rsci.cred.cr_uid = make_kuid(current_user_ns(), id);
518 rsci.cred
[all...]
/linux-master/fs/cachefiles/
H A Dinternal.h16 #include <linux/cred.h>
96 const struct cred *cache_cred; /* security override for accessing cache */
388 const struct cred **_saved_cred);
391 const struct cred **_saved_cred)
397 const struct cred *saved_cred)
/linux-master/fs/nfs/
H A Dpnfs.c969 pnfs_set_layout_cred(struct pnfs_layout_hdr *lo, const struct cred *cred) argument
971 const struct cred *old;
973 if (cred && cred_fscmp(lo->plh_lc_cred, cred) != 0) {
974 old = xchg(&lo->plh_lc_cred, get_cred(cred));
982 const struct cred *cred, bool update_barrier)
988 pnfs_set_layout_cred(lo, cred);
1137 lgp->cred
981 pnfs_set_layout_stateid(struct pnfs_layout_hdr *lo, const nfs4_stateid *new, const struct cred *cred, bool update_barrier) argument
1194 pnfs_prepare_layoutreturn(struct pnfs_layout_hdr *lo, nfs4_stateid *stateid, const struct cred **cred, enum pnfs_iomode *iomode) argument
1247 const struct cred *cred = *pcred; local
1306 const struct cred *cred; local
1340 const struct cred *cred; local
1420 pnfs_roc(struct inode *ino, struct nfs4_layoutreturn_args *args, struct nfs4_layoutreturn_res *res, const struct cred *cred) argument
2562 const struct cred *cred; local
2653 const struct cred *cred; local
[all...]
H A Dnfs4idmap.c58 static const struct cred *id_resolver_cache;
199 struct cred *cred; local
206 cred = prepare_kernel_cred(&init_task);
207 if (!cred)
211 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
229 cred->thread_keyring = keyring;
230 cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING;
231 id_resolver_cache = cred;
239 put_cred(cred);
[all...]
H A Dpnfs.h215 const struct cred *plh_lc_cred; /* layoutcommit cred */
248 const struct cred *cred);
287 const struct cred *cred,
302 const struct cred *cred);
370 const struct nfs4_deviceid *id, const struct cred *cred,
774 pnfs_roc(struct inode *ino, struct nfs4_layoutreturn_args *args, struct nfs4_layoutreturn_res *res, const struct cred *cred) argument
[all...]
H A Ddir.c590 .cred = desc->file->f_cred,
2969 static int access_cmp(const struct cred *a, const struct nfs_access_entry *b)
3006 static struct nfs_access_entry *nfs_access_search_rbtree(struct inode *inode, const struct cred *cred) argument
3013 int cmp = access_cmp(cred, entry);
3026 const struct cred *cred)
3029 const struct cred *pcred;
3036 if (parent == task || cred_fscmp(pcred, cred) != 0)
3045 static int nfs_access_get_cached_locked(struct inode *inode, const struct cred *cre argument
3025 nfs_access_login_time(const struct task_struct *task, const struct cred *cred) argument
3091 nfs_access_get_cached_rcu(struct inode *inode, const struct cred *cred, u32 *mask) argument
3123 nfs_access_get_cached(struct inode *inode, const struct cred *cred, u32 *mask, bool may_block) argument
3137 nfs_access_add_rbtree(struct inode *inode, struct nfs_access_entry *set, const struct cred *cred) argument
3174 nfs_access_add_cache(struct inode *inode, struct nfs_access_entry *set, const struct cred *cred) argument
3248 nfs_do_access(struct inode *inode, const struct cred *cred, int mask) argument
3311 nfs_may_open(struct inode *inode, const struct cred *cred, int openflags) argument
3338 const struct cred *cred = current_cred(); local
[all...]
H A Dinternal.h83 const struct cred *cred; member in struct:nfs_client_initdata
310 const struct cred *cred, const struct nfs_rpc_ops *rpc_ops,
319 return cred_fscmp(ctx1->cred, ctx2->cred) == 0 && ctx1->state == ctx2->state;
670 const struct cred *cred);
673 const struct cred *cred);
[all...]
H A Dnfs4client.c578 * @cred: credential to use for trunking test
588 const struct cred *cred)
631 status = nfs4_proc_setclientid_confirm(pos, &clid, cred);
745 * @cred: credential to use for trunking test
755 const struct cred *cred)
917 .cred = server->cred,
994 .cred
586 nfs40_walk_client_list(struct nfs_client *new, struct nfs_client **result, const struct cred *cred) argument
753 nfs41_walk_client_list(struct nfs_client *new, struct nfs_client **result, const struct cred *cred) argument
[all...]
H A Dnfs4namespace.c225 struct rpc_cred *cred; local
236 cred = rpcauth_lookupcred(new->cl_auth, 0);
237 if (IS_ERR(cred)) {
241 put_rpccred(cred);
/linux-master/fs/
H A Dfcntl.c100 const struct cred *cred = current_cred(); local
101 filp->f_owner.uid = cred->uid;
102 filp->f_owner.euid = cred->euid;
740 const struct cred *cred; local
744 cred = __task_cred(p);
746 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) ||
747 uid_eq(fown->uid, cred
[all...]
H A Dbinfmt_elf.c46 #include <linux/cred.h>
175 const struct cred *cred = current_cred(); local
252 NEW_AUX_ENT(AT_UID, from_kuid_munged(cred->user_ns, cred->uid));
253 NEW_AUX_ENT(AT_EUID, from_kuid_munged(cred->user_ns, cred->euid));
254 NEW_AUX_ENT(AT_GID, from_kgid_munged(cred->user_ns, cred->gid));
255 NEW_AUX_ENT(AT_EGID, from_kgid_munged(cred
1511 const struct cred *cred; local
[all...]
H A Dbinfmt_elf_fdpic.c501 const struct cred *cred = current_cred(); local
637 NEW_AUX_ENT(AT_UID, (elf_addr_t) from_kuid_munged(cred->user_ns, cred->uid));
638 NEW_AUX_ENT(AT_EUID, (elf_addr_t) from_kuid_munged(cred->user_ns, cred->euid));
639 NEW_AUX_ENT(AT_GID, (elf_addr_t) from_kgid_munged(cred->user_ns, cred->gid));
640 NEW_AUX_ENT(AT_EGID, (elf_addr_t) from_kgid_munged(cred->user_ns, cred
1318 const struct cred *cred; local
[all...]
/linux-master/fs/nfsd/
H A Dnfssvc.c277 static int nfsd_init_socks(struct net *net, const struct cred *cred) argument
286 SVC_SOCK_DEFAULTS, cred);
291 SVC_SOCK_DEFAULTS, cred);
394 static int nfsd_startup_net(struct net *net, const struct cred *cred) argument
405 ret = nfsd_init_socks(net, cred);
410 ret = lockd_up(net, cred);
771 nfsd_svc(int nrservs, struct net *net, const struct cred *cred, cons argument
[all...]
/linux-master/drivers/connector/
H A Dcn_proc.c176 const struct cred *cred; local
188 cred = __task_cred(task);
190 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid);
191 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid);
193 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid);
194 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid);
/linux-master/drivers/misc/vmw_vmci/
H A Dvmci_context.c14 #include <linux/cred.h>
83 const struct cred *cred)
148 if (cred)
149 context->cred = get_cred(cred);
481 if (context->cred)
482 put_cred(context->cred);
1206 if (context->cred)
1207 is_owner = uid_eq(context->cred
80 vmci_ctx_create(u32 cid, u32 priv_flags, uintptr_t event_hnd, int user_version, const struct cred *cred) argument
[all...]
/linux-master/fs/lockd/
H A Dclntproc.c265 nlmclnt_call(const struct cred *cred, struct nlm_rqst *req, u32 proc) argument
274 .rpc_cred = cred,
410 static int nlmclnt_async_call(const struct cred *cred, struct nlm_rqst *req, u32 proc, const struct rpc_call_ops *tk_ops) argument
415 .rpc_cred = cred,
524 const struct cred *cred = nfs_file_cred(fl->c.flc_file); local
560 status = nlmclnt_call(cred, req, NLMPROC_LOCK);
635 nlmclnt_async_call(cred, re
[all...]
/linux-master/fs/overlayfs/
H A Dinode.c9 #include <linux/cred.h>
28 const struct cred *old_cred;
162 const struct cred *old_cred;
294 const struct cred *old_cred;
329 const struct cred *old_cred;
468 const struct cred *old_cred;
484 const struct cred *old_cred;
593 const struct cred *old_cred;
651 const struct cred *old_cred;
728 const struct cred *old_cre
[all...]
/linux-master/fs/nfs/flexfilelayout/
H A Dflexfilelayout.c240 const struct cred *cred; local
244 cred = rcu_access_pointer(mirror->ro_cred);
245 put_cred(cred);
246 cred = rcu_access_pointer(mirror->rw_cred);
247 put_cred(cred);
415 struct cred *kcred;
416 const struct cred __rcu *cred; local
507 cred
[all...]
/linux-master/net/rxrpc/
H A Dkey.c483 const struct cred *cred = current_cred(); local
495 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, 0,
537 const struct cred *cred = current_cred(); local
542 GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
/linux-master/include/linux/lockd/
H A Dlockd.h73 const struct cred *h_cred;
238 const struct cred *cred);
/linux-master/security/integrity/ima/
H A Dima_api.c167 * @cred: pointer to credentials structure to validate
190 const struct cred *cred, u32 secid, int mask,
199 return ima_match_policy(idmap, inode, cred, secid, func, mask,
189 ima_get_action(struct mnt_idmap *idmap, struct inode *inode, const struct cred *cred, u32 secid, int mask, enum ima_hooks func, int *pcr, struct ima_template_desc **template_desc, const char *func_data, unsigned int *allowed_algos) argument
/linux-master/kernel/module/
H A Dkmod.c16 #include <linux/cred.h>
/linux-master/security/integrity/platform_certs/
H A Dload_powerpc.c10 #include <linux/cred.h>

Completed in 394 milliseconds

1234567891011>>