Home
last modified time | relevance | path

Searched refs:kgid (Results 1 – 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/kernel/
Duid16.c120 kgid_t kgid; in groups16_to_user() local
123 kgid = group_info->gid[i]; in groups16_to_user()
124 group = high2lowgid(from_kgid_munged(user_ns, kgid)); in groups16_to_user()
138 kgid_t kgid; in groups16_from_user() local
144 kgid = make_kgid(user_ns, low2highgid(group)); in groups16_from_user()
145 if (!gid_valid(kgid)) in groups16_from_user()
148 group_info->gid[i] = kgid; in groups16_from_user()
Dgroups.c68 kgid_t kgid; in groups_from_user() local
72 kgid = make_kgid(user_ns, gid); in groups_from_user()
73 if (!gid_valid(kgid)) in groups_from_user()
76 group_info->gid[i] = kgid; in groups_from_user()
Dsys.c424 kgid_t kgid; in __sys_setgid() local
426 kgid = make_kgid(ns, gid); in __sys_setgid()
427 if (!gid_valid(kgid)) in __sys_setgid()
437 new->gid = new->egid = new->sgid = new->fsgid = kgid; in __sys_setgid()
438 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid()
439 new->egid = new->fsgid = kgid; in __sys_setgid()
860 kgid_t kgid; in __sys_setfsgid() local
865 kgid = make_kgid(old->user_ns, gid); in __sys_setfsgid()
866 if (!gid_valid(kgid)) in __sys_setfsgid()
873 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid()
[all …]
Duser_namespace.c474 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() argument
477 return map_id_up(&targ->gid_map, __kgid_val(kgid)); in from_kgid()
498 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() argument
501 gid = from_kgid(targ, kgid); in from_kgid_munged()
/kernel/linux/linux-5.10/include/linux/
Dsysfs.h322 kgid_t kgid);
323 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid);
325 const char *name, kuid_t kuid, kgid_t kgid);
328 kuid_t kuid, kgid_t kgid);
331 kgid_t kgid);
551 kgid_t kgid) in sysfs_file_change_owner() argument
559 kgid_t kgid) in sysfs_link_change_owner() argument
564 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument
571 kuid_t kuid, kgid_t kgid) in sysfs_groups_change_owner() argument
578 kuid_t kuid, kgid_t kgid) in sysfs_group_change_owner() argument
Duidgid.h162 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() argument
164 return __kgid_val(kgid); in from_kgid()
175 static inline gid_t from_kgid_munged(struct user_namespace *to, kgid_t kgid) in from_kgid_munged() argument
177 gid_t gid = from_kgid(to, kgid); in from_kgid_munged()
Ddevice.h803 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
/kernel/linux/linux-5.10/fs/sysfs/
Dfile.c565 kgid_t kgid) in internal_change_owner() argument
570 .ia_gid = kgid, in internal_change_owner()
590 const char *name, kuid_t kuid, kgid_t kgid) in sysfs_link_change_owner() argument
609 error = internal_change_owner(kn, kuid, kgid); in sysfs_link_change_owner()
629 kgid_t kgid) in sysfs_file_change_owner() argument
644 error = internal_change_owner(kn, kuid, kgid); in sysfs_file_change_owner()
670 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument
679 error = internal_change_owner(kobj->sd, kuid, kgid); in sysfs_change_owner()
693 kuid, kgid); in sysfs_change_owner()
703 kuid, kgid); in sysfs_change_owner()
Dgroup.c519 kgid_t kgid) in sysfs_group_change_owner() argument
526 .ia_gid = kgid, in sysfs_group_change_owner()
562 kuid_t kuid, kgid_t kgid) in sysfs_groups_change_owner() argument
573 error = sysfs_group_change_owner(kobj, groups[i], kuid, kgid); in sysfs_groups_change_owner()
/kernel/linux/linux-5.10/drivers/base/power/
Dsysfs.c513 kgid_t kgid) in dpm_sysfs_wakeup_change_owner() argument
516 return device_change_owner(dev->power.wakeup->dev, kuid, kgid); in dpm_sysfs_wakeup_change_owner()
546 kgid_t kgid) in dpm_sysfs_wakeup_change_owner() argument
738 int dpm_sysfs_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid) in dpm_sysfs_change_owner() argument
745 rc = sysfs_group_change_owner(&dev->kobj, &pm_attr_group, kuid, kgid); in dpm_sysfs_change_owner()
751 &dev->kobj, &pm_runtime_attr_group, kuid, kgid); in dpm_sysfs_change_owner()
758 kuid, kgid); in dpm_sysfs_change_owner()
762 rc = dpm_sysfs_wakeup_change_owner(dev, kuid, kgid); in dpm_sysfs_change_owner()
770 kgid); in dpm_sysfs_change_owner()
Dpower.h77 extern int dpm_sysfs_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
93 kgid_t kgid) { return 0; } in dpm_sysfs_change_owner() argument
/kernel/linux/linux-5.10/net/core/
Dnet-sysfs.c1039 kgid_t kgid) in rx_queue_change_owner() argument
1045 error = sysfs_change_owner(kobj, kuid, kgid); in rx_queue_change_owner()
1051 kobj, dev->sysfs_rx_queue_group, kuid, kgid); in rx_queue_change_owner()
1093 kuid_t kuid, kgid_t kgid) in net_rx_queue_change_owner() argument
1104 error = rx_queue_change_owner(dev, i, kuid, kgid); in net_rx_queue_change_owner()
1669 kuid_t kuid, kgid_t kgid) in tx_queue_change_owner() argument
1675 error = sysfs_change_owner(kobj, kuid, kgid); in tx_queue_change_owner()
1680 error = sysfs_group_change_owner(kobj, &dql_group, kuid, kgid); in tx_queue_change_owner()
1719 kuid_t kuid, kgid_t kgid) in net_tx_queue_change_owner() argument
1726 error = tx_queue_change_owner(dev, i, kuid, kgid); in net_tx_queue_change_owner()
[all …]
/kernel/linux/linux-5.10/net/sunrpc/
Dsvcauth_unix.c522 kgid_t kgid; in unix_gid_parse() local
527 kgid = make_kgid(current_user_ns(), gid); in unix_gid_parse()
528 if (!gid_valid(kgid)) in unix_gid_parse()
530 ug.gi->gid[i] = kgid; in unix_gid_parse()
834 kgid_t kgid = make_kgid(userns, svc_getnl(argv)); in svcauth_unix_accept() local
835 cred->cr_group_info->gid[i] = kgid; in svcauth_unix_accept()
/kernel/linux/linux-5.10/net/sunrpc/auth_gss/
Dgss_rpc_xdr.c211 kgid_t kgid; in gssx_dec_linux_creds() local
216 kgid = make_kgid(&init_user_ns, tmp); in gssx_dec_linux_creds()
217 if (!gid_valid(kgid)) in gssx_dec_linux_creds()
219 creds->cr_group_info->gid[i] = kgid; in gssx_dec_linux_creds()
Dsvcauth_gss.c507 kgid_t kgid; in rsc_parse() local
510 kgid = make_kgid(current_user_ns(), id); in rsc_parse()
511 if (!gid_valid(kgid)) in rsc_parse()
513 rsci.cred.cr_group_info->gid[i] = kgid; in rsc_parse()
/kernel/linux/linux-5.10/drivers/base/
Dcore.c3909 kgid_t kgid) in device_attrs_change_owner() argument
3922 kgid); in device_attrs_change_owner()
3933 kgid); in device_attrs_change_owner()
3939 error = sysfs_groups_change_owner(kobj, dev->groups, kuid, kgid); in device_attrs_change_owner()
3946 kuid, kgid); in device_attrs_change_owner()
3966 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid) in device_change_owner() argument
3979 error = sysfs_change_owner(kobj, kuid, kgid); in device_change_owner()
3989 kgid); in device_change_owner()
3998 error = device_attrs_change_owner(dev, kuid, kgid); in device_change_owner()
4002 error = dpm_sysfs_change_owner(dev, kuid, kgid); in device_change_owner()
[all …]
/kernel/linux/linux-5.10/fs/xfs/
Dxfs_quota.h113 xfs_qm_vop_dqalloc(struct xfs_inode *ip, kuid_t kuid, kgid_t kgid, in xfs_qm_vop_dqalloc() argument
/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4xdr.c613 kgid_t kgid = make_kgid(userns, gid); in nfsd4_decode_cb_sec() local
614 if (uid_valid(kuid) && gid_valid(kgid)) { in nfsd4_decode_cb_sec()
616 cbs->gid = kgid; in nfsd4_decode_cb_sec()