Home
last modified time | relevance | path

Searched refs:kcred (Results 1 – 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4callback.c872 struct cred *kcred; in get_backchannel_cred() local
874 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()
/kernel/linux/linux-5.10/fs/nfs/flexfilelayout/
Dflexfilelayout.c409 struct cred *kcred; in ff_layout_alloc_lseg() local
490 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()