Searched refs:cred (Results 1 – 13 of 13) sorted by relevance
/drivers/staging/lustre/lnet/libcfs/linux/ |
D | linux-curproc.c | 56 struct cred *cred; in cfs_cap_raise() local 58 cred = prepare_creds(); in cfs_cap_raise() 59 if (cred) { in cfs_cap_raise() 60 cap_raise(cred->cap_effective, cap); in cfs_cap_raise() 61 commit_creds(cred); in cfs_cap_raise() 68 struct cred *cred; in cfs_cap_lower() local 70 cred = prepare_creds(); in cfs_cap_lower() 71 if (cred) { in cfs_cap_lower() 72 cap_lower(cred->cap_effective, cap); in cfs_cap_lower() 73 commit_creds(cred); in cfs_cap_lower()
|
/drivers/misc/vmw_vmci/ |
D | vmci_context.h | 88 const struct cred *cred; member 136 const struct cred *cred);
|
D | vmci_context.c | 87 const struct cred *cred) in vmci_ctx_create() argument 149 if (cred) in vmci_ctx_create() 150 context->cred = get_cred(cred); in vmci_ctx_create() 482 if (context->cred) in ctx_free_ctx() 483 put_cred(context->cred); in ctx_free_ctx() 1206 if (context->cred) in vmci_is_context_owner() 1207 is_owner = uid_eq(context->cred->uid, uid); in vmci_is_context_owner()
|
D | vmci_host.c | 299 const struct cred *cred; in vmci_host_do_init_context() local 321 cred = get_current_cred(); in vmci_host_do_init_context() 325 cred); in vmci_host_do_init_context() 326 put_cred(cred); in vmci_host_do_init_context()
|
/drivers/connector/ |
D | cn_proc.c | 135 const struct cred *cred; in proc_id_connector() local 147 cred = __task_cred(task); in proc_id_connector() 149 ev->event_data.id.r.ruid = from_kuid_munged(&init_user_ns, cred->uid); in proc_id_connector() 150 ev->event_data.id.e.euid = from_kuid_munged(&init_user_ns, cred->euid); in proc_id_connector() 152 ev->event_data.id.r.rgid = from_kgid_munged(&init_user_ns, cred->gid); in proc_id_connector() 153 ev->event_data.id.e.egid = from_kgid_munged(&init_user_ns, cred->egid); in proc_id_connector()
|
/drivers/usb/core/ |
D | devio.c | 77 const struct cred *cred; member 101 const struct cred *cred; member 393 if (as->cred) in free_async() 394 put_cred(as->cred); in free_async() 602 const struct cred *cred = NULL; in async_completed() local 616 cred = get_cred(as->cred); in async_completed() 633 kill_pid_info_as_cred(sinfo.si_signo, &sinfo, pid, cred, secid); in async_completed() 635 put_cred(cred); in async_completed() 1027 ps->cred = get_current_cred(); in usbdev_open() 1067 put_cred(ps->cred); in usbdev_release() [all …]
|
/drivers/misc/mic/cosm/ |
D | cosm_main.c | 76 const struct cred *orig_cred; in cosm_start() 77 struct cred *override_cred; in cosm_start()
|
/drivers/misc/cxl/ |
D | guest.c | 521 const struct cred *cred; in attach_afu_directed() local 545 cred = get_current_cred(); in attach_afu_directed() 546 if (uid_eq(cred->euid, GLOBAL_ROOT_UID)) in attach_afu_directed() 548 put_cred(cred); in attach_afu_directed()
|
/drivers/block/ |
D | osdblk.c | 165 void *caller_context, u8 *cred) in osd_async_op() argument 169 ret = osd_finalize_request(or, 0, cred, NULL); in osd_async_op()
|
/drivers/staging/lustre/lustre/llite/ |
D | file.c | 3156 const struct cred *old_cred = NULL; in ll_inode_permission() 3157 struct cred *cred = NULL; in ll_inode_permission() local 3197 cred = prepare_creds(); in ll_inode_permission() 3198 if (!cred) in ll_inode_permission() 3201 cred->fsuid = make_kuid(&init_user_ns, squash->rsi_uid); in ll_inode_permission() 3202 cred->fsgid = make_kgid(&init_user_ns, squash->rsi_gid); in ll_inode_permission() 3205 cap_lower(cred->cap_effective, cap); in ll_inode_permission() 3207 old_cred = override_creds(cred); in ll_inode_permission() 3216 put_cred(cred); in ll_inode_permission()
|
/drivers/net/ethernet/chelsio/cxgb4vf/ |
D | sge.c | 610 unsigned int cred = fl->avail; in refill_fl() local 709 cred = fl->avail - cred; in refill_fl() 710 fl->pend_cred += cred; in refill_fl() 718 return cred; in refill_fl()
|
/drivers/net/ethernet/chelsio/cxgb4/ |
D | sge.c | 585 unsigned int cred = q->avail; in refill_fl() local 662 out: cred = q->avail - cred; in refill_fl() 663 q->pend_cred += cred; in refill_fl() 673 return cred; in refill_fl()
|
/drivers/net/ |
D | tun.c | 487 const struct cred *cred = current_cred(); in tun_not_capable() local 490 return ((uid_valid(tun->owner) && !uid_eq(cred->euid, tun->owner)) || in tun_not_capable()
|