/linux/fs/nfs/ |
A D | nfs3xdr.c | 537 struct user_namespace *userns) in encode_sattr3() argument 624 struct user_namespace *userns) in decode_fattr3() argument 678 struct user_namespace *userns) in decode_post_op_attr() argument 748 struct user_namespace *userns) in decode_wcc_data() argument 1020 struct user_namespace *userns) in encode_createhow3() argument 1079 struct user_namespace *userns) in encode_symlinkdata3() argument 1124 struct user_namespace *userns) in encode_devicedata3() argument 1132 struct user_namespace *userns) in encode_mknoddata3() argument 1138 encode_devicedata3(xdr, args, userns); in encode_mknoddata3() 1755 struct user_namespace *userns) in decode_create3resok() argument [all …]
|
A 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() 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() 528 struct user_namespace *userns) in decode_diropres() argument [all …]
|
/linux/net/sunrpc/ |
A D | auth_unix.c | 110 struct user_namespace *userns = clnt->cl_cred ? in unx_marshal() local 127 *p++ = cpu_to_be32(from_kuid_munged(userns, cred->cr_cred->fsuid)); in unx_marshal() 128 *p++ = cpu_to_be32(from_kgid_munged(userns, cred->cr_cred->fsgid)); in unx_marshal() 133 *p++ = cpu_to_be32(from_kgid_munged(userns, gi->gid[i])); in unx_marshal()
|
A D | svcauth_unix.c | 797 struct user_namespace *userns; in svcauth_unix_accept() local 818 userns = (rqstp->rq_xprt && rqstp->rq_xprt->xpt_cred) ? in svcauth_unix_accept() 820 cred->cr_uid = make_kuid(userns, svc_getnl(argv)); /* uid */ in svcauth_unix_accept() 821 cred->cr_gid = make_kgid(userns, svc_getnl(argv)); /* gid */ in svcauth_unix_accept() 829 kgid_t kgid = make_kgid(userns, svc_getnl(argv)); in svcauth_unix_accept()
|
/linux/tools/testing/selftests/rlimits/ |
A D | .gitignore | 2 rlimits-per-userns
|
A D | Makefile | 4 TEST_GEN_PROGS := rlimits-per-userns
|
/linux/fs/nfsd/ |
A 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()
|
A 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()
|
A 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()
|
A 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()
|
/linux/security/apparmor/ |
A D | policy.c | 638 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/net/sunrpc/auth_gss/ |
A D | auth_gss.c | 391 struct user_namespace *userns = cred->user_ns; in gss_encode_v0_msg() local 393 uid_t uid = from_kuid_munged(userns, gss_msg->uid); in gss_encode_v0_msg() 418 struct user_namespace *userns = cred->user_ns; in gss_encode_v1_msg() local 425 from_kuid_munged(userns, gss_msg->uid)); in gss_encode_v1_msg()
|
/linux/Documentation/admin-guide/ |
A D | cgroup-v2.rst | 2503 namespace's userns
|