/linux-master/include/linux/ |
H A D | mnt_idmapping.h | 85 * vfsgid_eq_kgid - check whether kgid and vfsgid have the same value 86 * @vfsgid: the vfsgid to compare 89 * Check whether @vfsgid and @kgid have the same values. 91 * Return: true if @vfsgid and @kgid have the same value, false if not. 94 static inline bool vfsgid_eq_kgid(vfsgid_t vfsgid, kgid_t kgid) argument 96 return vfsgid_valid(vfsgid) && __vfsgid_val(vfsgid) == __kgid_val(kgid); 116 int vfsgid_in_group_p(vfsgid_t vfsgid); 131 struct user_namespace *fs_userns, vfsgid_t vfsgid); 183 vfsgid_has_fsmapping(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsgid_t vfsgid) argument 190 vfsgid_has_mapping(struct user_namespace *userns, vfsgid_t vfsgid) argument 204 vfsgid_into_kgid(vfsgid_t vfsgid) argument [all...] |
/linux-master/fs/ |
H A D | mnt_idmapping.c | 153 * from_vfsgid - map a vfsgid into the filesystem idmapping 156 * @vfsgid : vfsgid to be mapped 158 * Map @vfsgid into the filesystem idmapping. This function has to be used in 159 * order to e.g. write @vfsgid to inode->i_gid. 161 * Return: @vfsgid mapped into the filesystem idmapping 164 struct user_namespace *fs_userns, vfsgid_t vfsgid) 169 return AS_KGIDT(vfsgid); 170 gid = map_id_up(&idmap->gid_map, __vfsgid_val(vfsgid)); 182 * @vfsgid 163 from_vfsgid(struct mnt_idmap *idmap, struct user_namespace *fs_userns, vfsgid_t vfsgid) argument 189 vfsgid_in_group_p(vfsgid_t vfsgid) argument 194 vfsgid_in_group_p(vfsgid_t vfsgid) argument [all...] |
H A D | attr.c | 126 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 129 if (vfsgid_eq(ia_vfsgid, vfsgid)) 136 if (!vfsgid_valid(vfsgid) && 195 vfsgid_t vfsgid; local 201 vfsgid = attr->ia_vfsgid; 203 vfsgid = i_gid_into_vfsgid(idmap, inode); 206 if (!in_group_or_capable(idmap, inode, vfsgid))
|
H A D | posix_acl.c | 382 vfsgid_t vfsgid; local 401 vfsgid = i_gid_into_vfsgid(idmap, inode); 402 if (vfsgid_in_group_p(vfsgid)) { 409 vfsgid = make_vfsgid(idmap, fs_userns, 411 if (vfsgid_in_group_p(vfsgid)) { 898 vfsgid_t vfsgid; local 922 vfsgid = make_vfsgid(idmap, fs_userns, acl_e->e_gid); 924 caller_userns, vfsgid_into_kgid(vfsgid)));
|
H A D | internal.h | 200 const struct inode *inode, vfsgid_t vfsgid);
|
H A D | exec.c | 1651 vfsgid_t vfsgid; local 1671 vfsgid = i_gid_into_vfsgid(idmap, inode); 1676 !vfsgid_has_mapping(bprm->cred->user_ns, vfsgid)) 1686 bprm->cred->egid = vfsgid_into_kgid(vfsgid);
|
H A D | stat.c | 50 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 57 stat->gid = vfsgid_into_kgid(vfsgid);
|
H A D | inode.c | 2524 * @vfsgid: the new/current vfsgid of @inode 2526 * Check wether @vfsgid is in the caller's group list or if the caller is 2533 const struct inode *inode, vfsgid_t vfsgid) 2535 if (vfsgid_in_group_p(vfsgid)) 2532 in_group_or_capable(struct mnt_idmap *idmap, const struct inode *inode, vfsgid_t vfsgid) argument
|
H A D | namei.c | 368 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 369 if (vfsgid_in_group_p(vfsgid))
|
/linux-master/fs/smb/server/ |
H A D | smbacl.h | 229 vfsgid_t vfsgid; local 232 vfsgid = make_vfsgid(idmap, &init_user_ns, pace->e_gid); 235 return from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid));
|
H A D | ndr.c | 349 vfsgid_t vfsgid; local 381 vfsgid = i_gid_into_vfsgid(idmap, inode); 382 ret = ndr_write_int64(n, from_kgid(&init_user_ns, vfsgid_into_kgid(vfsgid)));
|
H A D | oplock.c | 1711 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 1755 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)),
|
H A D | smb2pdu.c | 2615 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 2618 fattr->cf_gid = vfsgid_into_kgid(vfsgid); 5124 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 5158 id_to_sid(from_kgid_munged(&init_user_ns, vfsgid_into_kgid(vfsgid)),
|
/linux-master/fs/xfs/ |
H A D | xfs_itable.c | 70 vfsgid_t vfsgid; local 98 vfsgid = i_gid_into_vfsgid(idmap, inode); 106 buf->bs_gid = from_kgid(sb_userns, vfsgid_into_kgid(vfsgid));
|
H A D | xfs_iops.c | 561 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 573 stat->gid = vfsgid_into_kgid(vfsgid);
|
/linux-master/fs/overlayfs/ |
H A D | inode.c | 356 vfsgid_t vfsgid; local 365 vfsgid = make_vfsgid(idmap, fs_userns, e->e_gid); 366 e->e_gid = vfsgid_into_kgid(vfsgid);
|
H A D | util.c | 1518 vfsgid_t vfsgid; local 1525 vfsgid = i_gid_into_vfsgid(real_idmap, realinode); 1528 inode->i_gid = vfsgid_into_kgid(vfsgid);
|
/linux-master/security/integrity/ima/ |
H A D | ima_policy.c | 83 static inline bool vfsgid_gt_kgid(vfsgid_t vfsgid, kgid_t kgid) argument 85 return __vfsgid_val(vfsgid) > __kgid_val(kgid); 93 static inline bool vfsgid_lt_kgid(vfsgid_t vfsgid, kgid_t kgid) argument 95 return __vfsgid_val(vfsgid) < __kgid_val(kgid); 113 bool (*fgroup_op)(vfsgid_t vfsgid, kgid_t rule_gid); /* vfsgid_eq_kgid(), vfsgid_gt_kgid(), vfsgid_lt_kgid() */
|
/linux-master/fs/f2fs/ |
H A D | file.c | 926 vfsgid_t vfsgid = i_gid_into_vfsgid(idmap, inode); local 928 if (!vfsgid_in_group_p(vfsgid) &&
|