Searched refs:kcred (Results 1 – 2 of 2) sorted by relevance
872 struct cred *kcred; in get_backchannel_cred() local874 kcred = prepare_kernel_cred(NULL); in get_backchannel_cred()875 if (!kcred) in get_backchannel_cred()878 kcred->fsuid = ses->se_cb_sec.uid; in get_backchannel_cred()879 kcred->fsgid = ses->se_cb_sec.gid; in get_backchannel_cred()880 return kcred; in get_backchannel_cred()
409 struct cred *kcred; in ff_layout_alloc_lseg() local490 kcred = prepare_kernel_cred(NULL); in ff_layout_alloc_lseg()493 kcred = prepare_kernel_cred(NULL); in ff_layout_alloc_lseg()497 if (!kcred) in ff_layout_alloc_lseg()499 kcred->fsuid = uid; in ff_layout_alloc_lseg()500 kcred->fsgid = gid; in ff_layout_alloc_lseg()501 cred = RCU_INITIALIZER(kcred); in ff_layout_alloc_lseg()