/linux-6.1.9/include/linux/ |
D | uidgid.h | 28 } kgid_t; typedef 31 #define KGIDT_INIT(value) (kgid_t){ value } 39 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 49 static inline gid_t __kgid_val(kgid_t gid) in __kgid_val() 66 static inline bool gid_eq(kgid_t left, kgid_t right) in gid_eq() 76 static inline bool gid_gt(kgid_t left, kgid_t right) in gid_gt() 86 static inline bool gid_gte(kgid_t left, kgid_t right) in gid_gte() 96 static inline bool gid_lt(kgid_t left, kgid_t right) in gid_lt() 106 static inline bool gid_lte(kgid_t left, kgid_t right) in gid_lte() 116 static inline bool gid_valid(kgid_t gid) in gid_valid() [all …]
|
D | mnt_idmapping.h | 25 static_assert(sizeof(vfsgid_t) == sizeof(kgid_t)); 27 static_assert(offsetof(vfsgid_t, val) == offsetof(kgid_t, val)); 96 static inline bool vfsgid_eq_kgid(vfsgid_t vfsgid, kgid_t kgid) in vfsgid_eq_kgid() 116 #define AS_KGIDT(val) (kgid_t){ __vfsgid_val(val) } 241 kgid_t kgid) in make_vfsgid() 256 static inline kgid_t mapped_kgid_fs(struct user_namespace *mnt_userns, in mapped_kgid_fs() 258 kgid_t kgid) in mapped_kgid_fs() 360 static inline kgid_t from_vfsgid(struct user_namespace *mnt_userns, in from_vfsgid() 396 static inline kgid_t mapped_kgid_user(struct user_namespace *mnt_userns, in mapped_kgid_user() 398 kgid_t kgid) in mapped_kgid_user() [all …]
|
D | cred.h | 28 kgid_t gid[]; 60 extern int in_group_p(kgid_t); 61 extern int in_egroup_p(kgid_t); 62 extern int groups_search(const struct group_info *, kgid_t); 73 static inline int in_group_p(kgid_t grp) in in_group_p() 77 static inline int in_egroup_p(kgid_t grp) in in_egroup_p() 81 static inline int groups_search(const struct group_info *group_info, kgid_t grp) in groups_search() 120 kgid_t gid; /* real GID of the task */ 122 kgid_t sgid; /* saved GID of the task */ 124 kgid_t egid; /* effective GID of the task */ [all …]
|
D | sysfs.h | 346 kgid_t kgid); 347 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid); 349 const char *name, kuid_t kuid, kgid_t kgid); 352 kuid_t kuid, kgid_t kgid); 355 kgid_t kgid); 575 kgid_t kgid) in sysfs_file_change_owner() 583 kgid_t kgid) in sysfs_link_change_owner() 588 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() 595 kuid_t kuid, kgid_t kgid) in sysfs_groups_change_owner() 602 kuid_t kuid, kgid_t kgid) in sysfs_group_change_owner()
|
D | ipc.h | 18 kgid_t gid; 20 kgid_t cgid;
|
D | proc_fs.h | 65 kgid_t pid_gid; 112 extern void proc_set_user(struct proc_dir_entry *, kuid_t, kgid_t); 202 static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {} in proc_set_user()
|
D | kernfs.h | 419 kuid_t uid, kgid_t gid, 425 kuid_t uid, kgid_t gid, 517 umode_t mode, kuid_t uid, kgid_t gid, in kernfs_create_dir_ns() 523 umode_t mode, kuid_t uid, kgid_t gid, in __kernfs_create_file()
|
D | key.h | 214 kgid_t gid; 285 kuid_t uid, kgid_t gid, 412 extern struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid,
|
/linux-6.1.9/kernel/ |
D | groups.c | 63 kgid_t kgid; in groups_from_user() 78 kgid_t a = *(kgid_t *)_a; in gid_cmp() 79 kgid_t b = *(kgid_t *)_b; in gid_cmp() 92 int groups_search(const struct group_info *group_info, kgid_t grp) in groups_search() 227 int in_group_p(kgid_t grp) in in_group_p() 239 int in_egroup_p(kgid_t grp) in in_egroup_p()
|
D | audit.h | 82 kgid_t gid; 138 kgid_t gid, egid, sgid, fsgid; 161 kgid_t gid; 233 extern int audit_gid_comparator(kgid_t left, u32 op, kgid_t right);
|
/linux-6.1.9/fs/gfs2/ |
D | quota.h | 20 extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); 23 extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid); 26 extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid, 29 kuid_t uid, kgid_t gid);
|
/linux-6.1.9/net/netfilter/ |
D | xt_owner.c | 49 kgid_t gid_min = make_kgid(net->user_ns, info->gid_min); in owner_check() 50 kgid_t gid_max = make_kgid(net->user_ns, info->gid_max); in owner_check() 95 kgid_t gid_min = make_kgid(net->user_ns, info->gid_min); in owner_mt() 96 kgid_t gid_max = make_kgid(net->user_ns, info->gid_max); in owner_mt() 105 kgid_t group = gi->gid[i]; in owner_mt()
|
/linux-6.1.9/fs/nfsd/ |
D | idmap.h | 56 __be32 nfsd_map_name_to_gid(struct svc_rqst *, const char *, size_t, kgid_t *); 58 __be32 nfsd4_encode_group(struct xdr_stream *, struct svc_rqst *, kgid_t);
|
/linux-6.1.9/fs/sysfs/ |
D | sysfs.h | 32 kgid_t gid, const void *ns); 35 kuid_t uid, kgid_t gid, const void *ns);
|
D | file.c | 256 kgid_t gid, const void *ns) in sysfs_add_file_mode_ns() 306 kuid_t uid, kgid_t gid, const void *ns) in sysfs_add_bin_file_mode_ns() 349 kgid_t gid; in sysfs_create_file_ns() 384 kgid_t gid; in sysfs_add_file_to_group() 562 kgid_t gid; in sysfs_create_bin_file() 586 kgid_t kgid) in internal_change_owner() 611 const char *name, kuid_t kuid, kgid_t kgid) in sysfs_link_change_owner() 650 kgid_t kgid) in sysfs_file_change_owner() 691 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner()
|
D | group.c | 35 kuid_t uid, kgid_t gid, in create_files() 112 kgid_t gid; in internal_create_group() 330 kgid_t gid; in sysfs_merge_group() 518 kgid_t kgid) in sysfs_group_change_owner() 561 kuid_t kuid, kgid_t kgid) in sysfs_groups_change_owner()
|
/linux-6.1.9/fs/nfs/ |
D | nfs4idmap.h | 61 int nfs_map_group_to_gid(const struct nfs_server *, const char *, size_t, kgid_t *); 63 int nfs_map_gid_to_group(const struct nfs_server *, kgid_t, char *, size_t);
|
/linux-6.1.9/include/net/9p/ |
D | client.h | 199 kgid_t gid, struct p9_qid *qid); 201 kgid_t gid, struct p9_qid *qid); 221 dev_t rdev, kgid_t gid, struct p9_qid *qid); 223 kgid_t gid, struct p9_qid *qid);
|
D | 9p.h | 400 kgid_t n_gid; /* 9p2000.u extensions */ 409 kgid_t st_gid; 464 kgid_t gid;
|
/linux-6.1.9/fs/kernfs/ |
D | kernfs-internal.h | 24 kgid_t ia_gid; 152 kuid_t uid, kgid_t gid,
|
/linux-6.1.9/net/ |
D | sysctl_net.c | 58 kuid_t *uid, kgid_t *gid) in net_ctl_set_ownership() 62 kgid_t ns_root_gid; in net_ctl_set_ownership()
|
/linux-6.1.9/drivers/base/power/ |
D | power.h | 80 extern int dpm_sysfs_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid); 96 kgid_t kgid) { return 0; } in dpm_sysfs_change_owner()
|
/linux-6.1.9/include/net/ |
D | scm.h | 21 kgid_t gid; 57 struct pid *pid, kuid_t uid, kgid_t gid) in scm_set_cred()
|
/linux-6.1.9/fs/ksmbd/ |
D | smbacl.h | 153 kgid_t cf_gid; 168 kgid_t gid;
|
/linux-6.1.9/fs/jfs/ |
D | jfs_incore.h | 31 kgid_t saved_gid; /* saved for gid mount option */ 197 kgid_t gid; /* gid to override on-disk gid */
|