cred               23 arch/alpha/kernel/asm-offsets.c         DEFINE(TASK_CRED, offsetof(struct task_struct, cred));
cred               29 arch/alpha/kernel/asm-offsets.c         DEFINE(CRED_UID,  offsetof(struct cred, uid));
cred               30 arch/alpha/kernel/asm-offsets.c         DEFINE(CRED_EUID, offsetof(struct cred, euid));
cred               31 arch/alpha/kernel/asm-offsets.c         DEFINE(CRED_GID,  offsetof(struct cred, gid));
cred               32 arch/alpha/kernel/asm-offsets.c         DEFINE(CRED_EGID, offsetof(struct cred, egid));
cred             2313 arch/ia64/kernel/perfmon.c 	const struct cred *tcred;
cred               51 arch/mips/kernel/mips-mt-fpaff.c 	const struct cred *cred = current_cred(), *pcred;
cred               56 arch/mips/kernel/mips-mt-fpaff.c 	match = (uid_eq(cred->euid, pcred->euid) ||
cred               57 arch/mips/kernel/mips-mt-fpaff.c 		 uid_eq(cred->euid, pcred->uid));
cred              620 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	const struct cred *tcred = get_task_cred(task);
cred              621 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	const struct cred *cred = current_cred();
cred              628 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) &&
cred              629 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	    !uid_eq(cred->euid, tcred->uid) &&
cred              630 arch/x86/kernel/cpu/resctrl/rdtgroup.c 	    !uid_eq(cred->euid, tcred->suid)) {
cred               40 block/ioprio.c 	const struct cred *cred = current_cred(), *tcred;
cred               44 block/ioprio.c 	if (!uid_eq(tcred->uid, cred->euid) &&
cred               45 block/ioprio.c 	    !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) {
cred              121 drivers/connector/cn_proc.c 	const struct cred *cred;
cred              133 drivers/connector/cn_proc.c 	cred = __task_cred(task);
cred              135 drivers/connector/cn_proc.c 		ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid);
cred              136 drivers/connector/cn_proc.c 		ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid);
cred              138 drivers/connector/cn_proc.c 		ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid);
cred              139 drivers/connector/cn_proc.c 		ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid);
cred             3645 drivers/hwmon/nct6775.c 		int cred;
cred             3650 drivers/hwmon/nct6775.c 		cred = superio_inb(sioreg, 0xed);
cred             3687 drivers/hwmon/nct6775.c 					(!dsw_en || (cred & BIT(4)));
cred             3693 drivers/hwmon/nct6775.c 			pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2));
cred             3702 drivers/hwmon/nct6775.c 					(!dsw_en || (cred & BIT(4)));
cred             3711 drivers/hwmon/nct6775.c 			pwm6pin = (cr2a & BIT(3)) && (cred & BIT(2));
cred             3729 drivers/hwmon/nct6775.c 			pwm6pin |= cred & BIT(2);
cred             3743 drivers/hwmon/nct6775.c 			pwm6pin |= !(cred & BIT(2)) && (cr2a & BIT(3));
cred              519 drivers/misc/cxl/guest.c 	const struct cred *cred;
cred              543 drivers/misc/cxl/guest.c 		cred = get_current_cred();
cred              544 drivers/misc/cxl/guest.c 		if (uid_eq(cred->euid, GLOBAL_ROOT_UID))
cred              546 drivers/misc/cxl/guest.c 		put_cred(cred);
cred               64 drivers/misc/mic/cosm/cosm_main.c 	const struct cred *orig_cred;
cred               65 drivers/misc/mic/cosm/cosm_main.c 	struct cred *override_cred;
cred               83 drivers/misc/vmw_vmci/vmci_context.c 				 const struct cred *cred)
cred              148 drivers/misc/vmw_vmci/vmci_context.c 	if (cred)
cred              149 drivers/misc/vmw_vmci/vmci_context.c 		context->cred = get_cred(cred);
cred              481 drivers/misc/vmw_vmci/vmci_context.c 	if (context->cred)
cred              482 drivers/misc/vmw_vmci/vmci_context.c 		put_cred(context->cred);
cred             1209 drivers/misc/vmw_vmci/vmci_context.c 			if (context->cred)
cred             1210 drivers/misc/vmw_vmci/vmci_context.c 				is_owner = uid_eq(context->cred->uid, uid);
cred               80 drivers/misc/vmw_vmci/vmci_context.h 	const struct cred *cred;
cred              128 drivers/misc/vmw_vmci/vmci_context.h 				 const struct cred *cred);
cred              291 drivers/misc/vmw_vmci/vmci_host.c 	const struct cred *cred;
cred              313 drivers/misc/vmw_vmci/vmci_host.c 	cred = get_current_cred();
cred              317 drivers/misc/vmw_vmci/vmci_host.c 						 cred);
cred              318 drivers/misc/vmw_vmci/vmci_host.c 	put_cred(cred);
cred              597 drivers/net/ethernet/chelsio/cxgb4/sge.c 	unsigned int cred = q->avail;
cred              674 drivers/net/ethernet/chelsio/cxgb4/sge.c out:	cred = q->avail - cred;
cred              675 drivers/net/ethernet/chelsio/cxgb4/sge.c 	q->pend_cred += cred;
cred              685 drivers/net/ethernet/chelsio/cxgb4/sge.c 	return cred;
cred              610 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 	unsigned int cred = fl->avail;
cred              709 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 	cred = fl->avail - cred;
cred              710 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 	fl->pend_cred += cred;
cred              718 drivers/net/ethernet/chelsio/cxgb4vf/sge.c 	return cred;
cred               66 drivers/net/ethernet/pensando/ionic/ionic_regs.h 				      int intr_idx, u32 cred, u32 flags)
cred               68 drivers/net/ethernet/pensando/ionic/ionic_regs.h 	if (WARN_ON_ONCE(cred > IONIC_INTR_CRED_COUNT)) {
cred               69 drivers/net/ethernet/pensando/ionic/ionic_regs.h 		cred = ioread32(&intr_ctrl[intr_idx].credits);
cred               70 drivers/net/ethernet/pensando/ionic/ionic_regs.h 		cred &= IONIC_INTR_CRED_COUNT_SIGNED;
cred               73 drivers/net/ethernet/pensando/ionic/ionic_regs.h 	iowrite32(cred | flags, &intr_ctrl[intr_idx].credits);
cred               79 drivers/net/ethernet/pensando/ionic/ionic_regs.h 	u32 cred;
cred               81 drivers/net/ethernet/pensando/ionic/ionic_regs.h 	cred = ioread32(&intr_ctrl[intr_idx].credits);
cred               82 drivers/net/ethernet/pensando/ionic/ionic_regs.h 	cred &= IONIC_INTR_CRED_COUNT_SIGNED;
cred               83 drivers/net/ethernet/pensando/ionic/ionic_regs.h 	cred |= IONIC_INTR_CRED_RESET_COALESCE;
cred               84 drivers/net/ethernet/pensando/ionic/ionic_regs.h 	iowrite32(cred, &intr_ctrl[intr_idx].credits);
cred              621 drivers/net/tun.c 	const struct cred *cred = current_cred();
cred              624 drivers/net/tun.c 	return ((uid_valid(tun->owner) && !uid_eq(cred->euid, tun->owner)) ||
cred               72 drivers/usb/core/devio.c 	const struct cred *cred;
cred               97 drivers/usb/core/devio.c 	const struct cred *cred;
cred              398 drivers/usb/core/devio.c 	if (as->cred)
cred              399 drivers/usb/core/devio.c 		put_cred(as->cred);
cred              605 drivers/usb/core/devio.c 	const struct cred *cred = NULL;
cred              618 drivers/usb/core/devio.c 		cred = get_cred(as->cred);
cred              634 drivers/usb/core/devio.c 		kill_pid_usb_asyncio(signr, errno, addr, pid, cred);
cred              636 drivers/usb/core/devio.c 		put_cred(cred);
cred             1048 drivers/usb/core/devio.c 	ps->cred = get_current_cred();
cred             1093 drivers/usb/core/devio.c 	put_cred(ps->cred);
cred             1818 drivers/usb/core/devio.c 	as->cred = get_current_cred();
cred             2768 drivers/usb/core/devio.c 					     ps->disc_pid, ps->cred);
cred               38 drivers/virt/vboxguest/vboxguest_linux.c 	if (from_kuid(current_user_ns(), current->cred->uid) == 0)
cred              179 fs/aio.c       	struct cred		*creds;
cred             1593 fs/aio.c       	const struct cred *old_cred = override_creds(iocb->fsync.creds);
cred              180 fs/binfmt_elf.c 	const struct cred *cred = current_cred();
cred              255 fs/binfmt_elf.c 	NEW_AUX_ENT(AT_UID, from_kuid_munged(cred->user_ns, cred->uid));
cred              256 fs/binfmt_elf.c 	NEW_AUX_ENT(AT_EUID, from_kuid_munged(cred->user_ns, cred->euid));
cred              257 fs/binfmt_elf.c 	NEW_AUX_ENT(AT_GID, from_kgid_munged(cred->user_ns, cred->gid));
cred              258 fs/binfmt_elf.c 	NEW_AUX_ENT(AT_EGID, from_kgid_munged(cred->user_ns, cred->egid));
cred             1509 fs/binfmt_elf.c 	const struct cred *cred;
cred             1540 fs/binfmt_elf.c 	cred = __task_cred(p);
cred             1541 fs/binfmt_elf.c 	SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid));
cred             1542 fs/binfmt_elf.c 	SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid));
cred              502 fs/binfmt_elf_fdpic.c 	const struct cred *cred = current_cred();
cred              652 fs/binfmt_elf_fdpic.c 	NEW_AUX_ENT(AT_UID,	(elf_addr_t) from_kuid_munged(cred->user_ns, cred->uid));
cred              653 fs/binfmt_elf_fdpic.c 	NEW_AUX_ENT(AT_EUID,	(elf_addr_t) from_kuid_munged(cred->user_ns, cred->euid));
cred              654 fs/binfmt_elf_fdpic.c 	NEW_AUX_ENT(AT_GID,	(elf_addr_t) from_kgid_munged(cred->user_ns, cred->gid));
cred              655 fs/binfmt_elf_fdpic.c 	NEW_AUX_ENT(AT_EGID,	(elf_addr_t) from_kgid_munged(cred->user_ns, cred->egid));
cred             1381 fs/binfmt_elf_fdpic.c 	const struct cred *cred;
cred             1412 fs/binfmt_elf_fdpic.c 	cred = __task_cred(p);
cred             1413 fs/binfmt_elf_fdpic.c 	SET_UID(psinfo->pr_uid, from_kuid_munged(cred->user_ns, cred->uid));
cred             1414 fs/binfmt_elf_fdpic.c 	SET_GID(psinfo->pr_gid, from_kgid_munged(cred->user_ns, cred->gid));
cred               87 fs/cachefiles/bind.c 	const struct cred *saved_cred;
cred              553 fs/cachefiles/daemon.c 	const struct cred *saved_cred;
cred              625 fs/cachefiles/daemon.c 	const struct cred *saved_cred;
cred              124 fs/cachefiles/interface.c 	const struct cred *saved_cred;
cred              210 fs/cachefiles/interface.c 	const struct cred *saved_cred;
cred              265 fs/cachefiles/interface.c 	const struct cred *saved_cred;
cred              379 fs/cachefiles/interface.c 	const struct cred *saved_cred;
cred              409 fs/cachefiles/interface.c 	const struct cred *saved_cred;
cred              434 fs/cachefiles/interface.c 	const struct cred *saved_cred;
cred              503 fs/cachefiles/interface.c 	const struct cred *saved_cred;
cred               60 fs/cachefiles/internal.h 	const struct cred		*cache_cred;	/* security override for accessing cache */
cred              226 fs/cachefiles/internal.h 					       const struct cred **_saved_cred);
cred              229 fs/cachefiles/internal.h 					   const struct cred **_saved_cred)
cred              235 fs/cachefiles/internal.h 					 const struct cred *saved_cred)
cred               18 fs/cachefiles/security.c 	struct cred *new;
cred               77 fs/cachefiles/security.c 					const struct cred **_saved_cred)
cred               79 fs/cachefiles/security.c 	struct cred *new;
cred               33 fs/cifs/cifs_spnego.c static const struct cred *spnego_cred;
cred              108 fs/cifs/cifs_spnego.c 	const struct cred *saved_cred;
cred              192 fs/cifs/cifs_spnego.c 	struct cred *cred;
cred              204 fs/cifs/cifs_spnego.c 	cred = prepare_kernel_cred(NULL);
cred              205 fs/cifs/cifs_spnego.c 	if (!cred)
cred              209 fs/cifs/cifs_spnego.c 				GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
cred              227 fs/cifs/cifs_spnego.c 	cred->thread_keyring = keyring;
cred              228 fs/cifs/cifs_spnego.c 	cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING;
cred              229 fs/cifs/cifs_spnego.c 	spnego_cred = cred;
cred              237 fs/cifs/cifs_spnego.c 	put_cred(cred);
cred               74 fs/cifs/cifsacl.c static const struct cred *root_cred;
cred              292 fs/cifs/cifsacl.c 	const struct cred *saved_cred;
cred              350 fs/cifs/cifsacl.c 	const struct cred *saved_cred;
cred              465 fs/cifs/cifsacl.c 	struct cred *cred;
cred              478 fs/cifs/cifsacl.c 	cred = prepare_kernel_cred(NULL);
cred              479 fs/cifs/cifsacl.c 	if (!cred)
cred              483 fs/cifs/cifsacl.c 				GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
cred              499 fs/cifs/cifsacl.c 	cred->thread_keyring = keyring;
cred              500 fs/cifs/cifsacl.c 	cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING;
cred              501 fs/cifs/cifsacl.c 	root_cred = cred;
cred              509 fs/cifs/cifsacl.c 	put_cred(cred);
cred              194 fs/coredump.c  	const struct cred *cred = current_cred();
cred              272 fs/coredump.c  							  cred->uid));
cred              278 fs/coredump.c  							  cred->gid));
cred              549 fs/coredump.c  static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
cred              573 fs/coredump.c  	const struct cred *old_cred;
cred              574 fs/coredump.c  	struct cred *cred;
cred              604 fs/coredump.c  	cred = prepare_creds();
cred              605 fs/coredump.c  	if (!cred)
cred              615 fs/coredump.c  		cred->fsuid = GLOBAL_ROOT_UID;	/* Dump root private */
cred              623 fs/coredump.c  	old_cred = override_creds(cred);
cred              817 fs/coredump.c  	put_cred(cred);
cred              702 fs/ecryptfs/ecryptfs_kernel.h 			     const struct cred *cred);
cred              119 fs/ecryptfs/kthread.c 			     const struct cred *cred)
cred              134 fs/ecryptfs/kthread.c 	(*lower_file) = dentry_open(&req.path, flags, cred);
cred              107 fs/ecryptfs/main.c 	const struct cred *cred = current_cred();
cred              112 fs/ecryptfs/main.c 				      cred);
cred             1414 fs/exec.c      	bprm->cred = prepare_exec_creds();
cred             1415 fs/exec.c      	if (likely(bprm->cred))
cred             1425 fs/exec.c      	if (bprm->cred) {
cred             1427 fs/exec.c      		abort_creds(bprm->cred);
cred             1458 fs/exec.c      	commit_creds(bprm->cred);
cred             1459 fs/exec.c      	bprm->cred = NULL;
cred             1529 fs/exec.c      	bprm->cred->euid = current_euid();
cred             1530 fs/exec.c      	bprm->cred->egid = current_egid();
cred             1553 fs/exec.c      	if (!kuid_has_mapping(bprm->cred->user_ns, uid) ||
cred             1554 fs/exec.c      		 !kgid_has_mapping(bprm->cred->user_ns, gid))
cred             1559 fs/exec.c      		bprm->cred->euid = uid;
cred             1564 fs/exec.c      		bprm->cred->egid = gid;
cred              279 fs/exportfs/expfs.c 	const struct cred *cred = current_cred();
cred              313 fs/exportfs/expfs.c 	file = dentry_open(path, O_RDONLY, cred);
cred               97 fs/fcntl.c     			const struct cred *cred = current_cred();
cred               98 fs/fcntl.c     			filp->f_owner.uid = cred->uid;
cred               99 fs/fcntl.c     			filp->f_owner.euid = cred->euid;
cred              711 fs/fcntl.c     	const struct cred *cred;
cred              715 fs/fcntl.c     	cred = __task_cred(p);
cred              717 fs/fcntl.c     		uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) ||
cred              718 fs/fcntl.c     		uid_eq(fown->uid,  cred->suid) || uid_eq(fown->uid,  cred->uid)) &&
cred               96 fs/file_table.c static struct file *__alloc_file(int flags, const struct cred *cred)
cred              105 fs/file_table.c 	f->f_cred = get_cred(cred);
cred              134 fs/file_table.c struct file *alloc_empty_file(int flags, const struct cred *cred)
cred              151 fs/file_table.c 	f = __alloc_file(flags, cred);
cred              171 fs/file_table.c struct file *alloc_empty_file_noaccount(int flags, const struct cred *cred)
cred              173 fs/file_table.c 	struct file *f = __alloc_file(flags, cred);
cred              269 fs/fs_context.c 	fc->cred	= get_current_cred();
cred              276 fs/fs_context.c 		fc->user_ns = get_user_ns(fc->cred->user_ns);
cred              363 fs/fs_context.c 	get_cred(fc->cred);
cred              506 fs/fs_context.c 	put_cred(fc->cred);
cred             1086 fs/fuse/dir.c  	const struct cred *cred;
cred             1091 fs/fuse/dir.c  	cred = current_cred();
cred             1092 fs/fuse/dir.c  	if (uid_eq(cred->euid, fc->user_id) &&
cred             1093 fs/fuse/dir.c  	    uid_eq(cred->suid, fc->user_id) &&
cred             1094 fs/fuse/dir.c  	    uid_eq(cred->uid,  fc->user_id) &&
cred             1095 fs/fuse/dir.c  	    gid_eq(cred->egid, fc->group_id) &&
cred             1096 fs/fuse/dir.c  	    gid_eq(cred->sgid, fc->group_id) &&
cred             1097 fs/fuse/dir.c  	    gid_eq(cred->gid,  fc->group_id))
cred              102 fs/internal.h  extern struct file *alloc_empty_file(int, const struct cred *);
cred              103 fs/internal.h  extern struct file *alloc_empty_file_noaccount(int, const struct cred *);
cred              243 fs/io_uring.c  	const struct cred	*creds;
cred             1795 fs/io_uring.c  	const struct cred *old_cred;
cred             2197 fs/io_uring.c  	const struct cred *old_cred;
cred             2747 fs/io_uring.c  	const struct cred *old_cred;
cred               60 fs/lockd/clntlock.c 	status = lockd_up(nlm_init->net, nlm_init->cred);
cred               67 fs/lockd/clntlock.c 				   nlm_init->net, nlm_init->cred);
cred              261 fs/lockd/clntproc.c nlmclnt_call(const struct cred *cred, struct nlm_rqst *req, u32 proc)
cred              270 fs/lockd/clntproc.c 		.rpc_cred	= cred,
cred              406 fs/lockd/clntproc.c static int nlmclnt_async_call(const struct cred *cred, struct nlm_rqst *req, u32 proc, const struct rpc_call_ops *tk_ops)
cred              411 fs/lockd/clntproc.c 		.rpc_cred	= cred,
cred              515 fs/lockd/clntproc.c 	const struct cred *cred = nfs_file_cred(fl->fl_file);
cred              543 fs/lockd/clntproc.c 		status = nlmclnt_call(cred, req, NLMPROC_LOCK);
cred              612 fs/lockd/clntproc.c 	nlmclnt_async_call(cred, req, NLMPROC_UNLOCK, &nlmclnt_unlock_ops);
cred               63 fs/lockd/host.c 	const struct cred	*cred;
cred              166 fs/lockd/host.c 	host->h_cred	   = get_cred(ni->cred),
cred              223 fs/lockd/host.c 				     const struct cred *cred)
cred              235 fs/lockd/host.c 		.cred		= cred,
cred              468 fs/lockd/host.c 			.cred		= host->h_cred,
cred               85 fs/lockd/mon.c 		.cred			= current_cred(),
cred              193 fs/lockd/svc.c 				 const struct cred *cred)
cred              200 fs/lockd/svc.c 						SVC_SOCK_DEFAULTS, cred);
cred              206 fs/lockd/svc.c 			       const int family, const struct cred *cred)
cred              211 fs/lockd/svc.c 			cred);
cred              216 fs/lockd/svc.c 			cred);
cred              230 fs/lockd/svc.c 		const struct cred *cred)
cred              235 fs/lockd/svc.c 	err = create_lockd_family(serv, net, PF_INET, cred);
cred              239 fs/lockd/svc.c 	err = create_lockd_family(serv, net, PF_INET6, cred);
cred              255 fs/lockd/svc.c 		const struct cred *cred)
cred              267 fs/lockd/svc.c 	error = make_socks(serv, net, cred);
cred              470 fs/lockd/svc.c int lockd_up(struct net *net, const struct cred *cred)
cred              483 fs/lockd/svc.c 	error = lockd_up_net(serv, net, cred);
cred             3485 fs/namespace.c 	file = dentry_open(&newmount, O_PATH, fc->cred);
cred              587 fs/nfs/blocklayout/blocklayout.c 		const struct nfs4_deviceid *id, const struct cred *cred,
cred              594 fs/nfs/blocklayout/blocklayout.c 	node = nfs4_find_get_deviceid(server, id, cred, gfp_mask);
cred               44 fs/nfs/callback.c 	const struct cred *cred = current_cred();
cred               50 fs/nfs/callback.c 				cred);
cred               59 fs/nfs/callback.c 				cred);
cred              508 fs/nfs/client.c 		.cred		= cl_init->cred,
cred              561 fs/nfs/client.c 		.cred		= current_cred(),
cred              664 fs/nfs/client.c 		.cred = server->cred,
cred              934 fs/nfs/client.c 	put_cred(server->cred);
cred              955 fs/nfs/client.c 	server->cred = get_cred(current_cred());
cred             1023 fs/nfs/client.c 	server->cred = get_cred(source->cred);
cred               30 fs/nfs/delegation.c 	put_cred(delegation->cred);
cred               31 fs/nfs/delegation.c 	delegation->cred = NULL;
cred              190 fs/nfs/delegation.c void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred,
cred              196 fs/nfs/delegation.c 	const struct cred *oldcred = NULL;
cred              206 fs/nfs/delegation.c 			oldcred = delegation->cred;
cred              207 fs/nfs/delegation.c 			delegation->cred = get_cred(cred);
cred              220 fs/nfs/delegation.c 	nfs_inode_set_delegation(inode, cred, type, stateid, pagemod_limit);
cred              229 fs/nfs/delegation.c 				delegation->cred,
cred              355 fs/nfs/delegation.c int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred,
cred              374 fs/nfs/delegation.c 	delegation->cred = get_cred(cred);
cred             1062 fs/nfs/delegation.c 		const struct cred *cred)
cred             1068 fs/nfs/delegation.c 	if (!cred)
cred             1070 fs/nfs/delegation.c 	status = ops->test_and_free_expired(server, stateid, cred);
cred             1089 fs/nfs/delegation.c 	const struct cred *cred;
cred             1112 fs/nfs/delegation.c 			cred = get_cred_rcu(delegation->cred);
cred             1116 fs/nfs/delegation.c 			nfs_delegation_test_free_expired(inode, &stateid, cred);
cred             1117 fs/nfs/delegation.c 			put_cred(cred);
cred             1212 fs/nfs/delegation.c 		nfs4_stateid *dst, const struct cred **cred)
cred             1225 fs/nfs/delegation.c 		if (cred)
cred             1226 fs/nfs/delegation.c 			*cred = get_cred(delegation->cred);
cred               18 fs/nfs/delegation.h 	const struct cred *cred;
cred               40 fs/nfs/delegation.h int nfs_inode_set_delegation(struct inode *inode, const struct cred *cred,
cred               42 fs/nfs/delegation.h void nfs_inode_reclaim_delegation(struct inode *inode, const struct cred *cred,
cred               65 fs/nfs/delegation.h int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync);
cred               68 fs/nfs/delegation.h bool nfs4_copy_delegation_stateid(struct inode *inode, fmode_t flags, nfs4_stateid *dst, const struct cred **cred);
cred               71 fs/nfs/dir.c   static struct nfs_open_dir_context *alloc_nfs_open_dir_context(struct inode *dir, const struct cred *cred)
cred               81 fs/nfs/dir.c   		ctx->cred = get_cred(cred);
cred               99 fs/nfs/dir.c   	put_cred(ctx->cred);
cred              349 fs/nfs/dir.c   	const struct cred *cred = ctx->cred;
cred              356 fs/nfs/dir.c   	error = NFS_PROTO(inode)->readdir(file_dentry(file), cred, entry->cookie, pages,
cred             2173 fs/nfs/dir.c   	put_cred(entry->cred);
cred             2299 fs/nfs/dir.c   static struct nfs_access_entry *nfs_access_search_rbtree(struct inode *inode, const struct cred *cred)
cred             2306 fs/nfs/dir.c   		int cmp = cred_fscmp(cred, entry->cred);
cred             2318 fs/nfs/dir.c   static int nfs_access_get_cached(struct inode *inode, const struct cred *cred, struct nfs_access_entry *res, bool may_block)
cred             2329 fs/nfs/dir.c   		cache = nfs_access_search_rbtree(inode, cred);
cred             2348 fs/nfs/dir.c   	res->cred = cache->cred;
cred             2361 fs/nfs/dir.c   static int nfs_access_get_cached_rcu(struct inode *inode, const struct cred *cred, struct nfs_access_entry *res)
cred             2377 fs/nfs/dir.c   	    cred != cache->cred)
cred             2383 fs/nfs/dir.c   	res->cred = cache->cred;
cred             2404 fs/nfs/dir.c   		cmp = cred_fscmp(set->cred, entry->cred);
cred             2432 fs/nfs/dir.c   	cache->cred = get_cred(set->cred);
cred             2496 fs/nfs/dir.c   static int nfs_do_access(struct inode *inode, const struct cred *cred, int mask)
cred             2505 fs/nfs/dir.c   	status = nfs_access_get_cached_rcu(inode, cred, &cache);
cred             2507 fs/nfs/dir.c   		status = nfs_access_get_cached(inode, cred, &cache, may_block);
cred             2523 fs/nfs/dir.c   	cache.cred = cred;
cred             2560 fs/nfs/dir.c   int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags)
cred             2562 fs/nfs/dir.c   	return nfs_do_access(inode, cred, nfs_open_permission_mask(openflags));
cred             2585 fs/nfs/dir.c   	const struct cred *cred = current_cred();
cred             2619 fs/nfs/dir.c   	res = nfs_do_access(inode, cred, mask|MAY_NOT_BLOCK);
cred             2623 fs/nfs/dir.c   		res = nfs_do_access(inode, cred, mask);
cred              488 fs/nfs/filelayout/filelayout.c 	nfs_initiate_pgio(ds_clnt, hdr, hdr->cred,
cred              530 fs/nfs/filelayout/filelayout.c 	nfs_initiate_pgio(ds_clnt, hdr, hdr->cred,
cred              231 fs/nfs/flexfilelayout/flexfilelayout.c 	const struct cred	*cred;
cred              235 fs/nfs/flexfilelayout/flexfilelayout.c 	cred = rcu_access_pointer(mirror->ro_cred);
cred              236 fs/nfs/flexfilelayout/flexfilelayout.c 	put_cred(cred);
cred              237 fs/nfs/flexfilelayout/flexfilelayout.c 	cred = rcu_access_pointer(mirror->rw_cred);
cred              238 fs/nfs/flexfilelayout/flexfilelayout.c 	put_cred(cred);
cred              416 fs/nfs/flexfilelayout/flexfilelayout.c 		struct cred *kcred;
cred              417 fs/nfs/flexfilelayout/flexfilelayout.c 		const struct cred __rcu *cred;
cred              508 fs/nfs/flexfilelayout/flexfilelayout.c 		cred = RCU_INITIALIZER(kcred);
cred              511 fs/nfs/flexfilelayout/flexfilelayout.c 			rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred);
cred              513 fs/nfs/flexfilelayout/flexfilelayout.c 			rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred);
cred              519 fs/nfs/flexfilelayout/flexfilelayout.c 				cred = xchg(&mirror->ro_cred, cred);
cred              520 fs/nfs/flexfilelayout/flexfilelayout.c 				rcu_assign_pointer(fls->mirror_array[i]->ro_cred, cred);
cred              522 fs/nfs/flexfilelayout/flexfilelayout.c 				cred = xchg(&mirror->rw_cred, cred);
cred              523 fs/nfs/flexfilelayout/flexfilelayout.c 				rcu_assign_pointer(fls->mirror_array[i]->rw_cred, cred);
cred             1784 fs/nfs/flexfilelayout/flexfilelayout.c 	const struct cred *ds_cred;
cred             1804 fs/nfs/flexfilelayout/flexfilelayout.c 	ds_cred = ff_layout_get_ds_cred(mirror, &lseg->pls_range, hdr->cred);
cred             1854 fs/nfs/flexfilelayout/flexfilelayout.c 	const struct cred *ds_cred;
cred             1870 fs/nfs/flexfilelayout/flexfilelayout.c 	ds_cred = ff_layout_get_ds_cred(mirror, &lseg->pls_range, hdr->cred);
cred             1936 fs/nfs/flexfilelayout/flexfilelayout.c 	const struct cred *ds_cred;
cred             1956 fs/nfs/flexfilelayout/flexfilelayout.c 	ds_cred = ff_layout_get_ds_cred(mirror, &lseg->pls_range, data->cred);
cred             1966 fs/nfs/flexfilelayout/flexfilelayout.c 	data->cred = ds_cred;
cred               84 fs/nfs/flexfilelayout/flexfilelayout.h 	const struct cred __rcu		*ro_cred;
cred               85 fs/nfs/flexfilelayout/flexfilelayout.h 	const struct cred __rcu		*rw_cred;
cred              220 fs/nfs/flexfilelayout/flexfilelayout.h const struct cred *ff_layout_get_ds_cred(struct nfs4_ff_layout_mirror *mirror,
cred              222 fs/nfs/flexfilelayout/flexfilelayout.h 					 const struct cred *mdscred);
cred              282 fs/nfs/flexfilelayout/flexfilelayoutdev.c static const struct cred *
cred              285 fs/nfs/flexfilelayout/flexfilelayoutdev.c 	const struct cred *cred, __rcu **pcred;
cred              294 fs/nfs/flexfilelayout/flexfilelayoutdev.c 		cred = rcu_dereference(*pcred);
cred              295 fs/nfs/flexfilelayout/flexfilelayoutdev.c 		if (!cred)
cred              298 fs/nfs/flexfilelayout/flexfilelayoutdev.c 		cred = get_cred_rcu(cred);
cred              299 fs/nfs/flexfilelayout/flexfilelayoutdev.c 	} while(!cred);
cred              301 fs/nfs/flexfilelayout/flexfilelayoutdev.c 	return cred;
cred              418 fs/nfs/flexfilelayout/flexfilelayoutdev.c const struct cred *
cred              421 fs/nfs/flexfilelayout/flexfilelayoutdev.c 		      const struct cred *mdscred)
cred              423 fs/nfs/flexfilelayout/flexfilelayoutdev.c 	const struct cred *cred;
cred              426 fs/nfs/flexfilelayout/flexfilelayoutdev.c 		cred = ff_layout_get_mirror_cred(mirror, range->iomode);
cred              427 fs/nfs/flexfilelayout/flexfilelayoutdev.c 		if (!cred)
cred              428 fs/nfs/flexfilelayout/flexfilelayoutdev.c 			cred = get_cred(mdscred);
cred              430 fs/nfs/flexfilelayout/flexfilelayoutdev.c 		cred = get_cred(mdscred);
cred              432 fs/nfs/flexfilelayout/flexfilelayoutdev.c 	return cred;
cred              969 fs/nfs/inode.c 		ctx->cred = get_cred(filp->f_cred);
cred              971 fs/nfs/inode.c 		ctx->cred = get_current_cred();
cred             1008 fs/nfs/inode.c 	put_cred(ctx->cred);
cred             1057 fs/nfs/inode.c struct nfs_open_context *nfs_find_open_context(struct inode *inode, const struct cred *cred, fmode_t mode)
cred             1064 fs/nfs/inode.c 		if (cred != NULL && pos->cred != cred)
cred               79 fs/nfs/internal.h 	const struct cred *cred;
cred              252 fs/nfs/internal.h 		      const struct cred *cred, const struct nfs_rpc_ops *rpc_ops,
cred              267 fs/nfs/internal.h 	return cred_fscmp(ctx1->cred, ctx2->cred) == 0 && ctx1->state == ctx2->state;
cred              562 fs/nfs/internal.h 				const struct cred *cred);
cred              565 fs/nfs/internal.h 				const struct cred *cred);
cred              167 fs/nfs/mount_clnt.c 		.cred		= current_cred(),
cred              254 fs/nfs/mount_clnt.c 		.cred		= current_cred(),
cred               95 fs/nfs/nfs3client.c 		.cred = mds_srv->cred,
cred              202 fs/nfs/nfs3proc.c 		.rpc_cred	= entry->cred,
cred              631 fs/nfs/nfs3proc.c nfs3_proc_readdir(struct dentry *dentry, const struct cred *cred,
cred              652 fs/nfs/nfs3proc.c 		.rpc_cred	= cred,
cred              425 fs/nfs/nfs42proc.c 		.rpc_cred = ctx->cred,
cred               65 fs/nfs/nfs4_fs.h 			nfs4_stateid *, const struct cred *);
cred              111 fs/nfs/nfs4_fs.h 	const struct cred    *so_cred;	 /* Associated cred */
cred              217 fs/nfs/nfs4_fs.h 	int (*establish_clid)(struct nfs_client *, const struct cred *);
cred              218 fs/nfs/nfs4_fs.h 	int (*reclaim_complete)(struct nfs_client *, const struct cred *);
cred              220 fs/nfs/nfs4_fs.h 		const struct cred *);
cred              250 fs/nfs/nfs4_fs.h 	const struct cred	*cred;
cred              254 fs/nfs/nfs4_fs.h 	int (*sched_state_renewal)(struct nfs_client *, const struct cred *, unsigned);
cred              255 fs/nfs/nfs4_fs.h 	const struct cred * (*get_state_renewal_cred)(struct nfs_client *);
cred              256 fs/nfs/nfs4_fs.h 	int (*renew_lease)(struct nfs_client *, const struct cred *);
cred              261 fs/nfs/nfs4_fs.h 		struct page *, const struct cred *);
cred              262 fs/nfs/nfs4_fs.h 	int (*fsid_present)(struct inode *, const struct cred *);
cred              291 fs/nfs/nfs4_fs.h extern int nfs4_proc_setclientid(struct nfs_client *, u32, unsigned short, const struct cred *, struct nfs4_setclientid_res *);
cred              292 fs/nfs/nfs4_fs.h extern int nfs4_proc_setclientid_confirm(struct nfs_client *, struct nfs4_setclientid_res *arg, const struct cred *);
cred              294 fs/nfs/nfs4_fs.h extern int nfs4_proc_bind_conn_to_session(struct nfs_client *, const struct cred *cred);
cred              295 fs/nfs/nfs4_fs.h extern int nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cred);
cred              297 fs/nfs/nfs4_fs.h extern int nfs4_init_clientid(struct nfs_client *, const struct cred *);
cred              298 fs/nfs/nfs4_fs.h extern int nfs41_init_clientid(struct nfs_client *, const struct cred *);
cred              304 fs/nfs/nfs4_fs.h 		struct page *page, const struct cred *);
cred              305 fs/nfs/nfs4_fs.h extern int nfs4_proc_fsid_present(struct inode *, const struct cred *);
cred              319 fs/nfs/nfs4_fs.h extern int nfs4_proc_create_session(struct nfs_client *, const struct cred *);
cred              320 fs/nfs/nfs4_fs.h extern int nfs4_proc_destroy_session(struct nfs4_session *, const struct cred *);
cred              446 fs/nfs/nfs4_fs.h const struct cred *nfs4_get_clid_cred(struct nfs_client *clp);
cred              447 fs/nfs/nfs4_fs.h const struct cred *nfs4_get_machine_cred(struct nfs_client *clp);
cred              448 fs/nfs/nfs4_fs.h const struct cred *nfs4_get_renew_cred(struct nfs_client *clp);
cred              452 fs/nfs/nfs4_fs.h 			struct nfs_client **, const struct cred *);
cred              455 fs/nfs/nfs4_fs.h 			struct nfs_client **, const struct cred *);
cred              464 fs/nfs/nfs4_fs.h extern struct nfs4_state_owner *nfs4_get_state_owner(struct nfs_server *, const struct cred *, gfp_t);
cred              491 fs/nfs/nfs4_fs.h 		const struct cred **);
cred              551 fs/nfs/nfs4client.c 			   const struct cred *cred)
cred              594 fs/nfs/nfs4client.c 		status = nfs4_proc_setclientid_confirm(pos, &clid, cred);
cred              717 fs/nfs/nfs4client.c 			   const struct cred *cred)
cred              877 fs/nfs/nfs4client.c 		.cred = server->cred,
cred              941 fs/nfs/nfs4client.c 		.cred = mds_srv->cred,
cred             1122 fs/nfs/nfs4client.c 	server->cred = get_cred(current_cred());
cred             1160 fs/nfs/nfs4client.c 	server->cred = get_cred(parent_server->cred);
cred               57 fs/nfs/nfs4idmap.c static const struct cred *id_resolver_cache;
cred               72 fs/nfs/nfs4idmap.c 	const struct cred	*cred;
cred               77 fs/nfs/nfs4idmap.c 	if (idmap && idmap->cred)
cred               78 fs/nfs/nfs4idmap.c 		return idmap->cred->user_ns;
cred              198 fs/nfs/nfs4idmap.c 	struct cred *cred;
cred              205 fs/nfs/nfs4idmap.c 	cred = prepare_kernel_cred(NULL);
cred              206 fs/nfs/nfs4idmap.c 	if (!cred)
cred              210 fs/nfs/nfs4idmap.c 				GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
cred              228 fs/nfs/nfs4idmap.c 	cred->thread_keyring = keyring;
cred              229 fs/nfs/nfs4idmap.c 	cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING;
cred              230 fs/nfs/nfs4idmap.c 	id_resolver_cache = cred;
cred              238 fs/nfs/nfs4idmap.c 	put_cred(cred);
cred              289 fs/nfs/nfs4idmap.c 	if (!idmap->cred || idmap->cred->user_ns == &init_user_ns)
cred              308 fs/nfs/nfs4idmap.c 	const struct cred *saved_cred;
cred              465 fs/nfs/nfs4idmap.c 	idmap->cred = get_cred(clp->cl_rpcclient->cl_cred);
cred              489 fs/nfs/nfs4idmap.c 	put_cred(idmap->cred);
cred              506 fs/nfs/nfs4idmap.c 	put_cred(idmap->cred);
cred              176 fs/nfs/nfs4namespace.c 				struct rpc_cred *cred;
cred              187 fs/nfs/nfs4namespace.c 				cred = rpcauth_lookupcred(new->cl_auth, 0);
cred              188 fs/nfs/nfs4namespace.c 				if (IS_ERR(cred)) {
cred              192 fs/nfs/nfs4namespace.c 				put_rpccred(cred);
cred               96 fs/nfs/nfs4proc.c static int nfs4_do_setattr(struct inode *inode, const struct cred *cred,
cred              102 fs/nfs/nfs4proc.c 		const struct cred *cred,
cred              106 fs/nfs/nfs4proc.c 		const struct cred *);
cred              108 fs/nfs/nfs4proc.c 		const struct cred *, bool);
cred              364 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred              368 fs/nfs/nfs4proc.c 	ops->test_and_free_expired(server, stateid, cred);
cred              373 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred              376 fs/nfs/nfs4proc.c 	nfs4_test_and_free_stateid(server, stateid, cred);
cred              381 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred              386 fs/nfs/nfs4proc.c 	__nfs4_free_revoked_stateid(server, &tmp, cred);
cred             2559 fs/nfs/nfs4proc.c static int nfs4_opendata_access(const struct cred *cred,
cred             2586 fs/nfs/nfs4proc.c 	cache.cred = cred;
cred             2727 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             2735 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             2749 fs/nfs/nfs4proc.c 	status = nfs41_test_stateid(server, stateid, cred);
cred             2760 fs/nfs/nfs4proc.c 	nfs41_free_stateid(server, stateid, cred, true);
cred             2769 fs/nfs/nfs4proc.c 	const struct cred *cred = NULL;
cred             2789 fs/nfs/nfs4proc.c 	if (delegation->cred)
cred             2790 fs/nfs/nfs4proc.c 		cred = get_cred(delegation->cred);
cred             2792 fs/nfs/nfs4proc.c 	status = nfs41_test_and_free_expired_stateid(server, &stateid, cred);
cred             2799 fs/nfs/nfs4proc.c 	put_cred(cred);
cred             2836 fs/nfs/nfs4proc.c 			const struct cred *cred = lsp->ls_state->owner->so_cred;
cred             2846 fs/nfs/nfs4proc.c 					cred);
cred             2880 fs/nfs/nfs4proc.c 	const struct cred *cred = state->owner->so_cred;
cred             2885 fs/nfs/nfs4proc.c 	status = nfs41_test_and_free_expired_stateid(server, stateid, cred);
cred             3048 fs/nfs/nfs4proc.c 	const struct cred *cred = ctx->cred;
cred             3059 fs/nfs/nfs4proc.c 	sp = nfs4_get_state_owner(server, cred, GFP_KERNEL);
cred             3113 fs/nfs/nfs4proc.c 			status = nfs4_do_setattr(state->inode, cred,
cred             3225 fs/nfs/nfs4proc.c 			    const struct cred *cred,
cred             3233 fs/nfs/nfs4proc.c 		.rpc_cred	= cred,
cred             3235 fs/nfs/nfs4proc.c 	const struct cred *delegation_cred = NULL;
cred             3277 fs/nfs/nfs4proc.c static int nfs4_do_setattr(struct inode *inode, const struct cred *cred,
cred             3309 fs/nfs/nfs4proc.c 		err = _nfs4_do_setattr(inode, &arg, &res, cred, ctx);
cred             4132 fs/nfs/nfs4proc.c 	const struct cred *cred = NULL;
cred             4157 fs/nfs/nfs4proc.c 			cred = ctx->cred;
cred             4168 fs/nfs/nfs4proc.c 	status = nfs4_do_setattr(inode, cred, fattr, sattr, ctx, NULL, label);
cred             4355 fs/nfs/nfs4proc.c 		.rpc_cred = entry->cred,
cred             4867 fs/nfs/nfs4proc.c static int _nfs4_proc_readdir(struct dentry *dentry, const struct cred *cred,
cred             4884 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             4905 fs/nfs/nfs4proc.c static int nfs4_proc_readdir(struct dentry *dentry, const struct cred *cred,
cred             4913 fs/nfs/nfs4proc.c 		err = _nfs4_proc_readdir(dentry, cred, cookie,
cred             5440 fs/nfs/nfs4proc.c static int nfs4_proc_async_renew(struct nfs_client *clp, const struct cred *cred, unsigned renew_flags)
cred             5445 fs/nfs/nfs4proc.c 		.rpc_cred	= cred,
cred             5464 fs/nfs/nfs4proc.c static int nfs4_proc_renew(struct nfs_client *clp, const struct cred *cred)
cred             5469 fs/nfs/nfs4proc.c 		.rpc_cred	= cred,
cred             6081 fs/nfs/nfs4proc.c 		unsigned short port, const struct cred *cred,
cred             6094 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             6155 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             6160 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             6298 fs/nfs/nfs4proc.c static int _nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync)
cred             6305 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             6336 fs/nfs/nfs4proc.c 	data->lr.roc = pnfs_roc(inode, &data->lr.arg, &data->lr.res, cred);
cred             6365 fs/nfs/nfs4proc.c int nfs4_proc_delegreturn(struct inode *inode, const struct cred *cred, const nfs4_stateid *stateid, int issync)
cred             6371 fs/nfs/nfs4proc.c 		err = _nfs4_proc_delegreturn(inode, cred, stateid, issync);
cred             6614 fs/nfs/nfs4proc.c 		.rpc_cred = ctx->cred,
cred             7466 fs/nfs/nfs4proc.c 				     struct page *page, const struct cred *cred)
cred             7490 fs/nfs/nfs4proc.c 		.rpc_cred	= cred,
cred             7523 fs/nfs/nfs4proc.c 				     struct page *page, const struct cred *cred)
cred             7544 fs/nfs/nfs4proc.c 		.rpc_cred	= cred,
cred             7582 fs/nfs/nfs4proc.c 			    struct page *page, const struct cred *cred)
cred             7600 fs/nfs/nfs4proc.c 		status = ops->get_locations(inode, locations, page, cred);
cred             7615 fs/nfs/nfs4proc.c static int _nfs40_proc_fsid_present(struct inode *inode, const struct cred *cred)
cred             7632 fs/nfs/nfs4proc.c 		.rpc_cred	= cred,
cred             7661 fs/nfs/nfs4proc.c static int _nfs41_proc_fsid_present(struct inode *inode, const struct cred *cred)
cred             7674 fs/nfs/nfs4proc.c 		.rpc_cred	= cred,
cred             7708 fs/nfs/nfs4proc.c int nfs4_proc_fsid_present(struct inode *inode, const struct cred *cred)
cred             7726 fs/nfs/nfs4proc.c 		status = ops->fsid_present(inode, cred);
cred             7770 fs/nfs/nfs4proc.c 	const struct cred *cred = NULL;
cred             7776 fs/nfs/nfs4proc.c 		cred = nfs4_get_clid_cred(clp);
cred             7777 fs/nfs/nfs4proc.c 		msg.rpc_cred = cred;
cred             7788 fs/nfs/nfs4proc.c 	put_cred(cred);
cred             7886 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             7900 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             7949 fs/nfs/nfs4proc.c 	const struct cred *cred;
cred             7959 fs/nfs/nfs4proc.c 	return nfs4_proc_bind_one_conn_to_session(clnt, xprt, p->clp, p->cred);
cred             7962 fs/nfs/nfs4proc.c int nfs4_proc_bind_conn_to_session(struct nfs_client *clp, const struct cred *cred)
cred             7966 fs/nfs/nfs4proc.c 		.cred = cred,
cred             8128 fs/nfs/nfs4proc.c nfs4_run_exchange_id(struct nfs_client *clp, const struct cred *cred,
cred             8133 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             8224 fs/nfs/nfs4proc.c static int _nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cred,
cred             8233 fs/nfs/nfs4proc.c 	task = nfs4_run_exchange_id(clp, cred, sp4_how, NULL);
cred             8294 fs/nfs/nfs4proc.c int nfs4_proc_exchange_id(struct nfs_client *clp, const struct cred *cred)
cred             8302 fs/nfs/nfs4proc.c 		status = _nfs4_proc_exchange_id(clp, cred, SP4_MACH_CRED);
cred             8308 fs/nfs/nfs4proc.c 	return _nfs4_proc_exchange_id(clp, cred, SP4_NONE);
cred             8341 fs/nfs/nfs4proc.c 	task = nfs4_run_exchange_id(adata->clp, adata->cred, sp4_how, xprt);
cred             8358 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             8363 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             8377 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             8383 fs/nfs/nfs4proc.c 		ret = _nfs4_proc_destroy_clientid(clp, cred);
cred             8398 fs/nfs/nfs4proc.c 	const struct cred *cred;
cred             8407 fs/nfs/nfs4proc.c 	cred = nfs4_get_clid_cred(clp);
cred             8408 fs/nfs/nfs4proc.c 	ret = nfs4_proc_destroy_clientid(clp, cred);
cred             8409 fs/nfs/nfs4proc.c 	put_cred(cred);
cred             8623 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             8638 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             8676 fs/nfs/nfs4proc.c int nfs4_proc_create_session(struct nfs_client *clp, const struct cred *cred)
cred             8684 fs/nfs/nfs4proc.c 	status = _nfs4_proc_create_session(clp, cred);
cred             8707 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             8712 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             8810 fs/nfs/nfs4proc.c 		const struct cred *cred,
cred             8817 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             8853 fs/nfs/nfs4proc.c static int nfs41_proc_async_sequence(struct nfs_client *clp, const struct cred *cred, unsigned renew_flags)
cred             8860 fs/nfs/nfs4proc.c 	task = _nfs41_proc_sequence(clp, cred, NULL, false);
cred             8869 fs/nfs/nfs4proc.c static int nfs4_proc_sequence(struct nfs_client *clp, const struct cred *cred)
cred             8874 fs/nfs/nfs4proc.c 	task = _nfs41_proc_sequence(clp, cred, NULL, true);
cred             8963 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             8968 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             9139 fs/nfs/nfs4proc.c 		.rpc_cred = lgp->cred,
cred             9280 fs/nfs/nfs4proc.c 		.rpc_cred = lrp->cred,
cred             9318 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             9332 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             9350 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             9357 fs/nfs/nfs4proc.c 					_nfs4_proc_getdeviceinfo(server, pdev, cred),
cred             9407 fs/nfs/nfs4proc.c 	put_cred(data->cred);
cred             9425 fs/nfs/nfs4proc.c 		.rpc_cred = data->cred,
cred             9495 fs/nfs/nfs4proc.c 	const struct cred *cred = NULL;
cred             9502 fs/nfs/nfs4proc.c 		cred = nfs4_get_clid_cred(server->nfs_client);
cred             9503 fs/nfs/nfs4proc.c 		msg.rpc_cred = cred;
cred             9511 fs/nfs/nfs4proc.c 	put_cred(cred);
cred             9626 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             9637 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             9687 fs/nfs/nfs4proc.c 		const struct cred *cred)
cred             9694 fs/nfs/nfs4proc.c 		err = _nfs41_test_stateid(server, stateid, cred);
cred             9751 fs/nfs/nfs4proc.c 		const struct cred *cred,
cred             9756 fs/nfs/nfs4proc.c 		.rpc_cred = cred,
cred             9792 fs/nfs/nfs4proc.c 	const struct cred *cred = lsp->ls_state->owner->so_cred;
cred             9794 fs/nfs/nfs4proc.c 	nfs41_free_stateid(server, &lsp->ls_stateid, cred, false);
cred               60 fs/nfs/nfs4renewd.c 	const struct cred *cred;
cred               81 fs/nfs/nfs4renewd.c 		cred = ops->get_state_renewal_cred(clp);
cred               82 fs/nfs/nfs4renewd.c 		if (cred == NULL) {
cred               92 fs/nfs/nfs4renewd.c 			ret = ops->sched_state_renewal(clp, cred, renew_flags);
cred               93 fs/nfs/nfs4renewd.c 			put_cred(cred);
cred              580 fs/nfs/nfs4session.c 	const struct cred *cred;
cred              582 fs/nfs/nfs4session.c 	cred = nfs4_get_clid_cred(session->clp);
cred              583 fs/nfs/nfs4session.c 	nfs4_proc_destroy_session(session, cred);
cred              584 fs/nfs/nfs4session.c 	put_cred(cred);
cred              109 fs/nfs/nfs4state.c int nfs4_init_clientid(struct nfs_client *clp, const struct cred *cred)
cred              125 fs/nfs/nfs4state.c 	status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid);
cred              132 fs/nfs/nfs4state.c 	status = nfs4_proc_setclientid_confirm(clp, &clid, cred);
cred              156 fs/nfs/nfs4state.c 				   const struct cred *cred)
cred              170 fs/nfs/nfs4state.c 	status = nfs4_proc_setclientid(clp, NFS4_CALLBACK, port, cred, &clid);
cred              176 fs/nfs/nfs4state.c 	status = nfs40_walk_client_list(clp, result, cred);
cred              190 fs/nfs/nfs4state.c const struct cred *nfs4_get_machine_cred(struct nfs_client *clp)
cred              203 fs/nfs/nfs4state.c static const struct cred *
cred              206 fs/nfs/nfs4state.c 	const struct cred *cred = NULL;
cred              216 fs/nfs/nfs4state.c 		cred = get_cred(sp->so_cred);
cred              219 fs/nfs/nfs4state.c 	return cred;
cred              229 fs/nfs/nfs4state.c const struct cred *nfs4_get_renew_cred(struct nfs_client *clp)
cred              231 fs/nfs/nfs4state.c 	const struct cred *cred = NULL;
cred              235 fs/nfs/nfs4state.c 	cred = nfs4_get_machine_cred(clp);
cred              236 fs/nfs/nfs4state.c 	if (cred != NULL)
cred              242 fs/nfs/nfs4state.c 		cred = nfs4_get_renew_cred_server_locked(server);
cred              243 fs/nfs/nfs4state.c 		if (cred != NULL)
cred              250 fs/nfs/nfs4state.c 	return cred;
cred              317 fs/nfs/nfs4state.c int nfs41_init_clientid(struct nfs_client *clp, const struct cred *cred)
cred              323 fs/nfs/nfs4state.c 	status = nfs4_proc_exchange_id(clp, cred);
cred              328 fs/nfs/nfs4state.c 	status = nfs4_proc_create_session(clp, cred);
cred              352 fs/nfs/nfs4state.c 				   const struct cred *cred)
cred              356 fs/nfs/nfs4state.c 	status = nfs4_proc_exchange_id(clp, cred);
cred              360 fs/nfs/nfs4state.c 	status = nfs41_walk_client_list(clp, result, cred);
cred              392 fs/nfs/nfs4state.c const struct cred *nfs4_get_clid_cred(struct nfs_client *clp)
cred              394 fs/nfs/nfs4state.c 	const struct cred *cred;
cred              396 fs/nfs/nfs4state.c 	cred = nfs4_get_machine_cred(clp);
cred              397 fs/nfs/nfs4state.c 	return cred;
cred              401 fs/nfs/nfs4state.c nfs4_find_state_owner_locked(struct nfs_server *server, const struct cred *cred)
cred              411 fs/nfs/nfs4state.c 		cmp = cred_fscmp(cred, sp->so_cred);
cred              490 fs/nfs/nfs4state.c 		const struct cred *cred,
cred              505 fs/nfs/nfs4state.c 	sp->so_cred = get_cred(cred);
cred              573 fs/nfs/nfs4state.c 					      const struct cred *cred,
cred              580 fs/nfs/nfs4state.c 	sp = nfs4_find_state_owner_locked(server, cred);
cred              584 fs/nfs/nfs4state.c 	new = nfs4_alloc_state_owner(server, cred, gfp_flags);
cred             1041 fs/nfs/nfs4state.c 		nfs4_stateid *dst, const struct cred **cred)
cred             1047 fs/nfs/nfs4state.c 	if (cred != NULL)
cred             1048 fs/nfs/nfs4state.c 		*cred = NULL;
cred             1054 fs/nfs/nfs4state.c 	if (nfs4_copy_delegation_stateid(state->inode, fmode, dst, cred)) {
cred             1752 fs/nfs/nfs4state.c 				 const struct cred *cred)
cred             1756 fs/nfs/nfs4state.c 		return ops->reclaim_complete(clp, cred);
cred             1803 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             1809 fs/nfs/nfs4state.c 	cred = nfs4_get_clid_cred(clp);
cred             1810 fs/nfs/nfs4state.c 	err = nfs4_reclaim_complete(clp, ops, cred);
cred             1811 fs/nfs/nfs4state.c 	put_cred(cred);
cred             1909 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             1917 fs/nfs/nfs4state.c 	cred = ops->get_state_renewal_cred(clp);
cred             1918 fs/nfs/nfs4state.c 	if (cred == NULL) {
cred             1919 fs/nfs/nfs4state.c 		cred = nfs4_get_clid_cred(clp);
cred             1921 fs/nfs/nfs4state.c 		if (cred == NULL)
cred             1924 fs/nfs/nfs4state.c 	status = ops->renew_lease(clp, cred);
cred             1925 fs/nfs/nfs4state.c 	put_cred(cred);
cred             1984 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             1992 fs/nfs/nfs4state.c 	cred = nfs4_get_clid_cred(clp);
cred             1993 fs/nfs/nfs4state.c 	if (cred == NULL)
cred             1995 fs/nfs/nfs4state.c 	status = ops->establish_clid(clp, cred);
cred             1996 fs/nfs/nfs4state.c 	put_cred(cred);
cred             2043 fs/nfs/nfs4state.c static int nfs4_try_migration(struct nfs_server *server, const struct cred *cred)
cred             2065 fs/nfs/nfs4state.c 	result = nfs4_proc_get_locations(inode, locations, page, cred);
cred             2115 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             2120 fs/nfs/nfs4state.c 	cred = ops->get_state_renewal_cred(clp);
cred             2121 fs/nfs/nfs4state.c 	if (cred == NULL)
cred             2139 fs/nfs/nfs4state.c 		status = nfs4_try_migration(server, cred);
cred             2141 fs/nfs/nfs4state.c 			put_cred(cred);
cred             2147 fs/nfs/nfs4state.c 	put_cred(cred);
cred             2161 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             2166 fs/nfs/nfs4state.c 	cred = ops->get_state_renewal_cred(clp);
cred             2167 fs/nfs/nfs4state.c 	if (cred == NULL)
cred             2184 fs/nfs/nfs4state.c 		status = nfs4_proc_fsid_present(inode, cred);
cred             2187 fs/nfs/nfs4state.c 		if (nfs4_try_migration(server, cred) == -NFS4ERR_LEASE_MOVED)
cred             2194 fs/nfs/nfs4state.c 	put_cred(cred);
cred             2217 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             2228 fs/nfs/nfs4state.c 	cred = nfs4_get_clid_cred(clp);
cred             2229 fs/nfs/nfs4state.c 	if (cred == NULL)
cred             2232 fs/nfs/nfs4state.c 	status = ops->detect_trunking(clp, result, cred);
cred             2233 fs/nfs/nfs4state.c 	put_cred(cred);
cred             2423 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             2431 fs/nfs/nfs4state.c 	cred = nfs4_get_clid_cred(clp);
cred             2432 fs/nfs/nfs4state.c 	status = nfs4_proc_destroy_session(clp->cl_session, cred);
cred             2450 fs/nfs/nfs4state.c 	status = nfs4_proc_create_session(clp, cred);
cred             2461 fs/nfs/nfs4state.c 	put_cred(cred);
cred             2467 fs/nfs/nfs4state.c 	const struct cred *cred;
cred             2475 fs/nfs/nfs4state.c 	cred = nfs4_get_clid_cred(clp);
cred             2476 fs/nfs/nfs4state.c 	ret = nfs4_proc_bind_conn_to_session(clp, cred);
cred             2477 fs/nfs/nfs4state.c 	put_cred(cred);
cred               51 fs/nfs/pagelist.c 	hdr->cred = nfs_req_openctx(hdr->req)->cred;
cred              614 fs/nfs/pagelist.c 		      const struct cred *cred, const struct nfs_rpc_ops *rpc_ops,
cred              621 fs/nfs/pagelist.c 		.rpc_cred = cred,
cred              834 fs/nfs/pagelist.c 					hdr->cred,
cred             1064 fs/nfs/pnfs.c  	lgp->cred = get_cred(ctx->cred);
cred             1075 fs/nfs/pnfs.c  	put_cred(lgp->cred);
cred             1191 fs/nfs/pnfs.c  	lrp->cred = lo->plh_lc_cred;
cred             1350 fs/nfs/pnfs.c  		const struct cred *cred)
cred             1428 fs/nfs/pnfs.c  	if (!layoutreturn || cred_fscmp(cred, lo->plh_lc_cred) != 0)
cred             1660 fs/nfs/pnfs.c  	lo->plh_lc_cred = get_cred(ctx->cred);
cred             3010 fs/nfs/pnfs.c  	data->cred = get_cred(nfsi->layout->plh_lc_cred);
cred             3023 fs/nfs/pnfs.c  			put_cred(data->cred);
cred              204 fs/nfs/pnfs.h  	const struct cred	*plh_lc_cred; /* layoutcommit cred */
cred              234 fs/nfs/pnfs.h  				   const struct cred *cred);
cred              284 fs/nfs/pnfs.h  		const struct cred *cred);
cred              351 fs/nfs/pnfs.h  		const struct nfs4_deviceid *id, const struct cred *cred,
cred              703 fs/nfs/pnfs.h  		const struct cred *cred)
cred               97 fs/nfs/pnfs_dev.c 		const struct cred *cred, gfp_t gfp_flags)
cred              140 fs/nfs/pnfs_dev.c 	rc = nfs4_proc_getdeviceinfo(server, pdev, cred);
cred              187 fs/nfs/pnfs_dev.c 		const struct nfs4_deviceid *id, const struct cred *cred,
cred              197 fs/nfs/pnfs_dev.c 	new = nfs4_get_device_info(server, id, cred, gfp_mask);
cred              679 fs/nfs/pnfs_nfs.c 				.cred = nfs4_get_clid_cred(clp),
cred              693 fs/nfs/pnfs_nfs.c 			if (xprtdata.cred)
cred              694 fs/nfs/pnfs_nfs.c 				put_cred(xprtdata.cred);
cred              493 fs/nfs/proc.c  nfs_proc_readdir(struct dentry *dentry, const struct cred *cred,
cred              506 fs/nfs/proc.c  		.rpc_cred	= cred,
cred               34 fs/nfs/unlink.c 	put_cred(data->cred);
cred               94 fs/nfs/unlink.c 		.rpc_cred = data->cred,
cred              181 fs/nfs/unlink.c 	data->cred = get_current_cred();
cred              202 fs/nfs/unlink.c 	put_cred(data->cred);
cred              306 fs/nfs/unlink.c 	put_cred(data->cred);
cred              352 fs/nfs/unlink.c 	data->cred = get_current_cred();
cred              356 fs/nfs/unlink.c 	msg.rpc_cred = data->cred;
cred             1267 fs/nfs/write.c 	struct rpc_cred *cred = ctx->ll_cred;
cred             1269 fs/nfs/write.c 		.cred = ctx->cred,
cred             1272 fs/nfs/write.c 	if (cred && !cred->cr_ops->crmatch(&acred, cred, 0)) {
cred             1273 fs/nfs/write.c 		put_rpccred(cred);
cred             1275 fs/nfs/write.c 		cred = NULL;
cred             1277 fs/nfs/write.c 	if (!cred)
cred             1278 fs/nfs/write.c 		cred = auth->au_ops->lookup_cred(auth, &acred, 0);
cred             1279 fs/nfs/write.c 	if (!cred || IS_ERR(cred))
cred             1281 fs/nfs/write.c 	ctx->ll_cred = cred;
cred             1282 fs/nfs/write.c 	return !!(cred->cr_ops->crkey_timeout &&
cred             1283 fs/nfs/write.c 		  cred->cr_ops->crkey_timeout(cred));
cred             1699 fs/nfs/write.c 		.rpc_cred = data->cred,
cred             1757 fs/nfs/write.c 	data->cred	  = ctx->cred;
cred               25 fs/nfsd/auth.c 	struct cred *new;
cred              714 fs/nfsd/filecache.c nfsd_match_cred(const struct cred *c1, const struct cred *c2)
cred               36 fs/nfsd/filecache.h 	const struct cred	*nf_cred;
cred              829 fs/nfsd/nfs4callback.c static const struct cred *get_backchannel_cred(struct nfs4_client *clp, struct rpc_clnt *client, struct nfsd4_session *ses)
cred              837 fs/nfsd/nfs4callback.c 		struct cred *kcred;
cred              866 fs/nfsd/nfs4callback.c 		.cred		= current_cred(),
cred              869 fs/nfsd/nfs4callback.c 	const struct cred *cred;
cred              898 fs/nfsd/nfs4callback.c 	cred = get_backchannel_cred(clp, client, ses);
cred              899 fs/nfsd/nfs4callback.c 	if (!cred) {
cred              904 fs/nfsd/nfs4callback.c 	clp->cl_cb_cred = cred;
cred               73 fs/nfsd/nfs4recover.c nfs4_save_creds(const struct cred **original_creds)
cred               75 fs/nfsd/nfs4recover.c 	struct cred *new;
cred               89 fs/nfsd/nfs4recover.c nfs4_reset_creds(const struct cred *original)
cred              202 fs/nfsd/nfs4recover.c 	const struct cred *original_cred;
cred              299 fs/nfsd/nfs4recover.c 	const struct cred *original_cred;
cred              395 fs/nfsd/nfs4recover.c 	const struct cred *original_cred;
cred              535 fs/nfsd/nfs4recover.c 	const struct cred *original_cred;
cred              724 fs/nfsd/nfsctl.c static ssize_t __write_ports_addfd(char *buf, struct net *net, const struct cred *cred)
cred              743 fs/nfsd/nfsctl.c 	err = svc_addsock(nn->nfsd_serv, fd, buf, SIMPLE_TRANSACTION_LIMIT, cred);
cred              758 fs/nfsd/nfsctl.c static ssize_t __write_ports_addxprt(char *buf, struct net *net, const struct cred *cred)
cred              776 fs/nfsd/nfsctl.c 				PF_INET, port, SVC_SOCK_ANONYMOUS, cred);
cred              781 fs/nfsd/nfsctl.c 				PF_INET6, port, SVC_SOCK_ANONYMOUS, cred);
cred               78 fs/nfsd/nfsd.h int		nfsd_svc(int nrservs, struct net *net, const struct cred *cred);
cred              130 fs/nfsd/nfsd.h 	const struct cred *cred = rqstp->rq_xprt->xpt_cred;
cred              131 fs/nfsd/nfsd.h 	return cred ? cred->user_ns : &init_user_ns;
cred              228 fs/nfsd/nfsfh.c 		struct cred *new = prepare_creds();
cred              286 fs/nfsd/nfssvc.c static int nfsd_init_socks(struct net *net, const struct cred *cred)
cred              295 fs/nfsd/nfssvc.c 					SVC_SOCK_DEFAULTS, cred);
cred              300 fs/nfsd/nfssvc.c 					SVC_SOCK_DEFAULTS, cred);
cred              375 fs/nfsd/nfssvc.c static int nfsd_startup_net(int nrservs, struct net *net, const struct cred *cred)
cred              386 fs/nfsd/nfssvc.c 	ret = nfsd_init_socks(net, cred);
cred              391 fs/nfsd/nfssvc.c 		ret = lockd_up(net, cred);
cred              725 fs/nfsd/nfssvc.c nfsd_svc(int nrservs, struct net *net, const struct cred *cred)
cred              747 fs/nfsd/nfssvc.c 	error = nfsd_startup_net(nrservs, net, cred);
cred              336 fs/nfsd/state.h 	const struct cred	*cl_cb_cred;
cred              350 fs/open.c      	const struct cred *old_cred;
cred              351 fs/open.c      	struct cred *override_cred;
cred              915 fs/open.c      			 const struct cred *cred)
cred              920 fs/open.c      	validate_creds(cred);
cred              925 fs/open.c      	f = alloc_empty_file(flags, cred);
cred              938 fs/open.c      				struct inode *inode, const struct cred *cred)
cred              940 fs/open.c      	struct file *f = alloc_empty_file_noaccount(flags, cred);
cred              496 fs/overlayfs/copy_up.c 	const struct cred *old;
cred              497 fs/overlayfs/copy_up.c 	struct cred *new;
cred              854 fs/overlayfs/copy_up.c 	const struct cred *old_cred = ovl_override_creds(dentry->d_sb);
cred              539 fs/overlayfs/dir.c 	const struct cred *old_cred;
cred              540 fs/overlayfs/dir.c 	struct cred *override_cred;
cred              653 fs/overlayfs/dir.c 	const struct cred *old_cred;
cred              825 fs/overlayfs/dir.c 	const struct cred *old_cred;
cred             1039 fs/overlayfs/dir.c 	const struct cred *old_cred = NULL;
cred               29 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              148 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              232 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              259 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              297 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              319 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              351 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              373 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              393 fs/overlayfs/file.c 	const struct cred *old_cred;
cred              561 fs/overlayfs/file.c 	const struct cred *old_cred;
cred               21 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              147 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              275 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              309 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              333 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              375 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              402 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              433 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              468 fs/overlayfs/inode.c 	const struct cred *old_cred;
cred              817 fs/overlayfs/namei.c 	const struct cred *old_cred;
cred             1120 fs/overlayfs/namei.c 	const struct cred *old_cred;
cred              207 fs/overlayfs/overlayfs.h const struct cred *ovl_override_creds(struct super_block *sb);
cred               63 fs/overlayfs/ovl_entry.h 	const struct cred *creator_cred;
cred              272 fs/overlayfs/readdir.c 	const struct cred *old_cred;
cred              923 fs/overlayfs/readdir.c 	const struct cred *old_cred;
cred             1575 fs/overlayfs/super.c 	struct cred *cred;
cred             1583 fs/overlayfs/super.c 	ofs->creator_cred = cred = prepare_creds();
cred             1584 fs/overlayfs/super.c 	if (!cred)
cred             1677 fs/overlayfs/super.c 	cap_lower(cred->cap_effective, CAP_SYS_RESOURCE);
cred               36 fs/overlayfs/util.c const struct cred *ovl_override_creds(struct super_block *sb)
cred              753 fs/overlayfs/util.c 	const struct cred *old_cred;
cred              808 fs/overlayfs/util.c 		const struct cred *old_cred;
cred              159 fs/proc/array.c 	const struct cred *cred;
cred              173 fs/proc/array.c 	cred = get_task_cred(p);
cred              193 fs/proc/array.c 	seq_put_decimal_ull(m, "\nUid:\t", from_kuid_munged(user_ns, cred->uid));
cred              194 fs/proc/array.c 	seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->euid));
cred              195 fs/proc/array.c 	seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->suid));
cred              196 fs/proc/array.c 	seq_put_decimal_ull(m, "\t", from_kuid_munged(user_ns, cred->fsuid));
cred              197 fs/proc/array.c 	seq_put_decimal_ull(m, "\nGid:\t", from_kgid_munged(user_ns, cred->gid));
cred              198 fs/proc/array.c 	seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->egid));
cred              199 fs/proc/array.c 	seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->sgid));
cred              200 fs/proc/array.c 	seq_put_decimal_ull(m, "\t", from_kgid_munged(user_ns, cred->fsgid));
cred              204 fs/proc/array.c 	group_info = cred->group_info;
cred              208 fs/proc/array.c 	put_cred(cred);
cred              320 fs/proc/array.c 	const struct cred *cred;
cred              325 fs/proc/array.c 	cred = __task_cred(p);
cred              326 fs/proc/array.c 	cap_inheritable	= cred->cap_inheritable;
cred              327 fs/proc/array.c 	cap_permitted	= cred->cap_permitted;
cred              328 fs/proc/array.c 	cap_effective	= cred->cap_effective;
cred              329 fs/proc/array.c 	cap_bset	= cred->cap_bset;
cred              330 fs/proc/array.c 	cap_ambient	= cred->cap_ambient;
cred             1694 fs/proc/base.c 	const struct cred *cred;
cred             1706 fs/proc/base.c 	cred = __task_cred(task);
cred             1707 fs/proc/base.c 	uid = cred->euid;
cred             1708 fs/proc/base.c 	gid = cred->egid;
cred              184 fs/xfs/xfs_ioctl.c 	const struct cred	*cred = current_cred();
cred              239 fs/xfs/xfs_ioctl.c 	filp = dentry_open(&path, hreq->oflags, cred);
cred               20 include/keys/request_key_auth-type.h 	const struct cred	*cred;
cred              373 include/linux/audit.h 				  const struct cred *new,
cred              374 include/linux/audit.h 				  const struct cred *old);
cred              375 include/linux/audit.h extern void __audit_log_capset(const struct cred *new, const struct cred *old);
cred              450 include/linux/audit.h 				       const struct cred *new,
cred              451 include/linux/audit.h 				       const struct cred *old)
cred              458 include/linux/audit.h static inline void audit_log_capset(const struct cred *new,
cred              459 include/linux/audit.h 				   const struct cred *old)
cred              611 include/linux/audit.h 				       const struct cred *new,
cred              612 include/linux/audit.h 				       const struct cred *old)
cred              616 include/linux/audit.h static inline void audit_log_capset(const struct cred *new,
cred              617 include/linux/audit.h 				    const struct cred *old)
cred               53 include/linux/binfmts.h 	struct cred *cred;	/* new credentials */
cred               19 include/linux/cred.h struct cred;
cred               66 include/linux/cred.h extern void set_groups(struct cred *, struct group_info *);
cred              155 include/linux/cred.h extern void __put_cred(struct cred *);
cred              158 include/linux/cred.h extern const struct cred *get_task_cred(struct task_struct *);
cred              159 include/linux/cred.h extern struct cred *cred_alloc_blank(void);
cred              160 include/linux/cred.h extern struct cred *prepare_creds(void);
cred              161 include/linux/cred.h extern struct cred *prepare_exec_creds(void);
cred              162 include/linux/cred.h extern int commit_creds(struct cred *);
cred              163 include/linux/cred.h extern void abort_creds(struct cred *);
cred              164 include/linux/cred.h extern const struct cred *override_creds(const struct cred *);
cred              165 include/linux/cred.h extern void revert_creds(const struct cred *);
cred              166 include/linux/cred.h extern struct cred *prepare_kernel_cred(struct task_struct *);
cred              167 include/linux/cred.h extern int change_create_files_as(struct cred *, struct inode *);
cred              168 include/linux/cred.h extern int set_security_override(struct cred *, u32);
cred              169 include/linux/cred.h extern int set_security_override_from_ctx(struct cred *, const char *);
cred              170 include/linux/cred.h extern int set_create_files_as(struct cred *, struct inode *);
cred              171 include/linux/cred.h extern int cred_fscmp(const struct cred *, const struct cred *);
cred              178 include/linux/cred.h extern void __invalid_creds(const struct cred *, const char *, unsigned);
cred              182 include/linux/cred.h extern bool creds_are_invalid(const struct cred *cred);
cred              184 include/linux/cred.h static inline void __validate_creds(const struct cred *cred,
cred              187 include/linux/cred.h 	if (unlikely(creds_are_invalid(cred)))
cred              188 include/linux/cred.h 		__invalid_creds(cred, file, line);
cred              191 include/linux/cred.h #define validate_creds(cred)				\
cred              193 include/linux/cred.h 	__validate_creds((cred), __FILE__, __LINE__);	\
cred              203 include/linux/cred.h static inline void validate_creds(const struct cred *cred)
cred              214 include/linux/cred.h static inline bool cap_ambient_invariant_ok(const struct cred *cred)
cred              216 include/linux/cred.h 	return cap_issubset(cred->cap_ambient,
cred              217 include/linux/cred.h 			    cap_intersect(cred->cap_permitted,
cred              218 include/linux/cred.h 					  cred->cap_inheritable));
cred              228 include/linux/cred.h static inline struct cred *get_new_cred(struct cred *cred)
cred              230 include/linux/cred.h 	atomic_inc(&cred->usage);
cred              231 include/linux/cred.h 	return cred;
cred              247 include/linux/cred.h static inline const struct cred *get_cred(const struct cred *cred)
cred              249 include/linux/cred.h 	struct cred *nonconst_cred = (struct cred *) cred;
cred              250 include/linux/cred.h 	if (!cred)
cred              251 include/linux/cred.h 		return cred;
cred              252 include/linux/cred.h 	validate_creds(cred);
cred              257 include/linux/cred.h static inline const struct cred *get_cred_rcu(const struct cred *cred)
cred              259 include/linux/cred.h 	struct cred *nonconst_cred = (struct cred *) cred;
cred              260 include/linux/cred.h 	if (!cred)
cred              264 include/linux/cred.h 	validate_creds(cred);
cred              266 include/linux/cred.h 	return cred;
cred              280 include/linux/cred.h static inline void put_cred(const struct cred *_cred)
cred              282 include/linux/cred.h 	struct cred *cred = (struct cred *) _cred;
cred              284 include/linux/cred.h 	if (cred) {
cred              285 include/linux/cred.h 		validate_creds(cred);
cred              286 include/linux/cred.h 		if (atomic_dec_and_test(&(cred)->usage))
cred              287 include/linux/cred.h 			__put_cred(cred);
cred              298 include/linux/cred.h 	rcu_dereference_protected(current->cred, 1)
cred              341 include/linux/cred.h 	const struct cred *__cred;			\
cred              356 include/linux/cred.h 	const struct cred *__cred;			\
cred              364 include/linux/cred.h 	__typeof__(((struct cred *)NULL)->xxx) ___val;	\
cred              403 include/linux/cred.h 	const struct cred *__cred;		\
cred              411 include/linux/cred.h 	const struct cred *__cred;		\
cred              419 include/linux/cred.h 	const struct cred *__cred;		\
cred               60 include/linux/fs.h struct cred;
cred              957 include/linux/fs.h 	const struct cred	*f_cred;
cred             2538 include/linux/fs.h extern struct file * dentry_open(const struct path *, int, const struct cred *);
cred             2540 include/linux/fs.h 					 struct inode*, const struct cred *);
cred               17 include/linux/fs_context.h struct cred;
cred               95 include/linux/fs_context.h 	const struct cred	*cred;		/* The mounter's credentials */
cred               29 include/linux/init_task.h extern struct cred init_cred;
cred               77 include/linux/key.h struct cred;
cred              260 include/linux/key.h 			     const struct cred *cred,
cred              386 include/linux/key.h 				 const struct cred *cred,
cred              475 include/linux/key.h extern int install_thread_keyring_to_cred(struct cred *cred);
cred              476 include/linux/key.h extern void key_fsuid_changed(struct cred *new_cred);
cred              477 include/linux/key.h extern void key_fsgid_changed(struct cred *new_cred);
cred               49 include/linux/lockd/bind.h 	const struct cred	*cred;
cred               79 include/linux/lockd/bind.h extern int	lockd_up(struct net *net, const struct cred *cred);
cred               73 include/linux/lockd/lockd.h 	const struct cred	*h_cred;
cred              234 include/linux/lockd/lockd.h 					const struct cred *cred);
cred             1473 include/linux/lsm_hooks.h 	int (*capset)(struct cred *new, const struct cred *old,
cred             1477 include/linux/lsm_hooks.h 	int (*capable)(const struct cred *cred,
cred             1523 include/linux/lsm_hooks.h 					const struct cred *old,
cred             1524 include/linux/lsm_hooks.h 					struct cred *new);
cred             1594 include/linux/lsm_hooks.h 	int (*inode_copy_up)(struct dentry *src, struct cred **new);
cred             1621 include/linux/lsm_hooks.h 	int (*cred_alloc_blank)(struct cred *cred, gfp_t gfp);
cred             1622 include/linux/lsm_hooks.h 	void (*cred_free)(struct cred *cred);
cred             1623 include/linux/lsm_hooks.h 	int (*cred_prepare)(struct cred *new, const struct cred *old,
cred             1625 include/linux/lsm_hooks.h 	void (*cred_transfer)(struct cred *new, const struct cred *old);
cred             1626 include/linux/lsm_hooks.h 	void (*cred_getsecid)(const struct cred *c, u32 *secid);
cred             1627 include/linux/lsm_hooks.h 	int (*kernel_act_as)(struct cred *new, u32 secid);
cred             1628 include/linux/lsm_hooks.h 	int (*kernel_create_files_as)(struct cred *new, struct inode *inode);
cred             1634 include/linux/lsm_hooks.h 	int (*task_fix_setuid)(struct cred *new, const struct cred *old,
cred             1643 include/linux/lsm_hooks.h 	int (*task_prlimit)(const struct cred *cred, const struct cred *tcred,
cred             1651 include/linux/lsm_hooks.h 				int sig, const struct cred *cred);
cred             1794 include/linux/lsm_hooks.h 	int (*key_alloc)(struct key *key, const struct cred *cred,
cred             1797 include/linux/lsm_hooks.h 	int (*key_permission)(key_ref_t key_ref, const struct cred *cred,
cred               54 include/linux/nfs_fs.h 	const struct cred *	cred;
cred               73 include/linux/nfs_fs.h 	const struct cred *cred;
cred               91 include/linux/nfs_fs.h 	const struct cred *cred;
cred              395 include/linux/nfs_fs.h extern struct nfs_open_context *nfs_find_open_context(struct inode *inode, const struct cred *cred, fmode_t mode);
cred              466 include/linux/nfs_fs.h static inline const struct cred *nfs_file_cred(struct file *file)
cred              472 include/linux/nfs_fs.h 			return ctx->cred;
cred              498 include/linux/nfs_fs.h extern int nfs_may_open(struct inode *inode, const struct cred *cred, int openflags);
cred              247 include/linux/nfs_fs_sb.h 	const struct cred	*cred;
cred              273 include/linux/nfs_xdr.h 	const struct cred *cred;
cred              312 include/linux/nfs_xdr.h 	const struct cred *cred;
cred              337 include/linux/nfs_xdr.h 	const struct cred *cred;
cred             1509 include/linux/nfs_xdr.h 	const struct cred		*cred;
cred             1569 include/linux/nfs_xdr.h 	const struct cred		*cred;
cred             1600 include/linux/nfs_xdr.h 	const struct cred *cred;
cred             1608 include/linux/nfs_xdr.h 	const struct cred	*cred;
cred             1674 include/linux/nfs_xdr.h 	int	(*readdir) (struct dentry *, const struct cred *,
cred               73 include/linux/nsproxy.h 	struct cred *, struct fs_struct *);
cred              106 include/linux/pnfs_osd_xdr.h 	void *cred;
cred               66 include/linux/ptrace.h 			  const struct cred *ptracer_cred);
cred              872 include/linux/sched.h 	const struct cred __rcu		*ptracer_cred;
cred              875 include/linux/sched.h 	const struct cred __rcu		*real_cred;
cred              878 include/linux/sched.h 	const struct cred __rcu		*cred;
cred              328 include/linux/sched/signal.h 				const struct cred *);
cred               36 include/linux/security.h struct cred;
cred              132 include/linux/security.h extern int cap_capable(const struct cred *cred, struct user_namespace *ns,
cred              138 include/linux/security.h extern int cap_capset(struct cred *new, const struct cred *old,
cred              153 include/linux/security.h extern int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags);
cred              265 include/linux/security.h int security_capset(struct cred *new, const struct cred *old,
cred              269 include/linux/security.h int security_capable(const struct cred *cred,
cred              312 include/linux/security.h 					const struct cred *old,
cred              313 include/linux/security.h 					struct cred *new);
cred              355 include/linux/security.h int security_inode_copy_up(struct dentry *src, struct cred **new);
cred              377 include/linux/security.h int security_cred_alloc_blank(struct cred *cred, gfp_t gfp);
cred              378 include/linux/security.h void security_cred_free(struct cred *cred);
cred              379 include/linux/security.h int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp);
cred              380 include/linux/security.h void security_transfer_creds(struct cred *new, const struct cred *old);
cred              381 include/linux/security.h void security_cred_getsecid(const struct cred *c, u32 *secid);
cred              382 include/linux/security.h int security_kernel_act_as(struct cred *new, u32 secid);
cred              383 include/linux/security.h int security_kernel_create_files_as(struct cred *new, struct inode *inode);
cred              389 include/linux/security.h int security_task_fix_setuid(struct cred *new, const struct cred *old,
cred              398 include/linux/security.h int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
cred              406 include/linux/security.h 			int sig, const struct cred *cred);
cred              527 include/linux/security.h static inline int security_capset(struct cred *new,
cred              528 include/linux/security.h 				   const struct cred *old,
cred              536 include/linux/security.h static inline int security_capable(const struct cred *cred,
cred              541 include/linux/security.h 	return cap_capable(cred, ns, cap, opts);
cred              707 include/linux/security.h 						  const struct cred *old,
cred              708 include/linux/security.h 						  struct cred *new)
cred              873 include/linux/security.h static inline int security_inode_copy_up(struct dentry *src, struct cred **new)
cred              968 include/linux/security.h static inline int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)
cred              973 include/linux/security.h static inline void security_cred_free(struct cred *cred)
cred              976 include/linux/security.h static inline int security_prepare_creds(struct cred *new,
cred              977 include/linux/security.h 					 const struct cred *old,
cred              983 include/linux/security.h static inline void security_transfer_creds(struct cred *new,
cred              984 include/linux/security.h 					   const struct cred *old)
cred              988 include/linux/security.h static inline int security_kernel_act_as(struct cred *cred, u32 secid)
cred              993 include/linux/security.h static inline int security_kernel_create_files_as(struct cred *cred,
cred             1022 include/linux/security.h static inline int security_task_fix_setuid(struct cred *new,
cred             1023 include/linux/security.h 					   const struct cred *old,
cred             1064 include/linux/security.h static inline int security_task_prlimit(const struct cred *cred,
cred             1065 include/linux/security.h 					const struct cred *tcred,
cred             1095 include/linux/security.h 				     const struct cred *cred)
cred             1743 include/linux/security.h int security_key_alloc(struct key *key, const struct cred *cred, unsigned long flags);
cred             1746 include/linux/security.h 			    const struct cred *cred, unsigned perm);
cred             1752 include/linux/security.h 				     const struct cred *cred,
cred             1763 include/linux/security.h 					  const struct cred *cred,
cred               14 include/linux/socket.h struct cred;
cred               41 include/linux/sunrpc/auth.h 	const struct cred *cred;
cred               59 include/linux/sunrpc/auth.h 	const struct cred	*cr_cred;
cred               68 include/linux/sunrpc/auth.h const struct cred *rpc_machine_cred(void);
cred              190 include/linux/sunrpc/auth.h struct rpc_cred *get_rpccred(struct rpc_cred *cred)
cred              192 include/linux/sunrpc/auth.h 	if (cred != NULL && refcount_inc_not_zero(&cred->cr_count))
cred              193 include/linux/sunrpc/auth.h 		return cred;
cred               75 include/linux/sunrpc/clnt.h 	const struct cred	*cl_cred;
cred              131 include/linux/sunrpc/clnt.h 	const struct cred	*cred;
cred              189 include/linux/sunrpc/clnt.h struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred,
cred               29 include/linux/sunrpc/sched.h 	const struct cred *	rpc_cred;	/* Credentials */
cred               89 include/linux/sunrpc/svc_xprt.h 	const struct cred	*xpt_cred;
cred              124 include/linux/sunrpc/svc_xprt.h 			const struct cred *);
cred               38 include/linux/sunrpc/svcauth.h static inline void init_svc_cred(struct svc_cred *cred)
cred               40 include/linux/sunrpc/svcauth.h 	cred->cr_group_info = NULL;
cred               41 include/linux/sunrpc/svcauth.h 	cred->cr_raw_principal = NULL;
cred               42 include/linux/sunrpc/svcauth.h 	cred->cr_principal = NULL;
cred               43 include/linux/sunrpc/svcauth.h 	cred->cr_targ_princ = NULL;
cred               44 include/linux/sunrpc/svcauth.h 	cred->cr_gss_mech = NULL;
cred               47 include/linux/sunrpc/svcauth.h static inline void free_svc_cred(struct svc_cred *cred)
cred               49 include/linux/sunrpc/svcauth.h 	if (cred->cr_group_info)
cred               50 include/linux/sunrpc/svcauth.h 		put_group_info(cred->cr_group_info);
cred               51 include/linux/sunrpc/svcauth.h 	kfree(cred->cr_raw_principal);
cred               52 include/linux/sunrpc/svcauth.h 	kfree(cred->cr_principal);
cred               53 include/linux/sunrpc/svcauth.h 	kfree(cred->cr_targ_princ);
cred               54 include/linux/sunrpc/svcauth.h 	gss_mech_put(cred->cr_gss_mech);
cred               55 include/linux/sunrpc/svcauth.h 	init_svc_cred(cred);
cred               63 include/linux/sunrpc/svcsock.h 					const struct cred *cred);
cred               11 include/linux/umh.h struct cred;
cred               29 include/linux/umh.h 	int (*init)(struct subprocess_info *info, struct cred *new);
cred               40 include/linux/umh.h 			  int (*init)(struct subprocess_info *info, struct cred *new),
cred               44 include/linux/umh.h 			  int (*init)(struct subprocess_info *info, struct cred *new),
cred              115 include/linux/user_namespace.h extern int create_user_ns(struct cred *new);
cred              116 include/linux/user_namespace.h extern int unshare_userns(unsigned long unshare_flags, struct cred **new_cred);
cred              146 include/linux/user_namespace.h static inline int create_user_ns(struct cred *new)
cred              152 include/linux/user_namespace.h 				 struct cred **new_cred)
cred               43 include/net/af_vsock.h 	const struct cred *owner;
cred              474 include/net/sock.h 	const struct cred	*sk_peer_cred;
cred               48 init/do_mounts_initrd.c static int init_linuxrc(struct subprocess_info *info, struct cred *new)
cred              103 init/init_task.c 	RCU_POINTER_INITIALIZER(cred, &init_cred),
cred              475 kernel/acct.c  	const struct cred *orig_cred;
cred             2128 kernel/audit.c 	const struct cred *cred;
cred             2135 kernel/audit.c 	cred = current_cred();
cred             2144 kernel/audit.c 			 from_kuid(&init_user_ns, cred->uid),
cred             2145 kernel/audit.c 			 from_kgid(&init_user_ns, cred->gid),
cred             2146 kernel/audit.c 			 from_kuid(&init_user_ns, cred->euid),
cred             2147 kernel/audit.c 			 from_kuid(&init_user_ns, cred->suid),
cred             2148 kernel/audit.c 			 from_kuid(&init_user_ns, cred->fsuid),
cred             2149 kernel/audit.c 			 from_kgid(&init_user_ns, cred->egid),
cred             2150 kernel/audit.c 			 from_kgid(&init_user_ns, cred->sgid),
cred             2151 kernel/audit.c 			 from_kgid(&init_user_ns, cred->fsgid),
cred              355 kernel/auditsc.c 			       const struct cred *cred,
cred              363 kernel/auditsc.c 		return audit_compare_uid(cred->uid, name, f, ctx);
cred              365 kernel/auditsc.c 		return audit_compare_gid(cred->gid, name, f, ctx);
cred              367 kernel/auditsc.c 		return audit_compare_uid(cred->euid, name, f, ctx);
cred              369 kernel/auditsc.c 		return audit_compare_gid(cred->egid, name, f, ctx);
cred              373 kernel/auditsc.c 		return audit_compare_uid(cred->suid, name, f, ctx);
cred              375 kernel/auditsc.c 		return audit_compare_gid(cred->sgid, name, f, ctx);
cred              377 kernel/auditsc.c 		return audit_compare_uid(cred->fsuid, name, f, ctx);
cred              379 kernel/auditsc.c 		return audit_compare_gid(cred->fsgid, name, f, ctx);
cred              382 kernel/auditsc.c 		return audit_uid_comparator(cred->uid, f->op,
cred              385 kernel/auditsc.c 		return audit_uid_comparator(cred->uid, f->op, cred->euid);
cred              387 kernel/auditsc.c 		return audit_uid_comparator(cred->uid, f->op, cred->suid);
cred              389 kernel/auditsc.c 		return audit_uid_comparator(cred->uid, f->op, cred->fsuid);
cred              393 kernel/auditsc.c 					    cred->euid);
cred              396 kernel/auditsc.c 					    cred->suid);
cred              399 kernel/auditsc.c 					    cred->fsuid);
cred              402 kernel/auditsc.c 		return audit_uid_comparator(cred->euid, f->op, cred->suid);
cred              404 kernel/auditsc.c 		return audit_uid_comparator(cred->euid, f->op, cred->fsuid);
cred              407 kernel/auditsc.c 		return audit_uid_comparator(cred->suid, f->op, cred->fsuid);
cred              410 kernel/auditsc.c 		return audit_gid_comparator(cred->gid, f->op, cred->egid);
cred              412 kernel/auditsc.c 		return audit_gid_comparator(cred->gid, f->op, cred->sgid);
cred              414 kernel/auditsc.c 		return audit_gid_comparator(cred->gid, f->op, cred->fsgid);
cred              417 kernel/auditsc.c 		return audit_gid_comparator(cred->egid, f->op, cred->sgid);
cred              419 kernel/auditsc.c 		return audit_gid_comparator(cred->egid, f->op, cred->fsgid);
cred              422 kernel/auditsc.c 		return audit_gid_comparator(cred->sgid, f->op, cred->fsgid);
cred              445 kernel/auditsc.c 	const struct cred *cred;
cred              450 kernel/auditsc.c 	cred = rcu_dereference_check(tsk->cred, tsk == current || task_creation);
cred              476 kernel/auditsc.c 			result = audit_uid_comparator(cred->uid, f->op, f->uid);
cred              479 kernel/auditsc.c 			result = audit_uid_comparator(cred->euid, f->op, f->uid);
cred              482 kernel/auditsc.c 			result = audit_uid_comparator(cred->suid, f->op, f->uid);
cred              485 kernel/auditsc.c 			result = audit_uid_comparator(cred->fsuid, f->op, f->uid);
cred              488 kernel/auditsc.c 			result = audit_gid_comparator(cred->gid, f->op, f->gid);
cred              491 kernel/auditsc.c 					result = groups_search(cred->group_info, f->gid);
cred              494 kernel/auditsc.c 					result = !groups_search(cred->group_info, f->gid);
cred              498 kernel/auditsc.c 			result = audit_gid_comparator(cred->egid, f->op, f->gid);
cred              501 kernel/auditsc.c 					result = groups_search(cred->group_info, f->gid);
cred              504 kernel/auditsc.c 					result = !groups_search(cred->group_info, f->gid);
cred              508 kernel/auditsc.c 			result = audit_gid_comparator(cred->sgid, f->op, f->gid);
cred              511 kernel/auditsc.c 			result = audit_gid_comparator(cred->fsgid, f->op, f->gid);
cred              709 kernel/auditsc.c 			result = audit_field_compare(tsk, cred, f, ctx, name);
cred             2442 kernel/auditsc.c 			   const struct cred *new, const struct cred *old)
cred             2484 kernel/auditsc.c void __audit_log_capset(const struct cred *new, const struct cred *old)
cred              227 kernel/capability.c 	struct cred *new;
cred              521 kernel/capability.c 	const struct cred *cred;
cred              524 kernel/capability.c 	cred = rcu_dereference(tsk->ptracer_cred);
cred              525 kernel/capability.c 	if (cred)
cred              526 kernel/capability.c 		ret = security_capable(cred, ns, CAP_SYS_PTRACE,
cred              497 kernel/cgroup/cgroup-v1.c 	const struct cred *cred, *tcred;
cred              513 kernel/cgroup/cgroup-v1.c 	cred = current_cred();
cred              515 kernel/cgroup/cgroup-v1.c 	if (!uid_eq(cred->euid, GLOBAL_ROOT_UID) &&
cred              516 kernel/cgroup/cgroup-v1.c 	    !uid_eq(cred->euid, tcred->uid) &&
cred              517 kernel/cgroup/cgroup-v1.c 	    !uid_eq(cred->euid, tcred->suid))
cred               41 kernel/cred.c  struct cred init_cred = {
cred               65 kernel/cred.c  static inline void set_cred_subscribers(struct cred *cred, int n)
cred               68 kernel/cred.c  	atomic_set(&cred->subscribers, n);
cred               72 kernel/cred.c  static inline int read_cred_subscribers(const struct cred *cred)
cred               75 kernel/cred.c  	return atomic_read(&cred->subscribers);
cred               81 kernel/cred.c  static inline void alter_cred_subscribers(const struct cred *_cred, int n)
cred               84 kernel/cred.c  	struct cred *cred = (struct cred *) _cred;
cred               86 kernel/cred.c  	atomic_add(n, &cred->subscribers);
cred               95 kernel/cred.c  	struct cred *cred = container_of(rcu, struct cred, rcu);
cred               97 kernel/cred.c  	kdebug("put_cred_rcu(%p)", cred);
cred              100 kernel/cred.c  	if (cred->magic != CRED_MAGIC_DEAD ||
cred              101 kernel/cred.c  	    atomic_read(&cred->usage) != 0 ||
cred              102 kernel/cred.c  	    read_cred_subscribers(cred) != 0)
cred              105 kernel/cred.c  		      cred, cred->magic, cred->put_addr,
cred              106 kernel/cred.c  		      atomic_read(&cred->usage),
cred              107 kernel/cred.c  		      read_cred_subscribers(cred));
cred              109 kernel/cred.c  	if (atomic_read(&cred->usage) != 0)
cred              111 kernel/cred.c  		      cred, atomic_read(&cred->usage));
cred              114 kernel/cred.c  	security_cred_free(cred);
cred              115 kernel/cred.c  	key_put(cred->session_keyring);
cred              116 kernel/cred.c  	key_put(cred->process_keyring);
cred              117 kernel/cred.c  	key_put(cred->thread_keyring);
cred              118 kernel/cred.c  	key_put(cred->request_key_auth);
cred              119 kernel/cred.c  	if (cred->group_info)
cred              120 kernel/cred.c  		put_group_info(cred->group_info);
cred              121 kernel/cred.c  	free_uid(cred->user);
cred              122 kernel/cred.c  	put_user_ns(cred->user_ns);
cred              123 kernel/cred.c  	kmem_cache_free(cred_jar, cred);
cred              132 kernel/cred.c  void __put_cred(struct cred *cred)
cred              134 kernel/cred.c  	kdebug("__put_cred(%p{%d,%d})", cred,
cred              135 kernel/cred.c  	       atomic_read(&cred->usage),
cred              136 kernel/cred.c  	       read_cred_subscribers(cred));
cred              138 kernel/cred.c  	BUG_ON(atomic_read(&cred->usage) != 0);
cred              140 kernel/cred.c  	BUG_ON(read_cred_subscribers(cred) != 0);
cred              141 kernel/cred.c  	cred->magic = CRED_MAGIC_DEAD;
cred              142 kernel/cred.c  	cred->put_addr = __builtin_return_address(0);
cred              144 kernel/cred.c  	BUG_ON(cred == current->cred);
cred              145 kernel/cred.c  	BUG_ON(cred == current->real_cred);
cred              147 kernel/cred.c  	if (cred->non_rcu)
cred              148 kernel/cred.c  		put_cred_rcu(&cred->rcu);
cred              150 kernel/cred.c  		call_rcu(&cred->rcu, put_cred_rcu);
cred              159 kernel/cred.c  	struct cred *cred;
cred              161 kernel/cred.c  	kdebug("exit_creds(%u,%p,%p,{%d,%d})", tsk->pid, tsk->real_cred, tsk->cred,
cred              162 kernel/cred.c  	       atomic_read(&tsk->cred->usage),
cred              163 kernel/cred.c  	       read_cred_subscribers(tsk->cred));
cred              165 kernel/cred.c  	cred = (struct cred *) tsk->real_cred;
cred              167 kernel/cred.c  	validate_creds(cred);
cred              168 kernel/cred.c  	alter_cred_subscribers(cred, -1);
cred              169 kernel/cred.c  	put_cred(cred);
cred              171 kernel/cred.c  	cred = (struct cred *) tsk->cred;
cred              172 kernel/cred.c  	tsk->cred = NULL;
cred              173 kernel/cred.c  	validate_creds(cred);
cred              174 kernel/cred.c  	alter_cred_subscribers(cred, -1);
cred              175 kernel/cred.c  	put_cred(cred);
cred              193 kernel/cred.c  const struct cred *get_task_cred(struct task_struct *task)
cred              195 kernel/cred.c  	const struct cred *cred;
cred              200 kernel/cred.c  		cred = __task_cred((task));
cred              201 kernel/cred.c  		BUG_ON(!cred);
cred              202 kernel/cred.c  	} while (!get_cred_rcu(cred));
cred              205 kernel/cred.c  	return cred;
cred              213 kernel/cred.c  struct cred *cred_alloc_blank(void)
cred              215 kernel/cred.c  	struct cred *new;
cred              250 kernel/cred.c  struct cred *prepare_creds(void)
cred              253 kernel/cred.c  	const struct cred *old;
cred              254 kernel/cred.c  	struct cred *new;
cred              264 kernel/cred.c  	old = task->cred;
cred              265 kernel/cred.c  	memcpy(new, old, sizeof(struct cred));
cred              300 kernel/cred.c  struct cred *prepare_exec_creds(void)
cred              302 kernel/cred.c  	struct cred *new;
cred              332 kernel/cred.c  	struct cred *new;
cred              341 kernel/cred.c  		!p->cred->thread_keyring &&
cred              345 kernel/cred.c  		p->real_cred = get_cred(p->cred);
cred              346 kernel/cred.c  		get_cred(p->cred);
cred              347 kernel/cred.c  		alter_cred_subscribers(p->cred, 2);
cred              349 kernel/cred.c  		       p->cred, atomic_read(&p->cred->usage),
cred              350 kernel/cred.c  		       read_cred_subscribers(p->cred));
cred              351 kernel/cred.c  		atomic_inc(&p->cred->user->processes);
cred              385 kernel/cred.c  	p->cred = p->real_cred = get_cred(new);
cred              395 kernel/cred.c  static bool cred_cap_issubset(const struct cred *set, const struct cred *subset)
cred              434 kernel/cred.c  int commit_creds(struct cred *new)
cred              437 kernel/cred.c  	const struct cred *old = task->real_cred;
cred              443 kernel/cred.c  	BUG_ON(task->cred != old);
cred              488 kernel/cred.c  	rcu_assign_pointer(task->cred, new);
cred              520 kernel/cred.c  void abort_creds(struct cred *new)
cred              541 kernel/cred.c  const struct cred *override_creds(const struct cred *new)
cred              543 kernel/cred.c  	const struct cred *old = current->cred;
cred              563 kernel/cred.c  	get_new_cred((struct cred *)new);
cred              565 kernel/cred.c  	rcu_assign_pointer(current->cred, new);
cred              582 kernel/cred.c  void revert_creds(const struct cred *old)
cred              584 kernel/cred.c  	const struct cred *override = current->cred;
cred              593 kernel/cred.c  	rcu_assign_pointer(current->cred, old);
cred              613 kernel/cred.c  int cred_fscmp(const struct cred *a, const struct cred *b)
cred              659 kernel/cred.c  	cred_jar = kmem_cache_create("cred_jar", sizeof(struct cred), 0,
cred              681 kernel/cred.c  struct cred *prepare_kernel_cred(struct task_struct *daemon)
cred              683 kernel/cred.c  	const struct cred *old;
cred              684 kernel/cred.c  	struct cred *new;
cred              740 kernel/cred.c  int set_security_override(struct cred *new, u32 secid)
cred              756 kernel/cred.c  int set_security_override_from_ctx(struct cred *new, const char *secctx)
cred              778 kernel/cred.c  int set_create_files_as(struct cred *new, struct inode *inode)
cred              790 kernel/cred.c  bool creds_are_invalid(const struct cred *cred)
cred              792 kernel/cred.c  	if (cred->magic != CRED_MAGIC)
cred              801 kernel/cred.c  static void dump_invalid_creds(const struct cred *cred, const char *label,
cred              805 kernel/cred.c  	       label, cred,
cred              806 kernel/cred.c  	       cred == &init_cred ? "[init]" : "",
cred              807 kernel/cred.c  	       cred == tsk->real_cred ? "[real]" : "",
cred              808 kernel/cred.c  	       cred == tsk->cred ? "[eff]" : "");
cred              810 kernel/cred.c  	       cred->magic, cred->put_addr);
cred              812 kernel/cred.c  	       atomic_read(&cred->usage),
cred              813 kernel/cred.c  	       read_cred_subscribers(cred));
cred              815 kernel/cred.c  		from_kuid_munged(&init_user_ns, cred->uid),
cred              816 kernel/cred.c  		from_kuid_munged(&init_user_ns, cred->euid),
cred              817 kernel/cred.c  		from_kuid_munged(&init_user_ns, cred->suid),
cred              818 kernel/cred.c  		from_kuid_munged(&init_user_ns, cred->fsuid));
cred              820 kernel/cred.c  		from_kgid_munged(&init_user_ns, cred->gid),
cred              821 kernel/cred.c  		from_kgid_munged(&init_user_ns, cred->egid),
cred              822 kernel/cred.c  		from_kgid_munged(&init_user_ns, cred->sgid),
cred              823 kernel/cred.c  		from_kgid_munged(&init_user_ns, cred->fsgid));
cred              825 kernel/cred.c  	printk(KERN_ERR "CRED: ->security is %p\n", cred->security);
cred              826 kernel/cred.c  	if ((unsigned long) cred->security >= PAGE_SIZE &&
cred              827 kernel/cred.c  	    (((unsigned long) cred->security & 0xffffff00) !=
cred              830 kernel/cred.c  		       ((u32*)cred->security)[0],
cred              831 kernel/cred.c  		       ((u32*)cred->security)[1]);
cred              838 kernel/cred.c  void __invalid_creds(const struct cred *cred, const char *file, unsigned line)
cred              842 kernel/cred.c  	dump_invalid_creds(cred, "Specified", current);
cred              853 kernel/cred.c  	if (tsk->cred == tsk->real_cred) {
cred              854 kernel/cred.c  		if (unlikely(read_cred_subscribers(tsk->cred) < 2 ||
cred              855 kernel/cred.c  			     creds_are_invalid(tsk->cred)))
cred              859 kernel/cred.c  			     read_cred_subscribers(tsk->cred) < 1 ||
cred              861 kernel/cred.c  			     creds_are_invalid(tsk->cred)))
cred              871 kernel/cred.c  	if (tsk->cred != tsk->real_cred)
cred              872 kernel/cred.c  		dump_invalid_creds(tsk->cred, "Effective", tsk);
cred              885 kernel/cred.c  	       tsk->real_cred, tsk->cred,
cred              886 kernel/cred.c  	       atomic_read(&tsk->cred->usage),
cred              887 kernel/cred.c  	       read_cred_subscribers(tsk->cred));
cred             2277 kernel/fork.c  	atomic_dec(&p->cred->user->processes);
cred             2813 kernel/fork.c  	struct cred *new_cred = NULL;
cred              123 kernel/groups.c void set_groups(struct cred *new, struct group_info *group_info)
cred              141 kernel/groups.c 	struct cred *new;
cred              155 kernel/groups.c 	const struct cred *cred = current_cred();
cred              162 kernel/groups.c 	i = cred->group_info->ngroups;
cred              168 kernel/groups.c 		if (groups_to_user(grouplist, cred->group_info)) {
cred              221 kernel/groups.c 	const struct cred *cred = current_cred();
cred              224 kernel/groups.c 	if (!gid_eq(grp, cred->fsgid))
cred              225 kernel/groups.c 		retval = groups_search(cred->group_info, grp);
cred              233 kernel/groups.c 	const struct cred *cred = current_cred();
cred              236 kernel/groups.c 	if (!gid_eq(grp, cred->egid))
cred              237 kernel/groups.c 		retval = groups_search(cred->group_info, grp);
cred              189 kernel/nsproxy.c 	struct nsproxy **new_nsp, struct cred *new_cred, struct fs_struct *new_fs)
cred               68 kernel/ptrace.c 		   const struct cred *ptracer_cred)
cred              117 kernel/ptrace.c 	const struct cred *old_cred;
cred              267 kernel/ptrace.c static bool ptrace_has_cap(const struct cred *cred, struct user_namespace *ns,
cred              273 kernel/ptrace.c 		ret = security_capable(cred, ns, CAP_SYS_PTRACE, CAP_OPT_NOAUDIT);
cred              275 kernel/ptrace.c 		ret = security_capable(cred, ns, CAP_SYS_PTRACE, CAP_OPT_NONE);
cred              283 kernel/ptrace.c 	const struct cred *cred = current_cred(), *tcred;
cred              307 kernel/ptrace.c 		caller_uid = cred->fsuid;
cred              308 kernel/ptrace.c 		caller_gid = cred->fsgid;
cred              318 kernel/ptrace.c 		caller_uid = cred->uid;
cred              319 kernel/ptrace.c 		caller_gid = cred->gid;
cred              329 kernel/ptrace.c 	if (ptrace_has_cap(cred, tcred->user_ns, mode))
cred              348 kernel/ptrace.c 	     !ptrace_has_cap(cred, mm->user_ns, mode)))
cred             4738 kernel/sched/core.c 	const struct cred *cred = current_cred(), *pcred;
cred             4743 kernel/sched/core.c 	match = (uid_eq(cred->euid, pcred->euid) ||
cred             4744 kernel/sched/core.c 		 uid_eq(cred->euid, pcred->uid));
cred              813 kernel/signal.c 	const struct cred *cred = current_cred();
cred              814 kernel/signal.c 	const struct cred *tcred = __task_cred(t);
cred              816 kernel/signal.c 	return uid_eq(cred->euid, tcred->suid) ||
cred              817 kernel/signal.c 	       uid_eq(cred->euid, tcred->uid) ||
cred              818 kernel/signal.c 	       uid_eq(cred->uid, tcred->suid) ||
cred              819 kernel/signal.c 	       uid_eq(cred->uid, tcred->uid) ||
cred             1469 kernel/signal.c static inline bool kill_as_cred_perm(const struct cred *cred,
cred             1472 kernel/signal.c 	const struct cred *pcred = __task_cred(target);
cred             1474 kernel/signal.c 	return uid_eq(cred->euid, pcred->suid) ||
cred             1475 kernel/signal.c 	       uid_eq(cred->euid, pcred->uid) ||
cred             1476 kernel/signal.c 	       uid_eq(cred->uid, pcred->suid) ||
cred             1477 kernel/signal.c 	       uid_eq(cred->uid, pcred->uid);
cred             1506 kernel/signal.c 			 struct pid *pid, const struct cred *cred)
cred             1528 kernel/signal.c 	if (!kill_as_cred_perm(cred, p)) {
cred             1532 kernel/signal.c 	ret = security_task_kill(p, &info, sig, cred);
cred              158 kernel/sys.c   	const struct cred *cred = current_cred(), *pcred = __task_cred(p);
cred              160 kernel/sys.c   	if (uid_eq(pcred->uid,  cred->euid) ||
cred              161 kernel/sys.c   	    uid_eq(pcred->euid, cred->euid))
cred              200 kernel/sys.c   	const struct cred *cred = current_cred();
cred              236 kernel/sys.c   		uid = make_kuid(cred->user_ns, who);
cred              237 kernel/sys.c   		user = cred->user;
cred              239 kernel/sys.c   			uid = cred->uid;
cred              240 kernel/sys.c   		else if (!uid_eq(uid, cred->uid)) {
cred              249 kernel/sys.c   		if (!uid_eq(uid, cred->uid))
cred              270 kernel/sys.c   	const struct cred *cred = current_cred();
cred              304 kernel/sys.c   		uid = make_kuid(cred->user_ns, who);
cred              305 kernel/sys.c   		user = cred->user;
cred              307 kernel/sys.c   			uid = cred->uid;
cred              308 kernel/sys.c   		else if (!uid_eq(uid, cred->uid)) {
cred              320 kernel/sys.c   		if (!uid_eq(uid, cred->uid))
cred              353 kernel/sys.c   	const struct cred *old;
cred              354 kernel/sys.c   	struct cred *new;
cred              415 kernel/sys.c   	const struct cred *old;
cred              416 kernel/sys.c   	struct cred *new;
cred              452 kernel/sys.c   static int set_user(struct cred *new)
cred              496 kernel/sys.c   	const struct cred *old;
cred              497 kernel/sys.c   	struct cred *new;
cred              572 kernel/sys.c   	const struct cred *old;
cred              573 kernel/sys.c   	struct cred *new;
cred              624 kernel/sys.c   	const struct cred *old;
cred              625 kernel/sys.c   	struct cred *new;
cred              693 kernel/sys.c   	const struct cred *cred = current_cred();
cred              697 kernel/sys.c   	ruid = from_kuid_munged(cred->user_ns, cred->uid);
cred              698 kernel/sys.c   	euid = from_kuid_munged(cred->user_ns, cred->euid);
cred              699 kernel/sys.c   	suid = from_kuid_munged(cred->user_ns, cred->suid);
cred              716 kernel/sys.c   	const struct cred *old;
cred              717 kernel/sys.c   	struct cred *new;
cred              772 kernel/sys.c   	const struct cred *cred = current_cred();
cred              776 kernel/sys.c   	rgid = from_kgid_munged(cred->user_ns, cred->gid);
cred              777 kernel/sys.c   	egid = from_kgid_munged(cred->user_ns, cred->egid);
cred              778 kernel/sys.c   	sgid = from_kgid_munged(cred->user_ns, cred->sgid);
cred              799 kernel/sys.c   	const struct cred *old;
cred              800 kernel/sys.c   	struct cred *new;
cred              843 kernel/sys.c   	const struct cred *old;
cred              844 kernel/sys.c   	struct cred *new;
cred             1587 kernel/sys.c   	const struct cred *cred = current_cred(), *tcred;
cred             1594 kernel/sys.c   	id_match = (uid_eq(cred->uid, tcred->euid) &&
cred             1595 kernel/sys.c   		    uid_eq(cred->uid, tcred->suid) &&
cred             1596 kernel/sys.c   		    uid_eq(cred->uid, tcred->uid)  &&
cred             1597 kernel/sys.c   		    gid_eq(cred->gid, tcred->egid) &&
cred             1598 kernel/sys.c   		    gid_eq(cred->gid, tcred->sgid) &&
cred             1599 kernel/sys.c   		    gid_eq(cred->gid, tcred->gid));
cred             1603 kernel/sys.c   	return security_task_prlimit(cred, tcred, flags);
cred               24 kernel/tsacct.c 	const struct cred *tcred;
cred               66 kernel/uid16.c 	const struct cred *cred = current_cred();
cred               70 kernel/uid16.c 	ruid = high2lowuid(from_kuid_munged(cred->user_ns, cred->uid));
cred               71 kernel/uid16.c 	euid = high2lowuid(from_kuid_munged(cred->user_ns, cred->euid));
cred               72 kernel/uid16.c 	suid = high2lowuid(from_kuid_munged(cred->user_ns, cred->suid));
cred               89 kernel/uid16.c 	const struct cred *cred = current_cred();
cred               93 kernel/uid16.c 	rgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->gid));
cred               94 kernel/uid16.c 	egid = high2lowgid(from_kgid_munged(cred->user_ns, cred->egid));
cred               95 kernel/uid16.c 	sgid = high2lowgid(from_kgid_munged(cred->user_ns, cred->sgid));
cred              156 kernel/uid16.c 	const struct cred *cred = current_cred();
cred              162 kernel/uid16.c 	i = cred->group_info->ngroups;
cred              168 kernel/uid16.c 		if (groups16_to_user(grouplist, cred->group_info)) {
cred               71 kernel/umh.c   	struct cred *new;
cred              381 kernel/umh.c   		int (*init)(struct subprocess_info *info, struct cred *new),
cred              409 kernel/umh.c   		int (*init)(struct subprocess_info *info, struct cred *new),
cred              435 kernel/umh.c   static int umh_pipe_setup(struct subprocess_info *info, struct cred *new)
cred               42 kernel/user_namespace.c static void set_cred_user_ns(struct cred *cred, struct user_namespace *user_ns)
cred               47 kernel/user_namespace.c 	cred->securebits = SECUREBITS_DEFAULT;
cred               48 kernel/user_namespace.c 	cred->cap_inheritable = CAP_EMPTY_SET;
cred               49 kernel/user_namespace.c 	cred->cap_permitted = CAP_FULL_SET;
cred               50 kernel/user_namespace.c 	cred->cap_effective = CAP_FULL_SET;
cred               51 kernel/user_namespace.c 	cred->cap_ambient = CAP_EMPTY_SET;
cred               52 kernel/user_namespace.c 	cred->cap_bset = CAP_FULL_SET;
cred               54 kernel/user_namespace.c 	key_put(cred->request_key_auth);
cred               55 kernel/user_namespace.c 	cred->request_key_auth = NULL;
cred               58 kernel/user_namespace.c 	cred->user_ns = user_ns;
cred               69 kernel/user_namespace.c int create_user_ns(struct cred *new)
cred              154 kernel/user_namespace.c int unshare_userns(unsigned long unshare_flags, struct cred **new_cred)
cred              156 kernel/user_namespace.c 	struct cred *cred;
cred              162 kernel/user_namespace.c 	cred = prepare_creds();
cred              163 kernel/user_namespace.c 	if (cred) {
cred              164 kernel/user_namespace.c 		err = create_user_ns(cred);
cred              166 kernel/user_namespace.c 			put_cred(cred);
cred              168 kernel/user_namespace.c 			*new_cred = cred;
cred             1088 kernel/user_namespace.c 	const struct cred *cred = file->f_cred;
cred             1093 kernel/user_namespace.c 	    uid_eq(ns->owner, cred->euid)) {
cred             1097 kernel/user_namespace.c 			if (uid_eq(uid, cred->euid))
cred             1102 kernel/user_namespace.c 			    gid_eq(gid, cred->egid))
cred             1259 kernel/user_namespace.c 	struct cred *cred;
cred             1277 kernel/user_namespace.c 	cred = prepare_creds();
cred             1278 kernel/user_namespace.c 	if (!cred)
cred             1281 kernel/user_namespace.c 	put_user_ns(cred->user_ns);
cred             1282 kernel/user_namespace.c 	set_cred_user_ns(cred, get_user_ns(user_ns));
cred             1284 kernel/user_namespace.c 	return commit_creds(cred);
cred              792 lib/vsprintf.c 		const struct cred *cred;
cred              813 lib/vsprintf.c 		cred = current_cred();
cred              815 lib/vsprintf.c 		    !uid_eq(cred->euid, cred->uid) ||
cred              816 lib/vsprintf.c 		    !gid_eq(cred->egid, cred->gid))
cred               47 net/core/scm.c 	const struct cred *cred = current_cred();
cred               48 net/core/scm.c 	kuid_t uid = make_kuid(cred->user_ns, creds->uid);
cred               49 net/core/scm.c 	kgid_t gid = make_kgid(cred->user_ns, creds->gid);
cred               56 net/core/scm.c 	    ((uid_eq(uid, cred->uid)   || uid_eq(uid, cred->euid) ||
cred               57 net/core/scm.c 	      uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) &&
cred               58 net/core/scm.c 	    ((gid_eq(gid, cred->gid)   || gid_eq(gid, cred->egid) ||
cred               59 net/core/scm.c 	      gid_eq(gid, cred->sgid)) || ns_capable(cred->user_ns, CAP_SETGID))) {
cred             1190 net/core/sock.c static void cred_to_ucred(struct pid *pid, const struct cred *cred,
cred             1195 net/core/sock.c 	if (cred) {
cred             1198 net/core/sock.c 		ucred->uid = from_kuid_munged(current_ns, cred->euid);
cred             1199 net/core/sock.c 		ucred->gid = from_kgid_munged(current_ns, cred->egid);
cred               45 net/dns_resolver/dns_key.c const struct cred *dns_resolver_cache;
cred              330 net/dns_resolver/dns_key.c 	struct cred *cred;
cred              340 net/dns_resolver/dns_key.c 	cred = prepare_kernel_cred(NULL);
cred              341 net/dns_resolver/dns_key.c 	if (!cred)
cred              345 net/dns_resolver/dns_key.c 				GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
cred              361 net/dns_resolver/dns_key.c 	cred->thread_keyring = keyring;
cred              362 net/dns_resolver/dns_key.c 	cred->jit_keyring = KEY_REQKEY_DEFL_THREAD_KEYRING;
cred              363 net/dns_resolver/dns_key.c 	dns_resolver_cache = cred;
cred              371 net/dns_resolver/dns_key.c 	put_cred(cred);
cred               81 net/dns_resolver/dns_query.c 	const struct cred *saved_cred;
cred               36 net/dns_resolver/internal.h extern const struct cred *dns_resolver_cache;
cred              140 net/netfilter/nf_log_common.c 		const struct cred *cred = sk->sk_socket->file->f_cred;
cred              142 net/netfilter/nf_log_common.c 			from_kuid_munged(&init_user_ns, cred->fsuid),
cred              143 net/netfilter/nf_log_common.c 			from_kgid_munged(&init_user_ns, cred->fsgid));
cred              607 net/netfilter/nfnetlink_log.c 			const struct cred *cred = file->f_cred;
cred              609 net/netfilter/nfnetlink_log.c 			__be32 uid = htonl(from_kuid_munged(user_ns, cred->fsuid));
cred              610 net/netfilter/nfnetlink_log.c 			__be32 gid = htonl(from_kgid_munged(user_ns, cred->fsgid));
cred              281 net/netfilter/nfnetlink_queue.c 	const struct cred *cred;
cred              288 net/netfilter/nfnetlink_queue.c 		cred = sk->sk_socket->file->f_cred;
cred              290 net/netfilter/nfnetlink_queue.c 		    htonl(from_kuid_munged(&init_user_ns, cred->fsuid))))
cred              293 net/netfilter/nfnetlink_queue.c 		    htonl(from_kgid_munged(&init_user_ns, cred->fsgid))))
cred              965 net/rxrpc/key.c 	const struct cred *cred = current_cred();
cred              977 net/rxrpc/key.c 			GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred, 0,
cred             1019 net/rxrpc/key.c 	const struct cred *cred = current_cred();
cred             1024 net/rxrpc/key.c 			GLOBAL_ROOT_UID, GLOBAL_ROOT_GID, cred,
cred               41 net/sunrpc/auth.c static struct cred machine_cred = {
cred               52 net/sunrpc/auth.c const struct cred *rpc_machine_cred(void)
cred              313 net/sunrpc/auth.c rpcauth_unhash_cred_locked(struct rpc_cred *cred)
cred              315 net/sunrpc/auth.c 	if (!test_and_clear_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags))
cred              317 net/sunrpc/auth.c 	hlist_del_rcu(&cred->cr_hash);
cred              322 net/sunrpc/auth.c rpcauth_unhash_cred(struct rpc_cred *cred)
cred              327 net/sunrpc/auth.c 	if (!test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags))
cred              329 net/sunrpc/auth.c 	cache_lock = &cred->cr_auth->au_credcache->lock;
cred              331 net/sunrpc/auth.c 	ret = rpcauth_unhash_cred_locked(cred);
cred              364 net/sunrpc/auth.c rpcauth_stringify_acceptor(struct rpc_cred *cred)
cred              366 net/sunrpc/auth.c 	if (!cred->cr_ops->crstringify_acceptor)
cred              368 net/sunrpc/auth.c 	return cred->cr_ops->crstringify_acceptor(cred);
cred              378 net/sunrpc/auth.c 	struct rpc_cred *cred;
cred              381 net/sunrpc/auth.c 		cred = list_entry(head->next, struct rpc_cred, cr_lru);
cred              382 net/sunrpc/auth.c 		list_del_init(&cred->cr_lru);
cred              383 net/sunrpc/auth.c 		put_rpccred(cred);
cred              388 net/sunrpc/auth.c rpcauth_lru_add_locked(struct rpc_cred *cred)
cred              390 net/sunrpc/auth.c 	if (!list_empty(&cred->cr_lru))
cred              393 net/sunrpc/auth.c 	list_add_tail(&cred->cr_lru, &cred_unused);
cred              397 net/sunrpc/auth.c rpcauth_lru_add(struct rpc_cred *cred)
cred              399 net/sunrpc/auth.c 	if (!list_empty(&cred->cr_lru))
cred              402 net/sunrpc/auth.c 	rpcauth_lru_add_locked(cred);
cred              407 net/sunrpc/auth.c rpcauth_lru_remove_locked(struct rpc_cred *cred)
cred              409 net/sunrpc/auth.c 	if (list_empty(&cred->cr_lru))
cred              412 net/sunrpc/auth.c 	list_del_init(&cred->cr_lru);
cred              416 net/sunrpc/auth.c rpcauth_lru_remove(struct rpc_cred *cred)
cred              418 net/sunrpc/auth.c 	if (list_empty(&cred->cr_lru))
cred              421 net/sunrpc/auth.c 	rpcauth_lru_remove_locked(cred);
cred              434 net/sunrpc/auth.c 	struct rpc_cred	*cred;
cred              443 net/sunrpc/auth.c 			cred = hlist_entry(head->first, struct rpc_cred, cr_hash);
cred              444 net/sunrpc/auth.c 			rpcauth_unhash_cred_locked(cred);
cred              446 net/sunrpc/auth.c 			rpcauth_lru_remove_locked(cred);
cred              447 net/sunrpc/auth.c 			list_add_tail(&cred->cr_lru, &free);
cred              481 net/sunrpc/auth.c 	struct rpc_cred *cred, *next;
cred              485 net/sunrpc/auth.c 	list_for_each_entry_safe(cred, next, &cred_unused, cr_lru) {
cred              489 net/sunrpc/auth.c 		if (refcount_read(&cred->cr_count) > 1) {
cred              490 net/sunrpc/auth.c 			rpcauth_lru_remove_locked(cred);
cred              497 net/sunrpc/auth.c 		if (!time_in_range(cred->cr_expire, expired, jiffies))
cred              499 net/sunrpc/auth.c 		if (!rpcauth_unhash_cred(cred))
cred              502 net/sunrpc/auth.c 		rpcauth_lru_remove_locked(cred);
cred              504 net/sunrpc/auth.c 		list_add_tail(&cred->cr_lru, free);
cred              571 net/sunrpc/auth.c 	struct rpc_cred	*cred = NULL,
cred              581 net/sunrpc/auth.c 		cred = get_rpccred(entry);
cred              582 net/sunrpc/auth.c 		if (cred)
cred              587 net/sunrpc/auth.c 	if (cred != NULL)
cred              592 net/sunrpc/auth.c 		cred = new;
cred              600 net/sunrpc/auth.c 		cred = get_rpccred(entry);
cred              601 net/sunrpc/auth.c 		if (cred)
cred              604 net/sunrpc/auth.c 	if (cred == NULL) {
cred              605 net/sunrpc/auth.c 		cred = new;
cred              606 net/sunrpc/auth.c 		set_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags);
cred              607 net/sunrpc/auth.c 		refcount_inc(&cred->cr_count);
cred              608 net/sunrpc/auth.c 		hlist_add_head_rcu(&cred->cr_hash, &cache->hashtable[nr]);
cred              614 net/sunrpc/auth.c 	if (test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags) &&
cred              615 net/sunrpc/auth.c 	    cred->cr_ops->cr_init != NULL &&
cred              617 net/sunrpc/auth.c 		int res = cred->cr_ops->cr_init(auth, cred);
cred              619 net/sunrpc/auth.c 			put_rpccred(cred);
cred              620 net/sunrpc/auth.c 			cred = ERR_PTR(res);
cred              625 net/sunrpc/auth.c 	return cred;
cred              634 net/sunrpc/auth.c 	const struct cred *cred = current_cred();
cred              637 net/sunrpc/auth.c 	acred.cred = cred;
cred              644 net/sunrpc/auth.c rpcauth_init_cred(struct rpc_cred *cred, const struct auth_cred *acred,
cred              647 net/sunrpc/auth.c 	INIT_HLIST_NODE(&cred->cr_hash);
cred              648 net/sunrpc/auth.c 	INIT_LIST_HEAD(&cred->cr_lru);
cred              649 net/sunrpc/auth.c 	refcount_set(&cred->cr_count, 1);
cred              650 net/sunrpc/auth.c 	cred->cr_auth = auth;
cred              651 net/sunrpc/auth.c 	cred->cr_flags = 0;
cred              652 net/sunrpc/auth.c 	cred->cr_ops = ops;
cred              653 net/sunrpc/auth.c 	cred->cr_expire = jiffies;
cred              654 net/sunrpc/auth.c 	cred->cr_cred = get_cred(acred->cred);
cred              663 net/sunrpc/auth.c 		.cred = get_task_cred(&init_task),
cred              668 net/sunrpc/auth.c 	put_cred(acred.cred);
cred              678 net/sunrpc/auth.c 		.cred = init_task.cred,
cred              695 net/sunrpc/auth.c rpcauth_bindcred(struct rpc_task *task, const struct cred *cred, int flags)
cred              702 net/sunrpc/auth.c 		.cred = cred,
cred              710 net/sunrpc/auth.c 	else if (cred != NULL && cred != &machine_cred)
cred              712 net/sunrpc/auth.c 	else if (cred == &machine_cred)
cred              718 net/sunrpc/auth.c 	else if (cred == &machine_cred || (flags & RPC_TASK_ROOTCREDS))
cred              732 net/sunrpc/auth.c put_rpccred(struct rpc_cred *cred)
cred              734 net/sunrpc/auth.c 	if (cred == NULL)
cred              737 net/sunrpc/auth.c 	if (refcount_dec_and_test(&cred->cr_count))
cred              739 net/sunrpc/auth.c 	if (refcount_read(&cred->cr_count) != 1 ||
cred              740 net/sunrpc/auth.c 	    !test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags))
cred              742 net/sunrpc/auth.c 	if (test_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) != 0) {
cred              743 net/sunrpc/auth.c 		cred->cr_expire = jiffies;
cred              744 net/sunrpc/auth.c 		rpcauth_lru_add(cred);
cred              746 net/sunrpc/auth.c 		if (unlikely(!test_bit(RPCAUTH_CRED_HASHED, &cred->cr_flags)))
cred              747 net/sunrpc/auth.c 			rpcauth_lru_remove(cred);
cred              748 net/sunrpc/auth.c 	} else if (rpcauth_unhash_cred(cred)) {
cred              749 net/sunrpc/auth.c 		rpcauth_lru_remove(cred);
cred              750 net/sunrpc/auth.c 		if (refcount_dec_and_test(&cred->cr_count))
cred              758 net/sunrpc/auth.c 	cred->cr_ops->crdestroy(cred);
cred              863 net/sunrpc/auth.c 	struct rpc_cred *cred = task->tk_rqstp->rq_cred;
cred              865 net/sunrpc/auth.c 	if (!cred || !cred->cr_ops->crneed_reencode)
cred              867 net/sunrpc/auth.c 	return cred->cr_ops->crneed_reencode(task);
cred              873 net/sunrpc/auth.c 	struct rpc_cred	*cred;
cred              876 net/sunrpc/auth.c 	cred = task->tk_rqstp->rq_cred;
cred              877 net/sunrpc/auth.c 	if (cred == NULL) {
cred              881 net/sunrpc/auth.c 		cred = task->tk_rqstp->rq_cred;
cred              884 net/sunrpc/auth.c 	err = cred->cr_ops->crrefresh(task);
cred              894 net/sunrpc/auth.c 	struct rpc_cred *cred = task->tk_rqstp->rq_cred;
cred              896 net/sunrpc/auth.c 	if (cred)
cred              897 net/sunrpc/auth.c 		clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred              903 net/sunrpc/auth.c 	struct rpc_cred *cred = task->tk_rqstp->rq_cred;
cred              905 net/sunrpc/auth.c 	return cred == NULL ||
cred              906 net/sunrpc/auth.c 		test_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) != 0;
cred              115 net/sunrpc/auth_gss/auth_gss.c gss_cred_set_ctx(struct rpc_cred *cred, struct gss_cl_ctx *ctx)
cred              117 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
cred              119 net/sunrpc/auth_gss/auth_gss.c 	if (!test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags))
cred              123 net/sunrpc/auth_gss/auth_gss.c 	set_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred              125 net/sunrpc/auth_gss/auth_gss.c 	clear_bit(RPCAUTH_CRED_NEW, &cred->cr_flags);
cred              158 net/sunrpc/auth_gss/auth_gss.c gss_cred_get_ctx(struct rpc_cred *cred)
cred              160 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
cred              417 net/sunrpc/auth_gss/auth_gss.c 			      const struct cred *cred)
cred              419 net/sunrpc/auth_gss/auth_gss.c 	struct user_namespace *userns = cred->user_ns;
cred              444 net/sunrpc/auth_gss/auth_gss.c 				const struct cred *cred)
cred              446 net/sunrpc/auth_gss/auth_gss.c 	struct user_namespace *userns = cred->user_ns;
cred              573 net/sunrpc/auth_gss/auth_gss.c gss_setup_upcall(struct gss_auth *gss_auth, struct rpc_cred *cred)
cred              575 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred,
cred              578 net/sunrpc/auth_gss/auth_gss.c 	kuid_t uid = cred->cr_cred->fsuid;
cred              607 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = task->tk_rqstp->rq_cred;
cred              608 net/sunrpc/auth_gss/auth_gss.c 	struct gss_auth *gss_auth = container_of(cred->cr_auth,
cred              610 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred,
cred              616 net/sunrpc/auth_gss/auth_gss.c 	gss_msg = gss_setup_upcall(gss_auth, cred);
cred              647 net/sunrpc/auth_gss/auth_gss.c 					     cred->cr_cred->fsuid), err);
cred              657 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = &gss_cred->gc_base;
cred              670 net/sunrpc/auth_gss/auth_gss.c 	gss_msg = gss_setup_upcall(gss_auth, cred);
cred              701 net/sunrpc/auth_gss/auth_gss.c 		gss_cred_set_ctx(cred, gss_msg->ctx);
cred              710 net/sunrpc/auth_gss/auth_gss.c 					     cred->cr_cred->fsuid), err);
cred             1250 net/sunrpc/auth_gss/auth_gss.c 			.cred = gss_cred->gc_base.cr_cred,
cred             1275 net/sunrpc/auth_gss/auth_gss.c gss_send_destroy_context(struct rpc_cred *cred)
cred             1277 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
cred             1278 net/sunrpc/auth_gss/auth_gss.c 	struct gss_auth *gss_auth = container_of(cred->cr_auth, struct gss_auth, rpc_auth);
cred             1335 net/sunrpc/auth_gss/auth_gss.c gss_destroy_nullcred(struct rpc_cred *cred)
cred             1337 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
cred             1338 net/sunrpc/auth_gss/auth_gss.c 	struct gss_auth *gss_auth = container_of(cred->cr_auth, struct gss_auth, rpc_auth);
cred             1342 net/sunrpc/auth_gss/auth_gss.c 	put_cred(cred->cr_cred);
cred             1343 net/sunrpc/auth_gss/auth_gss.c 	call_rcu(&cred->cr_rcu, gss_free_cred_callback);
cred             1350 net/sunrpc/auth_gss/auth_gss.c gss_destroy_cred(struct rpc_cred *cred)
cred             1353 net/sunrpc/auth_gss/auth_gss.c 	if (test_and_clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags) != 0)
cred             1354 net/sunrpc/auth_gss/auth_gss.c 		gss_send_destroy_context(cred);
cred             1355 net/sunrpc/auth_gss/auth_gss.c 	gss_destroy_nullcred(cred);
cred             1361 net/sunrpc/auth_gss/auth_gss.c 	return hash_64(from_kuid(&init_user_ns, acred->cred->fsuid), hashbits);
cred             1377 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred	*cred = NULL;
cred             1380 net/sunrpc/auth_gss/auth_gss.c 	if (!(cred = kzalloc(sizeof(*cred), gfp)))
cred             1383 net/sunrpc/auth_gss/auth_gss.c 	rpcauth_init_cred(&cred->gc_base, acred, auth, &gss_credops);
cred             1388 net/sunrpc/auth_gss/auth_gss.c 	cred->gc_base.cr_flags = 1UL << RPCAUTH_CRED_NEW;
cred             1389 net/sunrpc/auth_gss/auth_gss.c 	cred->gc_service = gss_auth->service;
cred             1390 net/sunrpc/auth_gss/auth_gss.c 	cred->gc_principal = acred->principal;
cred             1392 net/sunrpc/auth_gss/auth_gss.c 	return &cred->gc_base;
cred             1399 net/sunrpc/auth_gss/auth_gss.c gss_cred_init(struct rpc_auth *auth, struct rpc_cred *cred)
cred             1402 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred,struct gss_cred, gc_base);
cred             1412 net/sunrpc/auth_gss/auth_gss.c gss_stringify_acceptor(struct rpc_cred *cred)
cred             1415 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred, gc_base);
cred             1514 net/sunrpc/auth_gss/auth_gss.c 		ret = uid_eq(rc->cr_cred->fsuid, acred->cred->fsuid);
cred             1529 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = req->rq_cred;
cred             1530 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred	*gss_cred = container_of(cred, struct gss_cred,
cred             1532 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cl_ctx	*ctx = gss_cred_get_ctx(cred);
cred             1588 net/sunrpc/auth_gss/auth_gss.c 	clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred             1608 net/sunrpc/auth_gss/auth_gss.c 		.cred = oldcred->cr_cred,
cred             1621 net/sunrpc/auth_gss/auth_gss.c static int gss_cred_is_negative_entry(struct rpc_cred *cred)
cred             1623 net/sunrpc/auth_gss/auth_gss.c 	if (test_bit(RPCAUTH_CRED_NEGATIVE, &cred->cr_flags)) {
cred             1628 net/sunrpc/auth_gss/auth_gss.c 		gss_cred = container_of(cred, struct gss_cred, gc_base);
cred             1644 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = task->tk_rqstp->rq_cred;
cred             1647 net/sunrpc/auth_gss/auth_gss.c 	if (gss_cred_is_negative_entry(cred))
cred             1650 net/sunrpc/auth_gss/auth_gss.c 	if (!test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags) &&
cred             1651 net/sunrpc/auth_gss/auth_gss.c 			!test_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags)) {
cred             1655 net/sunrpc/auth_gss/auth_gss.c 		cred = task->tk_rqstp->rq_cred;
cred             1658 net/sunrpc/auth_gss/auth_gss.c 	if (test_bit(RPCAUTH_CRED_NEW, &cred->cr_flags))
cred             1674 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = task->tk_rqstp->rq_cred;
cred             1675 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
cred             1706 net/sunrpc/auth_gss/auth_gss.c 		clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred             1712 net/sunrpc/auth_gss/auth_gss.c 	cred->cr_auth->au_verfsize = XDR_QUADLEN(len) + 2;
cred             1728 net/sunrpc/auth_gss/auth_gss.c static int gss_wrap_req_integ(struct rpc_cred *cred, struct gss_cl_ctx *ctx,
cred             1758 net/sunrpc/auth_gss/auth_gss.c 		clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred             1820 net/sunrpc/auth_gss/auth_gss.c static int gss_wrap_req_priv(struct rpc_cred *cred, struct gss_cl_ctx *ctx,
cred             1870 net/sunrpc/auth_gss/auth_gss.c 		clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred             1896 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = task->tk_rqstp->rq_cred;
cred             1897 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred	*gss_cred = container_of(cred, struct gss_cred,
cred             1899 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
cred             1915 net/sunrpc/auth_gss/auth_gss.c 		status = gss_wrap_req_integ(cred, ctx, task, xdr);
cred             1918 net/sunrpc/auth_gss/auth_gss.c 		status = gss_wrap_req_priv(cred, ctx, task, xdr);
cred             1929 net/sunrpc/auth_gss/auth_gss.c gss_unwrap_resp_auth(struct rpc_cred *cred)
cred             1931 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_auth *auth = cred->cr_auth;
cred             1952 net/sunrpc/auth_gss/auth_gss.c gss_unwrap_resp_integ(struct rpc_task *task, struct rpc_cred *cred,
cred             1957 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_auth *auth = cred->cr_auth;
cred             2002 net/sunrpc/auth_gss/auth_gss.c 		clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred             2026 net/sunrpc/auth_gss/auth_gss.c gss_unwrap_resp_priv(struct rpc_task *task, struct rpc_cred *cred,
cred             2032 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_auth *auth = cred->cr_auth;
cred             2047 net/sunrpc/auth_gss/auth_gss.c 		clear_bit(RPCAUTH_CRED_UPTODATE, &cred->cr_flags);
cred             2084 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = req->rq_cred;
cred             2085 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
cred             2121 net/sunrpc/auth_gss/auth_gss.c 	struct rpc_cred *cred = rqstp->rq_cred;
cred             2122 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cred *gss_cred = container_of(cred, struct gss_cred,
cred             2124 net/sunrpc/auth_gss/auth_gss.c 	struct gss_cl_ctx *ctx = gss_cred_get_ctx(cred);
cred             2131 net/sunrpc/auth_gss/auth_gss.c 		status = gss_unwrap_resp_auth(cred);
cred             2134 net/sunrpc/auth_gss/auth_gss.c 		status = gss_unwrap_resp_integ(task, cred, ctx, rqstp, xdr);
cred             2137 net/sunrpc/auth_gss/auth_gss.c 		status = gss_unwrap_resp_priv(task, cred, ctx, rqstp, xdr);
cred              539 net/sunrpc/auth_gss/gss_rpc_xdr.c 			 struct gssx_cred *cred)
cred              544 net/sunrpc/auth_gss/gss_rpc_xdr.c 	err = gssx_enc_name(xdr, &cred->desired_name);
cred              549 net/sunrpc/auth_gss/gss_rpc_xdr.c 	err = dummy_enc_credel_array(xdr, &cred->elements);
cred              554 net/sunrpc/auth_gss/gss_rpc_xdr.c 	err = gssx_enc_buffer(xdr, &cred->cred_handle_reference);
cred              559 net/sunrpc/auth_gss/gss_rpc_xdr.c 	err = gssx_enc_bool(xdr, cred->needs_release);
cred              340 net/sunrpc/auth_gss/svcauth_gss.c 	struct svc_cred		cred;
cred              354 net/sunrpc/auth_gss/svcauth_gss.c 	free_svc_cred(&rsci->cred);
cred              371 net/sunrpc/auth_gss/svcauth_gss.c 	free_svc_cred(&rsci->cred);
cred              401 net/sunrpc/auth_gss/svcauth_gss.c 	init_svc_cred(&new->cred);
cred              414 net/sunrpc/auth_gss/svcauth_gss.c 	new->cred = tmp->cred;
cred              415 net/sunrpc/auth_gss/svcauth_gss.c 	init_svc_cred(&tmp->cred);
cred              477 net/sunrpc/auth_gss/svcauth_gss.c 		rsci.cred.cr_uid = make_kuid(current_user_ns(), id);
cred              482 net/sunrpc/auth_gss/svcauth_gss.c 		rsci.cred.cr_gid = make_kgid(current_user_ns(), id);
cred              490 net/sunrpc/auth_gss/svcauth_gss.c 		rsci.cred.cr_group_info = groups_alloc(N);
cred              491 net/sunrpc/auth_gss/svcauth_gss.c 		if (rsci.cred.cr_group_info == NULL)
cred              503 net/sunrpc/auth_gss/svcauth_gss.c 			rsci.cred.cr_group_info->gid[i] = kgid;
cred              505 net/sunrpc/auth_gss/svcauth_gss.c 		groups_sort(rsci.cred.cr_group_info);
cred              511 net/sunrpc/auth_gss/svcauth_gss.c 		gm = rsci.cred.cr_gss_mech = gss_mech_get_by_name(buf);
cred              529 net/sunrpc/auth_gss/svcauth_gss.c 			rsci.cred.cr_principal = kstrdup(buf, GFP_KERNEL);
cred              530 net/sunrpc/auth_gss/svcauth_gss.c 			if (!rsci.cred.cr_principal) {
cred             1247 net/sunrpc/auth_gss/svcauth_gss.c 		rsci.cred = ud->creds;
cred             1255 net/sunrpc/auth_gss/svcauth_gss.c 		rsci.cred.cr_gss_mech = gm;
cred             1577 net/sunrpc/auth_gss/svcauth_gss.c 		rqstp->rq_cred = rsci->cred;
cred             1578 net/sunrpc/auth_gss/svcauth_gss.c 		get_group_info(rsci->cred.cr_group_info);
cred               46 net/sunrpc/auth_null.c nul_destroy_cred(struct rpc_cred *cred)
cred               54 net/sunrpc/auth_null.c nul_match(struct auth_cred *acred, struct rpc_cred *cred, int taskflags)
cred               63 net/sunrpc/auth_unix.c unx_destroy_cred(struct rpc_cred *cred)
cred               65 net/sunrpc/auth_unix.c 	call_rcu(&cred->cr_rcu, unx_free_cred_callback);
cred               72 net/sunrpc/auth_unix.c unx_match(struct auth_cred *acred, struct rpc_cred *cred, int flags)
cred               77 net/sunrpc/auth_unix.c 	if (cred->cr_cred == acred->cred)
cred               80 net/sunrpc/auth_unix.c 	if (!uid_eq(cred->cr_cred->fsuid, acred->cred->fsuid) || !gid_eq(cred->cr_cred->fsgid, acred->cred->fsgid))
cred               83 net/sunrpc/auth_unix.c 	if (acred->cred->group_info != NULL)
cred               84 net/sunrpc/auth_unix.c 		groups = acred->cred->group_info->ngroups;
cred               87 net/sunrpc/auth_unix.c 	if (cred->cr_cred->group_info == NULL)
cred               89 net/sunrpc/auth_unix.c 	if (groups != cred->cr_cred->group_info->ngroups)
cred               93 net/sunrpc/auth_unix.c 		if (!gid_eq(cred->cr_cred->group_info->gid[i], acred->cred->group_info->gid[i]))
cred              106 net/sunrpc/auth_unix.c 	struct rpc_cred	*cred = task->tk_rqstp->rq_cred;
cred              109 net/sunrpc/auth_unix.c 	struct group_info *gi = cred->cr_cred->group_info;
cred              127 net/sunrpc/auth_unix.c 	*p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid));
cred              128 net/sunrpc/auth_unix.c 	*p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid));
cred              398 net/sunrpc/clnt.c 	clnt->cl_cred	  = get_cred(args->cred);
cred              668 net/sunrpc/clnt.c 		.cred		= clnt->cl_cred,
cred              690 net/sunrpc/clnt.c 		.cred		= clnt->cl_cred,
cred              963 net/sunrpc/clnt.c 		.cred		= old->cl_cred,
cred             2738 net/sunrpc/clnt.c 		struct rpc_xprt *xprt, struct rpc_cred *cred, int flags,
cred             2748 net/sunrpc/clnt.c 		.rpc_op_cred = cred,
cred             2757 net/sunrpc/clnt.c struct rpc_task *rpc_call_null(struct rpc_clnt *clnt, struct rpc_cred *cred, int flags)
cred             2759 net/sunrpc/clnt.c 	return rpc_call_null_helper(clnt, NULL, cred, flags, NULL, NULL);
cred              244 net/sunrpc/rpcb_clnt.c 		.cred		= current_cred(),
cred              304 net/sunrpc/rpcb_clnt.c 		.cred		= current_cred(),
cred              365 net/sunrpc/rpcb_clnt.c 				    const struct cred *cred)
cred              377 net/sunrpc/rpcb_clnt.c 		.cred		= cred,
cred              258 net/sunrpc/svc_xprt.c 			    const struct cred *cred)
cred              279 net/sunrpc/svc_xprt.c 		newxprt->xpt_cred = get_cred(cred);
cred              294 net/sunrpc/svc_xprt.c 		    const struct cred *cred)
cred              299 net/sunrpc/svc_xprt.c 	err = _svc_create_xprt(serv, xprt_name, net, family, port, flags, cred);
cred              302 net/sunrpc/svc_xprt.c 		err = _svc_create_xprt(serv, xprt_name, net, family, port, flags, cred);
cred              671 net/sunrpc/svcauth_unix.c 	struct svc_cred *cred = &rqstp->rq_cred;
cred              717 net/sunrpc/svcauth_unix.c 	gi = unix_gid_find(cred->cr_uid, rqstp);
cred              726 net/sunrpc/svcauth_unix.c 		put_group_info(cred->cr_group_info);
cred              727 net/sunrpc/svcauth_unix.c 		cred->cr_group_info = gi;
cred              739 net/sunrpc/svcauth_unix.c 	struct svc_cred	*cred = &rqstp->rq_cred;
cred              756 net/sunrpc/svcauth_unix.c 	cred->cr_uid = INVALID_UID;
cred              757 net/sunrpc/svcauth_unix.c 	cred->cr_gid = INVALID_GID;
cred              758 net/sunrpc/svcauth_unix.c 	cred->cr_group_info = groups_alloc(0);
cred              759 net/sunrpc/svcauth_unix.c 	if (cred->cr_group_info == NULL)
cred              799 net/sunrpc/svcauth_unix.c 	struct svc_cred	*cred = &rqstp->rq_cred;
cred              823 net/sunrpc/svcauth_unix.c 	cred->cr_uid = make_kuid(userns, svc_getnl(argv)); /* uid */
cred              824 net/sunrpc/svcauth_unix.c 	cred->cr_gid = make_kgid(userns, svc_getnl(argv)); /* gid */
cred              828 net/sunrpc/svcauth_unix.c 	cred->cr_group_info = groups_alloc(slen);
cred              829 net/sunrpc/svcauth_unix.c 	if (cred->cr_group_info == NULL)
cred              833 net/sunrpc/svcauth_unix.c 		cred->cr_group_info->gid[i] = kgid;
cred              835 net/sunrpc/svcauth_unix.c 	groups_sort(cred->cr_group_info);
cred             1347 net/sunrpc/svcsock.c 		const size_t len, const struct cred *cred)
cred             1380 net/sunrpc/svcsock.c 	svsk->sk_xprt.xpt_cred = get_cred(cred);
cred              893 security/apparmor/domain.c 	AA_BUG(!cred_label(bprm->cred));
cred              896 security/apparmor/domain.c 	label = aa_get_newest_label(cred_label(bprm->cred));
cred              976 security/apparmor/domain.c 	aa_put_label(cred_label(bprm->cred));
cred              978 security/apparmor/domain.c 	set_cred_label(bprm->cred, new);
cred             1168 security/apparmor/domain.c 	const struct cred *cred;
cred             1177 security/apparmor/domain.c 	cred = get_current_cred();
cred             1178 security/apparmor/domain.c 	label = aa_get_newest_cred_label(cred);
cred             1260 security/apparmor/domain.c 	put_cred(cred);
cred              679 security/apparmor/file.c void aa_inherit_files(const struct cred *cred, struct files_struct *files)
cred              681 security/apparmor/file.c 	struct aa_label *label = aa_get_newest_cred_label(cred);
cred              692 security/apparmor/file.c 	devnull = dentry_open(&aa_null, O_RDWR, cred);
cred               22 security/apparmor/include/cred.h static inline struct aa_label *cred_label(const struct cred *cred)
cred               24 security/apparmor/include/cred.h 	struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred;
cred               30 security/apparmor/include/cred.h static inline void set_cred_label(const struct cred *cred,
cred               33 security/apparmor/include/cred.h 	struct aa_label **blob = cred->security + apparmor_blob_sizes.lbs_cred;
cred               47 security/apparmor/include/cred.h static inline struct aa_label *aa_cred_raw_label(const struct cred *cred)
cred               49 security/apparmor/include/cred.h 	struct aa_label *label = cred_label(cred);
cred               61 security/apparmor/include/cred.h static inline struct aa_label *aa_get_newest_cred_label(const struct cred *cred)
cred               63 security/apparmor/include/cred.h 	return aa_get_newest_label(aa_cred_raw_label(cred));
cred              202 security/apparmor/include/file.h void aa_inherit_files(const struct cred *cred, struct files_struct *files);
cred               56 security/apparmor/lsm.c static void apparmor_cred_free(struct cred *cred)
cred               58 security/apparmor/lsm.c 	aa_put_label(cred_label(cred));
cred               59 security/apparmor/lsm.c 	set_cred_label(cred, NULL);
cred               65 security/apparmor/lsm.c static int apparmor_cred_alloc_blank(struct cred *cred, gfp_t gfp)
cred               67 security/apparmor/lsm.c 	set_cred_label(cred, NULL);
cred               74 security/apparmor/lsm.c static int apparmor_cred_prepare(struct cred *new, const struct cred *old,
cred               84 security/apparmor/lsm.c static void apparmor_cred_transfer(struct cred *new, const struct cred *old)
cred              141 security/apparmor/lsm.c 	const struct cred *cred;
cred              144 security/apparmor/lsm.c 	cred = __task_cred(target);
cred              145 security/apparmor/lsm.c 	label = aa_get_newest_cred_label(cred);
cred              170 security/apparmor/lsm.c static int apparmor_capable(const struct cred *cred, struct user_namespace *ns,
cred              176 security/apparmor/lsm.c 	label = aa_get_newest_cred_label(cred);
cred              580 security/apparmor/lsm.c 	const struct cred *cred = get_task_cred(task);
cred              585 security/apparmor/lsm.c 		label = aa_get_newest_label(cred_label(cred));
cred              597 security/apparmor/lsm.c 	put_cred(cred);
cred              682 security/apparmor/lsm.c 	struct aa_label *new_label = cred_label(bprm->cred);
cred              689 security/apparmor/lsm.c 	aa_inherit_files(bprm->cred, current->files);
cred              730 security/apparmor/lsm.c 			      int sig, const struct cred *cred)
cred              735 security/apparmor/lsm.c 	if (cred) {
cred              739 security/apparmor/lsm.c 		cl = aa_get_newest_cred_label(cred);
cred             1528 security/apparmor/lsm.c 	struct cred *cred = (struct cred *)current->real_cred;
cred             1530 security/apparmor/lsm.c 	set_cred_label(cred, aa_get_label(ns_unconfined(root_ns)));
cred               45 security/apparmor/task.c 	struct cred *new;
cred              118 security/apparmor/task.c 	struct cred *new;
cred              158 security/apparmor/task.c 	struct cred *new;
cred               65 security/commoncap.c int cap_capable(const struct cred *cred, struct user_namespace *targ_ns,
cred               76 security/commoncap.c 		if (ns == cred->user_ns)
cred               77 security/commoncap.c 			return cap_raised(cred->cap_effective, cap) ? 0 : -EPERM;
cred               83 security/commoncap.c 		if (ns->level <= cred->user_ns->level)
cred               90 security/commoncap.c 		if ((ns->parent == cred->user_ns) && uid_eq(ns->owner, cred->euid))
cred              136 security/commoncap.c 	const struct cred *cred, *child_cred;
cred              140 security/commoncap.c 	cred = current_cred();
cred              143 security/commoncap.c 		caller_caps = &cred->cap_effective;
cred              145 security/commoncap.c 		caller_caps = &cred->cap_permitted;
cred              146 security/commoncap.c 	if (cred->user_ns == child_cred->user_ns &&
cred              173 security/commoncap.c 	const struct cred *cred, *child_cred;
cred              176 security/commoncap.c 	cred = __task_cred(parent);
cred              178 security/commoncap.c 	if (cred->user_ns == child_cred->user_ns &&
cred              179 security/commoncap.c 	    cap_issubset(child_cred->cap_permitted, cred->cap_permitted))
cred              202 security/commoncap.c 	const struct cred *cred;
cred              206 security/commoncap.c 	cred = __task_cred(target);
cred              207 security/commoncap.c 	*effective   = cred->cap_effective;
cred              208 security/commoncap.c 	*inheritable = cred->cap_inheritable;
cred              209 security/commoncap.c 	*permitted   = cred->cap_permitted;
cred              241 security/commoncap.c int cap_capset(struct cred *new,
cred              242 security/commoncap.c 	       const struct cred *old,
cred              533 security/commoncap.c 	struct cred *new = bprm->cred;
cred              655 security/commoncap.c 	cap_clear(bprm->cred->cap_permitted);
cred              685 security/commoncap.c 		cap_clear(bprm->cred->cap_permitted);
cred              692 security/commoncap.c static inline bool __is_real(kuid_t uid, struct cred *cred)
cred              693 security/commoncap.c { return uid_eq(cred->uid, uid); }
cred              695 security/commoncap.c static inline bool __is_eff(kuid_t uid, struct cred *cred)
cred              696 security/commoncap.c { return uid_eq(cred->euid, uid); }
cred              698 security/commoncap.c static inline bool __is_suid(kuid_t uid, struct cred *cred)
cred              699 security/commoncap.c { return !__is_real(uid, cred) && __is_eff(uid, cred); }
cred              716 security/commoncap.c 	const struct cred *old = current_cred();
cred              717 security/commoncap.c 	struct cred *new = bprm->cred;
cred              749 security/commoncap.c #define __cap_grew(target, source, cred) \
cred              750 security/commoncap.c 	!cap_issubset(cred->cap_##target, cred->cap_##source)
cred              751 security/commoncap.c #define __cap_full(field, cred) \
cred              752 security/commoncap.c 	cap_issubset(CAP_FULL_SET, cred->cap_##field)
cred              754 security/commoncap.c static inline bool __is_setuid(struct cred *new, const struct cred *old)
cred              757 security/commoncap.c static inline bool __is_setgid(struct cred *new, const struct cred *old)
cred              777 security/commoncap.c static inline bool nonroot_raised_pE(struct cred *new, const struct cred *old,
cred              809 security/commoncap.c 	const struct cred *old = current_cred();
cred              810 security/commoncap.c 	struct cred *new = bprm->cred;
cred              998 security/commoncap.c static inline void cap_emulate_setxuid(struct cred *new, const struct cred *old)
cred             1035 security/commoncap.c int cap_task_fix_setuid(struct cred *new, const struct cred *old, int flags)
cred             1142 security/commoncap.c 	struct cred *new;
cred             1171 security/commoncap.c 	const struct cred *old = current_cred();
cred             1172 security/commoncap.c 	struct cred *new;
cred              101 security/integrity/digsig.c 	const struct cred *cred = current_cred();
cred              105 security/integrity/digsig.c 				    KGIDT_INIT(0), cred, perm,
cred              208 security/integrity/ima/ima.h int ima_get_action(struct inode *inode, const struct cred *cred, u32 secid,
cred              232 security/integrity/ima/ima.h int ima_match_policy(struct inode *inode, const struct cred *cred, u32 secid,
cred              184 security/integrity/ima/ima_api.c int ima_get_action(struct inode *inode, const struct cred *cred, u32 secid,
cred              192 security/integrity/ima/ima_api.c 	return ima_match_policy(inode, cred, secid, func, mask, flags, pcr,
cred              192 security/integrity/ima/ima_main.c static int process_measurement(struct file *file, const struct cred *cred,
cred              217 security/integrity/ima/ima_main.c 	action = ima_get_action(inode, cred, secid, mask, func, &pcr,
cred              418 security/integrity/ima/ima_main.c 	security_cred_getsecid(bprm->cred, &secid);
cred              419 security/integrity/ima/ima_main.c 	return process_measurement(bprm->file, bprm->cred, secid, NULL, 0,
cred              636 security/integrity/ima/ima_main.c 				       const struct cred *cred, u32 secid)
cred              654 security/integrity/ima/ima_main.c 	action = ima_get_action(NULL, cred, secid, 0, KEXEC_CMDLINE, &pcr,
cred              370 security/integrity/ima/ima_policy.c 			    const struct cred *cred, u32 secid,
cred              398 security/integrity/ima/ima_policy.c 	if ((rule->flags & IMA_UID) && !rule->uid_op(cred->uid, rule->uid))
cred              402 security/integrity/ima/ima_policy.c 			if (!rule->uid_op(cred->euid, rule->uid)
cred              403 security/integrity/ima/ima_policy.c 			    && !rule->uid_op(cred->suid, rule->uid)
cred              404 security/integrity/ima/ima_policy.c 			    && !rule->uid_op(cred->uid, rule->uid))
cred              406 security/integrity/ima/ima_policy.c 		} else if (!rule->uid_op(cred->euid, rule->uid))
cred              492 security/integrity/ima/ima_policy.c int ima_match_policy(struct inode *inode, const struct cred *cred, u32 secid,
cred              508 security/integrity/ima/ima_policy.c 		if (!ima_match_rules(entry, inode, cred, secid, func, mask))
cred              119 security/keys/internal.h 	const struct cred	*cred;
cred              150 security/keys/internal.h extern struct key *get_user_session_keyring_rcu(const struct cred *);
cred              151 security/keys/internal.h extern int install_thread_keyring_to_cred(struct cred *);
cred              152 security/keys/internal.h extern int install_process_keyring_to_cred(struct cred *);
cred              153 security/keys/internal.h extern int install_session_keyring_to_cred(struct cred *, struct key *);
cred              183 security/keys/internal.h 			       const struct cred *cred,
cred              225 security/keys/key.c 		      kuid_t uid, kgid_t gid, const struct cred *cred,
cred              311 security/keys/key.c 	ret = security_key_alloc(key, cred, flags);
cred              821 security/keys/key.c 	const struct cred *cred = current_cred();
cred              925 security/keys/key.c 			cred->fsuid, cred->fsgid, cred, perm, flags, NULL);
cred             1141 security/keys/keyctl.c 	struct cred *new;
cred             1166 security/keys/keyctl.c 	const struct cred *cred = current_cred();
cred             1185 security/keys/keyctl.c 	instkey = cred->request_key_auth;
cred             1328 security/keys/keyctl.c 	const struct cred *cred = current_cred();
cred             1347 security/keys/keyctl.c 	instkey = cred->request_key_auth;
cred             1385 security/keys/keyctl.c 	struct cred *new;
cred             1616 security/keys/keyctl.c 	const struct cred *mycred, *pcred;
cred             1619 security/keys/keyctl.c 	struct cred *cred;
cred             1631 security/keys/keyctl.c 	cred = cred_alloc_blank();
cred             1632 security/keys/keyctl.c 	if (!cred)
cred             1634 security/keys/keyctl.c 	newwork = &cred->rcu;
cred             1636 security/keys/keyctl.c 	cred->session_keyring = key_ref_to_ptr(keyring_r);
cred             1695 security/keys/keyctl.c 		put_cred(container_of(oldwork, struct cred, rcu));
cred             1697 security/keys/keyctl.c 		put_cred(cred);
cred              518 security/keys/keyring.c 			  const struct cred *cred, key_perm_t perm,
cred              527 security/keys/keyring.c 			    uid, gid, cred, perm, flags, restrict_link);
cred              617 security/keys/keyring.c 				ctx->cred, KEY_NEED_SEARCH) < 0) {
cred              794 security/keys/keyring.c 					ctx->cred, KEY_NEED_SEARCH) < 0)
cred              916 security/keys/keyring.c 		err = key_task_permission(keyring_ref, ctx->cred, KEY_NEED_SEARCH);
cred              946 security/keys/keyring.c 		.cred			= current_cred(),
cred               26 security/keys/permission.c int key_task_permission(const key_ref_t key_ref, const struct cred *cred,
cred               36 security/keys/permission.c 	if (uid_eq(key->uid, cred->fsuid)) {
cred               44 security/keys/permission.c 		if (gid_eq(key->gid, cred->fsgid)) {
cred               49 security/keys/permission.c 		ret = groups_search(cred->group_info, key->gid);
cred               73 security/keys/permission.c 	return security_key_permission(key_ref, cred, perm);
cred              167 security/keys/proc.c 		.cred			= m->file->f_cred,
cred              191 security/keys/proc.c 	rc = key_task_permission(key_ref, ctx.cred, KEY_NEED_VIEW);
cred               77 security/keys/process_keys.c 	const struct cred *cred = current_cred();
cred               82 security/keys/process_keys.c 	uid_t uid = from_kuid(user_ns, cred->user->uid);
cred              106 security/keys/process_keys.c 		uid_keyring = keyring_alloc(buf, cred->user->uid, INVALID_GID,
cred              107 security/keys/process_keys.c 					    cred, user_keyring_perm,
cred              128 security/keys/process_keys.c 		session_keyring = keyring_alloc(buf, cred->user->uid, INVALID_GID,
cred              129 security/keys/process_keys.c 						cred, user_keyring_perm,
cred              185 security/keys/process_keys.c struct key *get_user_session_keyring_rcu(const struct cred *cred)
cred              187 security/keys/process_keys.c 	struct key *reg_keyring = READ_ONCE(cred->user_ns->user_keyring_register);
cred              194 security/keys/process_keys.c 		.cred			= cred,
cred              205 security/keys/process_keys.c 					  from_kuid(cred->user_ns,
cred              206 security/keys/process_keys.c 						    cred->user->uid));
cred              221 security/keys/process_keys.c int install_thread_keyring_to_cred(struct cred *new)
cred              246 security/keys/process_keys.c 	struct cred *new;
cred              268 security/keys/process_keys.c int install_process_keyring_to_cred(struct cred *new)
cred              293 security/keys/process_keys.c 	struct cred *new;
cred              317 security/keys/process_keys.c int install_session_keyring_to_cred(struct cred *cred, struct key *keyring)
cred              327 security/keys/process_keys.c 		if (cred->session_keyring)
cred              330 security/keys/process_keys.c 		keyring = keyring_alloc("_ses", cred->uid, cred->gid, cred,
cred              340 security/keys/process_keys.c 	old = cred->session_keyring;
cred              341 security/keys/process_keys.c 	cred->session_keyring = keyring;
cred              358 security/keys/process_keys.c 	struct cred *new;
cred              377 security/keys/process_keys.c void key_fsuid_changed(struct cred *new_cred)
cred              390 security/keys/process_keys.c void key_fsgid_changed(struct cred *new_cred)
cred              426 security/keys/process_keys.c 	const struct cred *cred = ctx->cred;
cred              440 security/keys/process_keys.c 	if (cred->thread_keyring) {
cred              442 security/keys/process_keys.c 			make_key_ref(cred->thread_keyring, 1), ctx);
cred              458 security/keys/process_keys.c 	if (cred->process_keyring) {
cred              460 security/keys/process_keys.c 			make_key_ref(cred->process_keyring, 1), ctx);
cred              479 security/keys/process_keys.c 	if (cred->session_keyring) {
cred              481 security/keys/process_keys.c 			make_key_ref(cred->session_keyring, 1), ctx);
cred              500 security/keys/process_keys.c 	else if ((user_session = get_user_session_keyring_rcu(cred))) {
cred              553 security/keys/process_keys.c 	if (ctx->cred->request_key_auth &&
cred              554 security/keys/process_keys.c 	    ctx->cred == current_cred() &&
cred              557 security/keys/process_keys.c 		const struct cred *cred = ctx->cred;
cred              559 security/keys/process_keys.c 		if (key_validate(cred->request_key_auth) == 0) {
cred              560 security/keys/process_keys.c 			rka = ctx->cred->request_key_auth->payload.data[0];
cred              563 security/keys/process_keys.c 			ctx->cred = rka->cred;
cred              565 security/keys/process_keys.c 			ctx->cred = cred;
cred              626 security/keys/process_keys.c 	ctx.cred = get_current_cred();
cred              631 security/keys/process_keys.c 		if (!ctx.cred->thread_keyring) {
cred              643 security/keys/process_keys.c 		key = ctx.cred->thread_keyring;
cred              649 security/keys/process_keys.c 		if (!ctx.cred->process_keyring) {
cred              661 security/keys/process_keys.c 		key = ctx.cred->process_keyring;
cred              667 security/keys/process_keys.c 		if (!ctx.cred->session_keyring) {
cred              683 security/keys/process_keys.c 				    &ctx.cred->session_keyring->flags) &&
cred              691 security/keys/process_keys.c 		key = ctx.cred->session_keyring;
cred              716 security/keys/process_keys.c 		key = ctx.cred->request_key_auth;
cred              725 security/keys/process_keys.c 		if (!ctx.cred->request_key_auth)
cred              728 security/keys/process_keys.c 		down_read(&ctx.cred->request_key_auth->sem);
cred              730 security/keys/process_keys.c 			     &ctx.cred->request_key_auth->flags)) {
cred              734 security/keys/process_keys.c 			rka = ctx.cred->request_key_auth->payload.data[0];
cred              738 security/keys/process_keys.c 		up_read(&ctx.cred->request_key_auth->sem);
cred              804 security/keys/process_keys.c 	ret = key_task_permission(key_ref, ctx.cred, perm);
cred              811 security/keys/process_keys.c 	put_cred(ctx.cred);
cred              822 security/keys/process_keys.c 	put_cred(ctx.cred);
cred              840 security/keys/process_keys.c 	const struct cred *old;
cred              841 security/keys/process_keys.c 	struct cred *new;
cred              914 security/keys/process_keys.c 	const struct cred *old = current_cred();
cred              915 security/keys/process_keys.c 	struct cred *new = container_of(twork, struct cred, rcu);
cred               77 security/keys/request_key.c static int umh_keys_init(struct subprocess_info *info, struct cred *cred)
cred               81 security/keys/request_key.c 	return install_session_keyring_to_cred(cred, keyring);
cred              119 security/keys/request_key.c 	const struct cred *cred = current_cred();
cred              136 security/keys/request_key.c 	cred = get_current_cred();
cred              137 security/keys/request_key.c 	keyring = keyring_alloc(desc, cred->fsuid, cred->fsgid, cred,
cred              140 security/keys/request_key.c 	put_cred(cred);
cred              152 security/keys/request_key.c 	sprintf(uid_str, "%d", from_kuid(&init_user_ns, cred->fsuid));
cred              153 security/keys/request_key.c 	sprintf(gid_str, "%d", from_kgid(&init_user_ns, cred->fsgid));
cred              160 security/keys/request_key.c 		cred->thread_keyring ? cred->thread_keyring->serial : 0);
cred              163 security/keys/request_key.c 	if (cred->process_keyring)
cred              164 security/keys/request_key.c 		prkey = cred->process_keyring->serial;
cred              167 security/keys/request_key.c 	session = cred->session_keyring;
cred              265 security/keys/request_key.c 	const struct cred *cred = current_cred();
cred              280 security/keys/request_key.c 		switch (cred->jit_keyring) {
cred              283 security/keys/request_key.c 			if (cred->request_key_auth) {
cred              284 security/keys/request_key.c 				authkey = cred->request_key_auth;
cred              300 security/keys/request_key.c 			dest_keyring = key_get(cred->thread_keyring);
cred              306 security/keys/request_key.c 			dest_keyring = key_get(cred->process_keyring);
cred              312 security/keys/request_key.c 			dest_keyring = key_get(cred->session_keyring);
cred              393 security/keys/request_key.c 			ctx->cred->fsuid, ctx->cred->fsgid, ctx->cred,
cred              572 security/keys/request_key.c 		.cred			= current_cred(),
cred              775 security/keys/request_key.c 		.cred			= current_cred(),
cred              112 security/keys/request_key_auth.c 	if (rka->cred)
cred              113 security/keys/request_key_auth.c 		put_cred(rka->cred);
cred              166 security/keys/request_key_auth.c 	const struct cred *cred = current_cred();
cred              185 security/keys/request_key_auth.c 	if (cred->request_key_auth) {
cred              187 security/keys/request_key_auth.c 		down_read(&cred->request_key_auth->sem);
cred              192 security/keys/request_key_auth.c 			     &cred->request_key_auth->flags)) {
cred              193 security/keys/request_key_auth.c 			up_read(&cred->request_key_auth->sem);
cred              198 security/keys/request_key_auth.c 		irka = cred->request_key_auth->payload.data[0];
cred              199 security/keys/request_key_auth.c 		rka->cred = get_cred(irka->cred);
cred              202 security/keys/request_key_auth.c 		up_read(&cred->request_key_auth->sem);
cred              206 security/keys/request_key_auth.c 		rka->cred = get_cred(cred);
cred              217 security/keys/request_key_auth.c 			    cred->fsuid, cred->fsgid, cred,
cred              252 security/keys/request_key_auth.c 		.cred			= current_cred(),
cred               63 security/safesetid/lsm.c static int safesetid_security_capable(const struct cred *cred,
cred               84 security/safesetid/lsm.c 	if (setuid_policy_lookup(cred->uid, INVALID_UID) == SIDPOL_DEFAULT)
cred               92 security/safesetid/lsm.c 		__kuid_val(cred->uid));
cred              100 security/safesetid/lsm.c static bool uid_permitted_for_cred(const struct cred *old, kuid_t new_uid)
cred              128 security/safesetid/lsm.c static int safesetid_task_fix_setuid(struct cred *new,
cred              129 security/safesetid/lsm.c 				     const struct cred *old,
cred              278 security/security.c static void __init lsm_early_cred(struct cred *cred);
cred              321 security/security.c 	lsm_early_cred((struct cred *) current->cred);
cred              493 security/security.c static int lsm_cred_alloc(struct cred *cred, gfp_t gfp)
cred              496 security/security.c 		cred->security = NULL;
cred              500 security/security.c 	cred->security = kzalloc(blob_sizes.lbs_cred, gfp);
cred              501 security/security.c 	if (cred->security == NULL)
cred              512 security/security.c static void __init lsm_early_cred(struct cred *cred)
cred              514 security/security.c 	int rc = lsm_cred_alloc(cred, GFP_KERNEL);
cred              715 security/security.c int security_capset(struct cred *new, const struct cred *old,
cred              724 security/security.c int security_capable(const struct cred *cred,
cred              729 security/security.c 	return call_int_hook(capable, 0, cred, ns, cap, opts);
cred              962 security/security.c 				    const struct cred *old, struct cred *new)
cred             1353 security/security.c int security_inode_copy_up(struct dentry *src, struct cred **new)
cred             1524 security/security.c int security_cred_alloc_blank(struct cred *cred, gfp_t gfp)
cred             1526 security/security.c 	int rc = lsm_cred_alloc(cred, gfp);
cred             1531 security/security.c 	rc = call_int_hook(cred_alloc_blank, 0, cred, gfp);
cred             1533 security/security.c 		security_cred_free(cred);
cred             1537 security/security.c void security_cred_free(struct cred *cred)
cred             1543 security/security.c 	if (unlikely(cred->security == NULL))
cred             1546 security/security.c 	call_void_hook(cred_free, cred);
cred             1548 security/security.c 	kfree(cred->security);
cred             1549 security/security.c 	cred->security = NULL;
cred             1552 security/security.c int security_prepare_creds(struct cred *new, const struct cred *old, gfp_t gfp)
cred             1565 security/security.c void security_transfer_creds(struct cred *new, const struct cred *old)
cred             1570 security/security.c void security_cred_getsecid(const struct cred *c, u32 *secid)
cred             1577 security/security.c int security_kernel_act_as(struct cred *new, u32 secid)
cred             1582 security/security.c int security_kernel_create_files_as(struct cred *new, struct inode *inode)
cred             1631 security/security.c int security_task_fix_setuid(struct cred *new, const struct cred *old,
cred             1674 security/security.c int security_task_prlimit(const struct cred *cred, const struct cred *tcred,
cred             1677 security/security.c 	return call_int_hook(task_prlimit, 0, cred, tcred, flags);
cred             1702 security/security.c 			int sig, const struct cred *cred)
cred             1704 security/security.c 	return call_int_hook(task_kill, 0, p, info, sig, cred);
cred             2323 security/security.c int security_key_alloc(struct key *key, const struct cred *cred,
cred             2326 security/security.c 	return call_int_hook(key_alloc, 0, key, cred, flags);
cred             2335 security/security.c 			    const struct cred *cred, unsigned perm)
cred             2337 security/security.c 	return call_int_hook(key_permission, 0, key_ref, cred, perm);
cred              210 security/selinux/hooks.c 	struct cred *cred = (struct cred *) current->real_cred;
cred              213 security/selinux/hooks.c 	tsec = selinux_cred(cred);
cred              220 security/selinux/hooks.c static inline u32 cred_sid(const struct cred *cred)
cred              224 security/selinux/hooks.c 	tsec = selinux_cred(cred);
cred              461 security/selinux/hooks.c 			const struct cred *cred)
cred              463 security/selinux/hooks.c 	const struct task_security_struct *tsec = selinux_cred(cred);
cred              480 security/selinux/hooks.c 			const struct cred *cred)
cred              482 security/selinux/hooks.c 	const struct task_security_struct *tsec = selinux_cred(cred);
cred              651 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred              805 security/selinux/hooks.c 		rc = may_context_mount_sb_relabel(fscontext_sid, sbsec, cred);
cred              825 security/selinux/hooks.c 							  cred);
cred              831 security/selinux/hooks.c 							     cred);
cred              844 security/selinux/hooks.c 						     cred);
cred              863 security/selinux/hooks.c 							     sbsec, cred);
cred             1628 security/selinux/hooks.c static int cred_has_capability(const struct cred *cred,
cred             1634 security/selinux/hooks.c 	u32 sid = cred_sid(cred);
cred             1668 security/selinux/hooks.c static int inode_has_perm(const struct cred *cred,
cred             1676 security/selinux/hooks.c 	validate_creds(cred);
cred             1681 security/selinux/hooks.c 	sid = cred_sid(cred);
cred             1691 security/selinux/hooks.c static inline int dentry_has_perm(const struct cred *cred,
cred             1701 security/selinux/hooks.c 	return inode_has_perm(cred, inode, av, &ad);
cred             1707 security/selinux/hooks.c static inline int path_has_perm(const struct cred *cred,
cred             1717 security/selinux/hooks.c 	return inode_has_perm(cred, inode, av, &ad);
cred             1721 security/selinux/hooks.c static inline int file_path_has_perm(const struct cred *cred,
cred             1729 security/selinux/hooks.c 	return inode_has_perm(cred, file_inode(file), av, &ad);
cred             1744 security/selinux/hooks.c static int file_has_perm(const struct cred *cred,
cred             1751 security/selinux/hooks.c 	u32 sid = cred_sid(cred);
cred             1768 security/selinux/hooks.c 	rc = bpf_fd_pass(file, cred_sid(cred));
cred             1776 security/selinux/hooks.c 		rc = inode_has_perm(cred, inode, av, &ad);
cred             1963 security/selinux/hooks.c static int superblock_has_perm(const struct cred *cred,
cred             1969 security/selinux/hooks.c 	u32 sid = cred_sid(cred);
cred             2155 security/selinux/hooks.c static int selinux_capset(struct cred *new, const struct cred *old,
cred             2175 security/selinux/hooks.c static int selinux_capable(const struct cred *cred, struct user_namespace *ns,
cred             2178 security/selinux/hooks.c 	return cred_has_capability(cred, cap, opts, ns == &init_user_ns);
cred             2183 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2195 security/selinux/hooks.c 		rc = superblock_has_perm(cred, sb, FILESYSTEM__QUOTAMOD, NULL);
cred             2200 security/selinux/hooks.c 		rc = superblock_has_perm(cred, sb, FILESYSTEM__QUOTAGET, NULL);
cred             2211 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2213 security/selinux/hooks.c 	return dentry_has_perm(cred, dentry, FILE__QUOTAON);
cred             2344 security/selinux/hooks.c 	new_tsec = selinux_cred(bprm->cred);
cred             2451 security/selinux/hooks.c static inline void flush_unauthorized_files(const struct cred *cred,
cred             2473 security/selinux/hooks.c 			if (file_path_has_perm(cred, file, FILE__READ | FILE__WRITE))
cred             2484 security/selinux/hooks.c 	n = iterate_fd(files, 0, match_file, cred);
cred             2488 security/selinux/hooks.c 	devnull = dentry_open(&selinux_null, O_RDWR, cred);
cred             2494 security/selinux/hooks.c 	} while ((n = iterate_fd(files, n, match_file, cred)) != 0);
cred             2508 security/selinux/hooks.c 	new_tsec = selinux_cred(bprm->cred);
cred             2513 security/selinux/hooks.c 	flush_unauthorized_files(bprm->cred, current->files);
cred             2736 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2741 security/selinux/hooks.c 	return superblock_has_perm(cred, sb, FILESYSTEM__MOUNT, &ad);
cred             2746 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2751 security/selinux/hooks.c 	return superblock_has_perm(cred, dentry->d_sb, FILESYSTEM__GETATTR, &ad);
cred             2760 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2763 security/selinux/hooks.c 		return superblock_has_perm(cred, path->dentry->d_sb,
cred             2766 security/selinux/hooks.c 		return path_has_perm(cred, path, FILE__MOUNTON);
cred             2772 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2774 security/selinux/hooks.c 	return path_has_perm(cred, to_path, FILE__MOUNTON);
cred             2779 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2781 security/selinux/hooks.c 	return superblock_has_perm(cred, mnt->mnt_sb,
cred             2887 security/selinux/hooks.c 					  const struct cred *old,
cred             2888 security/selinux/hooks.c 					  struct cred *new)
cred             2997 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             2999 security/selinux/hooks.c 	return dentry_has_perm(cred, dentry, FILE__READ);
cred             3005 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3010 security/selinux/hooks.c 	validate_creds(cred);
cred             3014 security/selinux/hooks.c 	sid = cred_sid(cred);
cred             3045 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3062 security/selinux/hooks.c 	validate_creds(cred);
cred             3069 security/selinux/hooks.c 	sid = cred_sid(cred);
cred             3096 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3111 security/selinux/hooks.c 		return dentry_has_perm(cred, dentry, FILE__SETATTR);
cred             3119 security/selinux/hooks.c 	return dentry_has_perm(cred, dentry, av);
cred             3129 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3132 security/selinux/hooks.c 	if (cap_capable(cred, &init_user_ns, CAP_MAC_ADMIN, opts))
cred             3134 security/selinux/hooks.c 	if (cred_has_capability(cred, CAP_MAC_ADMIN, opts, true))
cred             3263 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3265 security/selinux/hooks.c 	return dentry_has_perm(cred, dentry, FILE__GETATTR);
cred             3270 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3272 security/selinux/hooks.c 	return dentry_has_perm(cred, dentry, FILE__GETATTR);
cred             3424 security/selinux/hooks.c static int selinux_inode_copy_up(struct dentry *src, struct cred **new)
cred             3428 security/selinux/hooks.c 	struct cred *new_creds = *new;
cred             3524 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3531 security/selinux/hooks.c 	return file_has_perm(cred, file,
cred             3564 security/selinux/hooks.c static int ioctl_has_perm(const struct cred *cred, struct file *file,
cred             3572 security/selinux/hooks.c 	u32 ssid = cred_sid(cred);
cred             3606 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3619 security/selinux/hooks.c 		error = file_has_perm(cred, file, FILE__GETATTR);
cred             3625 security/selinux/hooks.c 		error = file_has_perm(cred, file, FILE__SETATTR);
cred             3632 security/selinux/hooks.c 		error = file_has_perm(cred, file, 0);
cred             3637 security/selinux/hooks.c 		error = cred_has_capability(cred, CAP_SYS_TTY_CONFIG,
cred             3645 security/selinux/hooks.c 		error = ioctl_has_perm(cred, file, FILE__IOCTL, (u16) cmd);
cred             3654 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3655 security/selinux/hooks.c 	u32 sid = cred_sid(cred);
cred             3684 security/selinux/hooks.c 		return file_has_perm(cred, file, av);
cred             3731 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3732 security/selinux/hooks.c 	u32 sid = cred_sid(cred);
cred             3760 security/selinux/hooks.c 			rc = file_has_perm(cred, vma->vm_file, FILE__EXECMOD);
cred             3771 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3773 security/selinux/hooks.c 	return file_has_perm(cred, file, FILE__LOCK);
cred             3779 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3785 security/selinux/hooks.c 			err = file_has_perm(cred, file, FILE__WRITE);
cred             3796 security/selinux/hooks.c 		err = file_has_perm(cred, file, 0);
cred             3809 security/selinux/hooks.c 		err = file_has_perm(cred, file, FILE__LOCK);
cred             3849 security/selinux/hooks.c 	const struct cred *cred = current_cred();
cred             3851 security/selinux/hooks.c 	return file_has_perm(cred, file, file_to_av(file));
cred             3895 security/selinux/hooks.c static int selinux_cred_prepare(struct cred *new, const struct cred *old,
cred             3908 security/selinux/hooks.c static void selinux_cred_transfer(struct cred *new, const struct cred *old)
cred             3916 security/selinux/hooks.c static void selinux_cred_getsecid(const struct cred *c, u32 *secid)
cred             3925 security/selinux/hooks.c static int selinux_kernel_act_as(struct cred *new, u32 secid)
cred             3949 security/selinux/hooks.c static int selinux_kernel_create_files_as(struct cred *new, struct inode *inode)
cred             4089 security/selinux/hooks.c static int selinux_task_prlimit(const struct cred *cred, const struct cred *tcred,
cred             4101 security/selinux/hooks.c 			    cred_sid(cred), cred_sid(tcred),
cred             4144 security/selinux/hooks.c 				int sig, const struct cred *cred)
cred             4153 security/selinux/hooks.c 	if (!cred)
cred             4156 security/selinux/hooks.c 		secid = cred_sid(cred);
cred             6347 security/selinux/hooks.c 	struct cred *new;
cred             6549 security/selinux/hooks.c static int selinux_key_alloc(struct key *k, const struct cred *cred,
cred             6559 security/selinux/hooks.c 	tsec = selinux_cred(cred);
cred             6578 security/selinux/hooks.c 				  const struct cred *cred,
cred             6591 security/selinux/hooks.c 	sid = cred_sid(cred);
cred              148 security/selinux/include/objsec.h static inline struct task_security_struct *selinux_cred(const struct cred *cred)
cred              150 security/selinux/include/objsec.h 	return cred->security + selinux_blob_sizes.lbs_cred;
cred              308 security/smack/smack.h bool smack_privileged_cred(int cap, const struct cred *cred);
cred              343 security/smack/smack.h static inline struct task_smack *smack_cred(const struct cred *cred)
cred              345 security/smack/smack.h 	return cred->security + smack_blob_sizes.lbs_cred;
cred              399 security/smack/smack.h 	const struct cred *cred;
cred              403 security/smack/smack.h 	cred = __task_cred(t);
cred              404 security/smack/smack.h 	skp = smk_of_task(smack_cred(cred));
cred              632 security/smack/smack_access.c bool smack_privileged_cred(int cap, const struct cred *cred)
cred              634 security/smack/smack_access.c 	struct task_smack *tsp = smack_cred(cred);
cred              639 security/smack/smack_access.c 	rc = cap_capable(cred, &init_user_ns, cap, CAP_OPT_NONE);
cred              241 security/smack/smack_lsm.c static int smk_bu_credfile(const struct cred *cred, struct file *file,
cred              244 security/smack/smack_lsm.c 	struct task_smack *tsp = smack_cred(cred);
cred              267 security/smack/smack_lsm.c #define smk_bu_credfile(cred, file, mode, RC) (RC)
cred              425 security/smack/smack_lsm.c 	const struct cred *tracercred;
cred              906 security/smack/smack_lsm.c 	struct task_smack *bsp = smack_cred(bprm->cred);
cred             1786 security/smack/smack_lsm.c 	struct smack_known *tkp = smk_of_task(smack_cred(tsk->cred));
cred             1787 security/smack/smack_lsm.c 	const struct cred *tcred;
cred             1907 security/smack/smack_lsm.c static int smack_cred_alloc_blank(struct cred *cred, gfp_t gfp)
cred             1909 security/smack/smack_lsm.c 	init_task_smack(smack_cred(cred), NULL, NULL);
cred             1919 security/smack/smack_lsm.c static void smack_cred_free(struct cred *cred)
cred             1921 security/smack/smack_lsm.c 	struct task_smack *tsp = smack_cred(cred);
cred             1943 security/smack/smack_lsm.c static int smack_cred_prepare(struct cred *new, const struct cred *old,
cred             1968 security/smack/smack_lsm.c static void smack_cred_transfer(struct cred *new, const struct cred *old)
cred             1988 security/smack/smack_lsm.c static void smack_cred_getsecid(const struct cred *cred, u32 *secid)
cred             1993 security/smack/smack_lsm.c 	skp = smk_of_task(smack_cred(cred));
cred             2005 security/smack/smack_lsm.c static int smack_kernel_act_as(struct cred *new, u32 secid)
cred             2021 security/smack/smack_lsm.c static int smack_kernel_create_files_as(struct cred *new,
cred             2181 security/smack/smack_lsm.c 			   int sig, const struct cred *cred)
cred             2197 security/smack/smack_lsm.c 	if (cred == NULL) {
cred             2207 security/smack/smack_lsm.c 	skp = smk_of_task(smack_cred(cred));
cred             3512 security/smack/smack_lsm.c 	struct cred *new;
cred             4206 security/smack/smack_lsm.c static int smack_key_alloc(struct key *key, const struct cred *cred,
cred             4209 security/smack/smack_lsm.c 	struct smack_known *skp = smk_of_task(smack_cred(cred));
cred             4236 security/smack/smack_lsm.c 				const struct cred *cred, unsigned perm)
cred             4240 security/smack/smack_lsm.c 	struct smack_known *tkp = smk_of_task(smack_cred(cred));
cred             4265 security/smack/smack_lsm.c 	if (smack_privileged_cred(CAP_MAC_OVERRIDE, cred))
cred             4499 security/smack/smack_lsm.c static int smack_inode_copy_up(struct dentry *dentry, struct cred **new)
cred             4505 security/smack/smack_lsm.c 	struct cred *new_creds = *new;
cred             4538 security/smack/smack_lsm.c 					const struct cred *old,
cred             4539 security/smack/smack_lsm.c 					struct cred *new)
cred             4757 security/smack/smack_lsm.c 	struct cred *cred = (struct cred *) current->cred;
cred             4773 security/smack/smack_lsm.c 	tsp = smack_cred(cred);
cred              948 security/tomoyo/common.c 	    (!uid_eq(task->cred->uid,  GLOBAL_ROOT_UID) ||
cred              949 security/tomoyo/common.c 	     !uid_eq(task->cred->euid, GLOBAL_ROOT_UID)))
cred               36 security/tomoyo/tomoyo.c static int tomoyo_cred_prepare(struct cred *new, const struct cred *old,