Home
last modified time | relevance | path

Searched refs:kgid_t (Results 1 – 25 of 182) sorted by relevance

12345678

/Linux-v6.1/include/linux/
Duidgid.h28 } 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 …]
Dmnt_idmapping.h25 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 …]
Dcred.h28 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 …]
Dsysfs.h346 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()
Dipc.h18 kgid_t gid;
20 kgid_t cgid;
Dproc_fs.h65 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()
Dkernfs.h419 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()
Dkey.h214 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-v6.1/kernel/
Dgroups.c63 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()
Daudit.h82 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-v6.1/fs/gfs2/
Dquota.h20 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-v6.1/net/netfilter/
Dxt_owner.c49 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-v6.1/fs/nfsd/
Didmap.h56 __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-v6.1/fs/sysfs/
Dsysfs.h32 kgid_t gid, const void *ns);
35 kuid_t uid, kgid_t gid, const void *ns);
Dfile.c256 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()
Dgroup.c35 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-v6.1/fs/nfs/
Dnfs4idmap.h61 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-v6.1/include/net/9p/
Dclient.h199 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);
D9p.h400 kgid_t n_gid; /* 9p2000.u extensions */
409 kgid_t st_gid;
464 kgid_t gid;
/Linux-v6.1/fs/kernfs/
Dkernfs-internal.h24 kgid_t ia_gid;
152 kuid_t uid, kgid_t gid,
/Linux-v6.1/net/
Dsysctl_net.c58 kuid_t *uid, kgid_t *gid) in net_ctl_set_ownership()
62 kgid_t ns_root_gid; in net_ctl_set_ownership()
/Linux-v6.1/drivers/base/power/
Dpower.h80 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-v6.1/include/net/
Dscm.h21 kgid_t gid;
57 struct pid *pid, kuid_t uid, kgid_t gid) in scm_set_cred()
/Linux-v6.1/fs/jfs/
Djfs_incore.h31 kgid_t saved_gid; /* saved for gid mount option */
197 kgid_t gid; /* gid to override on-disk gid */
/Linux-v6.1/fs/ksmbd/
Dsmbacl.h153 kgid_t cf_gid;
168 kgid_t gid;

12345678