Home
last modified time | relevance | path

Searched refs:userns (Results 1 – 13 of 13) sorted by relevance

/linux-5.19.10/fs/nfs/
Dnfs3xdr.c537 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 …]
Dnfs2xdr.c267 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 …]
/linux-5.19.10/net/sunrpc/
Dauth_unix.c118 struct user_namespace *userns = clnt->cl_cred ? in unx_marshal() local
135 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid)); in unx_marshal()
136 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid)); in unx_marshal()
141 *p++ = cpu_to_be32(from_kgid_munged(userns, gi->gid[i])); in unx_marshal()
Dsvcauth_unix.c857 struct user_namespace *userns; in svcauth_unix_accept() local
878 userns = (rqstp->rq_xprt && rqstp->rq_xprt->xpt_cred) ? in svcauth_unix_accept()
880 cred->cr_uid = make_kuid(userns, svc_getnl(argv)); /* uid */ in svcauth_unix_accept()
881 cred->cr_gid = make_kgid(userns, svc_getnl(argv)); /* gid */ in svcauth_unix_accept()
889 kgid_t kgid = make_kgid(userns, svc_getnl(argv)); in svcauth_unix_accept()
/linux-5.19.10/tools/testing/selftests/rlimits/
D.gitignore2 rlimits-per-userns
DMakefile4 TEST_GEN_PROGS := rlimits-per-userns
/linux-5.19.10/fs/nfsd/
Dexport.c1269 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()
Dnfsxdr.c217 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()
Dnfs3xdr.c341 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()
Dnfs4xdr.c680 struct user_namespace *userns = nfsd_user_namespace(argp->rqstp); in nfsd4_decode_authsys_parms() local
682 kuid_t kuid = make_kuid(userns, uid); in nfsd4_decode_authsys_parms()
683 kgid_t kgid = make_kgid(userns, gid); in nfsd4_decode_authsys_parms()
/linux-5.19.10/security/apparmor/
Dpolicy.c638 struct user_namespace *userns, int cap) in policy_ns_capable() argument
643 err = cap_capable(current_cred(), userns, cap, CAP_OPT_NONE); in policy_ns_capable()
/linux-5.19.10/net/sunrpc/auth_gss/
Dauth_gss.c392 struct user_namespace *userns = cred->user_ns; in gss_encode_v0_msg() local
394 uid_t uid = from_kuid_munged(userns, gss_msg->uid); in gss_encode_v0_msg()
419 struct user_namespace *userns = cred->user_ns; in gss_encode_v1_msg() local
426 from_kuid_munged(userns, gss_msg->uid)); in gss_encode_v1_msg()
/linux-5.19.10/Documentation/admin-guide/
Dcgroup-v2.rst2568 namespace's userns