/Linux-v6.1/include/linux/ |
D | mnt_idmapping.h | 96 static inline bool vfsgid_eq_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_eq_kgid() argument 98 return vfsgid_valid(vfsgid) && __vfsgid_val(vfsgid) == __kgid_val(kgid); in vfsgid_eq_kgid() 128 static inline int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument 130 return in_group_p(AS_KGIDT(vfsgid)); in vfsgid_in_group_p() 133 static inline int vfsgid_in_group_p(vfsgid_t vfsgid) in vfsgid_in_group_p() argument 362 vfsgid_t vfsgid) in from_vfsgid() argument 367 return AS_KGIDT(vfsgid); in from_vfsgid() 368 gid = from_kgid(mnt_userns, AS_KGIDT(vfsgid)); in from_vfsgid() 417 vfsgid_t vfsgid) in vfsgid_has_fsmapping() argument 419 return gid_valid(from_vfsgid(mnt_userns, fs_userns, vfsgid)); in vfsgid_has_fsmapping() [all …]
|
/Linux-v6.1/fs/ |
D | attr.c | 63 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in chgrp_ok() local 66 if (vfsgid_eq(ia_vfsgid, vfsgid)) in chgrp_ok() 73 if (!vfsgid_valid(vfsgid) && in chgrp_ok() 132 vfsgid_t vfsgid; in setattr_prepare() local 138 vfsgid = attr->ia_vfsgid; in setattr_prepare() 140 vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in setattr_prepare() 143 if (!vfsgid_in_group_p(vfsgid) && in setattr_prepare() 254 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in setattr_copy() local 255 if (!vfsgid_in_group_p(vfsgid) && in setattr_copy()
|
D | posix_acl.c | 368 vfsgid_t vfsgid; in posix_acl_permission() local 387 vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in posix_acl_permission() 388 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission() 395 vfsgid = make_vfsgid(mnt_userns, fs_userns, in posix_acl_permission() 397 if (vfsgid_in_group_p(vfsgid)) { in posix_acl_permission() 744 vfsgid_t vfsgid; in posix_acl_getxattr_idmapped_mnt() local 765 vfsgid = make_vfsgid(mnt_userns, fs_userns, gid); in posix_acl_getxattr_idmapped_mnt() 767 vfsgid_into_kgid(vfsgid))); in posix_acl_getxattr_idmapped_mnt()
|
/Linux-v6.1/fs/ksmbd/ |
D | smbacl.h | 229 vfsgid_t vfsgid; in posix_acl_gid_translate() local 232 vfsgid = make_vfsgid(mnt_userns, &init_user_ns, pace->e_gid); in posix_acl_gid_translate() 235 return from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid)); in posix_acl_gid_translate()
|
D | ndr.c | 349 vfsgid_t vfsgid; in ndr_encode_posix_acl() local 381 vfsgid = i_gid_into_vfsgid(user_ns, inode); in ndr_encode_posix_acl() 382 ret = ndr_write_int64(n, from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid))); in ndr_encode_posix_acl()
|
D | oplock.c | 1613 vfsgid_t vfsgid = i_gid_into_vfsgid(user_ns, inode); in create_posix_rsp_buf() local 1657 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in create_posix_rsp_buf()
|
D | smb2pdu.c | 2481 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in ksmbd_acls_fattr() local 2484 fattr->cf_gid = vfsgid_into_kgid(vfsgid); in ksmbd_acls_fattr() 4725 vfsgid_t vfsgid = i_gid_into_vfsgid(user_ns, inode); in find_file_posix_info() local 4752 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)), in find_file_posix_info()
|
/Linux-v6.1/fs/xfs/ |
D | xfs_itable.c | 70 vfsgid_t vfsgid; in xfs_bulkstat_one_int() local 87 vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in xfs_bulkstat_one_int() 95 buf->bs_gid = from_kgid(sb_userns, vfsgid_into_kgid(vfsgid)); in xfs_bulkstat_one_int()
|
D | xfs_iops.c | 562 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in xfs_vn_getattr() local 574 stat->gid = vfsgid_into_kgid(vfsgid); in xfs_vn_getattr()
|
/Linux-v6.1/fs/overlayfs/ |
D | inode.c | 471 vfsgid_t vfsgid; in ovl_idmap_posix_acl() local 480 vfsgid = make_vfsgid(mnt_userns, fs_userns, e->e_gid); in ovl_idmap_posix_acl() 481 e->e_gid = vfsgid_into_kgid(vfsgid); in ovl_idmap_posix_acl()
|
/Linux-v6.1/fs/f2fs/ |
D | file.c | 920 vfsgid_t vfsgid = i_gid_into_vfsgid(mnt_userns, inode); in __setattr_copy() local 922 if (!vfsgid_in_group_p(vfsgid) && in __setattr_copy()
|