Searched refs:userns (Results 1 – 6 of 6) sorted by relevance
/fs/nfs/ |
D | nfs3xdr.c | 537 struct user_namespace *userns) in encode_sattr3() argument 571 *p++ = cpu_to_be32(from_kuid_munged(userns, attr->ia_uid)); in encode_sattr3() 577 *p++ = cpu_to_be32(from_kgid_munged(userns, attr->ia_gid)); in encode_sattr3() 624 struct user_namespace *userns) in decode_fattr3() argument 637 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr3() 640 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr3() 678 struct user_namespace *userns) in decode_post_op_attr() argument 686 return decode_fattr3(xdr, fattr, userns); in decode_post_op_attr() 748 struct user_namespace *userns) in decode_wcc_data() argument 755 error = decode_post_op_attr(xdr, fattr, userns); in decode_wcc_data() [all …]
|
D | nfs2xdr.c | 267 struct user_namespace *userns) in decode_fattr() argument 282 fattr->uid = make_kuid(userns, be32_to_cpup(p++)); in decode_fattr() 285 fattr->gid = make_kgid(userns, be32_to_cpup(p++)); in decode_fattr() 341 struct user_namespace *userns) in encode_sattr() argument 352 *p++ = cpu_to_be32(from_kuid_munged(userns, attr->ia_uid)); in encode_sattr() 356 *p++ = cpu_to_be32(from_kgid_munged(userns, attr->ia_gid)); in encode_sattr() 467 struct user_namespace *userns) in decode_attrstat() argument 479 error = decode_fattr(xdr, result, userns); in decode_attrstat() 515 struct user_namespace *userns) in decode_diropok() argument 522 error = decode_fattr(xdr, result->fattr, userns); in decode_diropok() [all …]
|
/fs/nfsd/ |
D | export.c | 1269 struct user_namespace *userns = m->file->f_cred->user_ns; in exp_flags() local 1274 if (!uid_eq(anonu, make_kuid(userns, (uid_t)-2)) && in exp_flags() 1275 !uid_eq(anonu, make_kuid(userns, 0x10000-2))) in exp_flags() 1276 seq_printf(m, ",anonuid=%u", from_kuid_munged(userns, anonu)); in exp_flags() 1277 if (!gid_eq(anong, make_kgid(userns, (gid_t)-2)) && in exp_flags() 1278 !gid_eq(anong, make_kgid(userns, 0x10000-2))) in exp_flags() 1279 seq_printf(m, ",anongid=%u", from_kgid_munged(userns, anong)); in exp_flags()
|
D | nfsxdr.c | 217 struct user_namespace *userns = nfsd_user_namespace(rqstp); in svcxdr_encode_fattr() local 231 *p++ = cpu_to_be32((u32)from_kuid_munged(userns, stat->uid)); in svcxdr_encode_fattr() 232 *p++ = cpu_to_be32((u32)from_kgid_munged(userns, stat->gid)); in svcxdr_encode_fattr()
|
D | nfs3xdr.c | 341 struct user_namespace *userns = nfsd_user_namespace(rqstp); in svcxdr_encode_fattr3() local 352 *p++ = cpu_to_be32((u32)from_kuid_munged(userns, stat->uid)); in svcxdr_encode_fattr3() 353 *p++ = cpu_to_be32((u32)from_kgid_munged(userns, stat->gid)); in svcxdr_encode_fattr3()
|
D | nfs4xdr.c | 682 struct user_namespace *userns = nfsd_user_namespace(argp->rqstp); in nfsd4_decode_authsys_parms() local 684 kuid_t kuid = make_kuid(userns, uid); in nfsd4_decode_authsys_parms() 685 kgid_t kgid = make_kgid(userns, gid); in nfsd4_decode_authsys_parms()
|