/linux/kernel/ |
A D | uid16.c | 120 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()
|
A D | groups.c | 63 kgid_t kgid; in groups_from_user() local 67 kgid = make_kgid(user_ns, gid); in groups_from_user() 68 if (!gid_valid(kgid)) in groups_from_user() 71 group_info->gid[i] = kgid; in groups_from_user()
|
A D | sys.c | 429 kgid_t kgid; in __sys_setgid() local 431 kgid = make_kgid(ns, gid); in __sys_setgid() 432 if (!gid_valid(kgid)) in __sys_setgid() 443 else if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->sgid)) in __sys_setgid() 444 new->egid = new->fsgid = kgid; in __sys_setgid() 878 kgid_t kgid; in __sys_setfsgid() local 884 if (!gid_valid(kgid)) in __sys_setfsgid() 891 if (gid_eq(kgid, old->gid) || gid_eq(kgid, old->egid) || in __sys_setfsgid() 892 gid_eq(kgid, old->sgid) || gid_eq(kgid, old->fsgid) || in __sys_setfsgid() 894 if (!gid_eq(kgid, old->fsgid)) { in __sys_setfsgid() [all …]
|
A D | user_namespace.c | 478 gid_t from_kgid(struct user_namespace *targ, kgid_t kgid) in from_kgid() argument 481 return map_id_up(&targ->gid_map, __kgid_val(kgid)); in from_kgid() 502 gid_t from_kgid_munged(struct user_namespace *targ, kgid_t kgid) in from_kgid_munged() argument 505 gid = from_kgid(targ, kgid); in from_kgid_munged()
|
/linux/include/linux/ |
A D | sysfs.h | 330 kgid_t kgid); 331 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid); 333 const char *name, kuid_t kuid, kgid_t kgid); 336 kuid_t kuid, kgid_t kgid); 339 kgid_t kgid); 559 kgid_t kgid) in sysfs_file_change_owner() argument 567 kgid_t kgid) in sysfs_link_change_owner() argument 572 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument 579 kuid_t kuid, kgid_t kgid) in sysfs_groups_change_owner() argument 586 kuid_t kuid, kgid_t kgid) in sysfs_group_change_owner() argument
|
A D | uidgid.h | 158 static inline gid_t from_kgid(struct user_namespace *to, kgid_t kgid) in from_kgid() argument 160 return __kgid_val(kgid); in from_kgid() 171 static inline gid_t from_kgid_munged(struct user_namespace *to, kgid_t kgid) in from_kgid_munged() argument 173 gid_t gid = from_kgid(to, kgid); in from_kgid_munged()
|
A D | fs.h | 1650 kgid_t kgid) in kgid_into_mnt() 1652 return make_kgid(mnt_userns, __kgid_val(kgid)); in kgid_into_mnt() 1706 kgid_t kgid) in kgid_from_mnt() 1708 return KGIDT_INIT(from_kgid(mnt_userns, kgid)); in kgid_from_mnt()
|
A D | device.h | 836 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
|
/linux/fs/sysfs/ |
A D | file.c | 586 kgid_t kgid) in internal_change_owner() argument 591 .ia_gid = kgid, in internal_change_owner() 611 const char *name, kuid_t kuid, kgid_t kgid) in sysfs_link_change_owner() argument 630 error = internal_change_owner(kn, kuid, kgid); in sysfs_link_change_owner() 650 kgid_t kgid) in sysfs_file_change_owner() argument 665 error = internal_change_owner(kn, kuid, kgid); in sysfs_file_change_owner() 691 int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument 700 error = internal_change_owner(kobj->sd, kuid, kgid); in sysfs_change_owner() 714 kuid, kgid); in sysfs_change_owner() 724 kuid, kgid); in sysfs_change_owner()
|
A D | group.c | 518 kgid_t kgid) in sysfs_group_change_owner() argument 525 .ia_gid = kgid, in sysfs_group_change_owner() 561 kuid_t kuid, kgid_t kgid) in sysfs_groups_change_owner() argument 572 error = sysfs_group_change_owner(kobj, groups[i], kuid, kgid); in sysfs_groups_change_owner()
|
/linux/drivers/base/power/ |
A D | sysfs.c | 513 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()
|
A 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() argument
|
/linux/fs/ksmbd/ |
A D | smbacl.h | 228 kgid_t kgid; in posix_acl_gid_translate() local 231 kgid = kgid_into_mnt(mnt_userns, pace->e_gid); in posix_acl_gid_translate() 234 return from_kgid(&init_user_ns, kgid); in posix_acl_gid_translate()
|
/linux/fs/ |
A D | attr.c | 63 kgid_t kgid = i_gid_into_mnt(mnt_userns, inode); in chgrp_ok() local 69 if (gid_eq(kgid, INVALID_GID) && in chgrp_ok() 243 kgid_t kgid = i_gid_into_mnt(mnt_userns, inode); in setattr_copy() local 244 if (!in_group_p(kgid) && in setattr_copy()
|
A D | namei.c | 364 kgid_t kgid = i_gid_into_mnt(mnt_userns, inode); in acl_permission_check() local 365 if (in_group_p(kgid)) in acl_permission_check()
|
/linux/net/core/ |
A D | net-sysfs.c | 1079 kgid_t kgid) in rx_queue_change_owner() argument 1085 error = sysfs_change_owner(kobj, kuid, kgid); in rx_queue_change_owner() 1091 kobj, dev->sysfs_rx_queue_group, kuid, kgid); in rx_queue_change_owner() 1133 kuid_t kuid, kgid_t kgid) in net_rx_queue_change_owner() argument 1144 error = rx_queue_change_owner(dev, i, kuid, kgid); in net_rx_queue_change_owner() 1685 kuid_t kuid, kgid_t kgid) in tx_queue_change_owner() argument 1691 error = sysfs_change_owner(kobj, kuid, kgid); in tx_queue_change_owner() 1735 kuid_t kuid, kgid_t kgid) in net_tx_queue_change_owner() argument 1742 error = tx_queue_change_owner(dev, i, kuid, kgid); in net_tx_queue_change_owner() 1801 error = net_rx_queue_change_owner(ndev, real_rx, kuid, kgid); in queue_change_owner() [all …]
|
/linux/net/sunrpc/ |
A D | svcauth_unix.c | 513 kgid_t kgid; in unix_gid_parse() local 518 kgid = make_kgid(current_user_ns(), gid); in unix_gid_parse() 519 if (!gid_valid(kgid)) in unix_gid_parse() 521 ug.gi->gid[i] = kgid; in unix_gid_parse() 829 kgid_t kgid = make_kgid(userns, svc_getnl(argv)); in svcauth_unix_accept() local 830 cred->cr_group_info->gid[i] = kgid; in svcauth_unix_accept()
|
/linux/net/sunrpc/auth_gss/ |
A D | gss_rpc_xdr.c | 211 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()
|
A D | svcauth_gss.c | 509 kgid_t kgid; in rsc_parse() local 512 kgid = make_kgid(current_user_ns(), id); in rsc_parse() 513 if (!gid_valid(kgid)) in rsc_parse() 515 rsci.cred.cr_group_info->gid[i] = kgid; in rsc_parse()
|
/linux/drivers/base/ |
A D | core.c | 4347 kgid_t kgid) in device_attrs_change_owner() argument 4360 kgid); in device_attrs_change_owner() 4371 kgid); in device_attrs_change_owner() 4377 error = sysfs_groups_change_owner(kobj, dev->groups, kuid, kgid); in device_attrs_change_owner() 4384 kuid, kgid); in device_attrs_change_owner() 4404 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid) in device_change_owner() argument 4417 error = sysfs_change_owner(kobj, kuid, kgid); in device_change_owner() 4427 kgid); in device_change_owner() 4436 error = device_attrs_change_owner(dev, kuid, kgid); in device_change_owner() 4440 error = dpm_sysfs_change_owner(dev, kuid, kgid); in device_change_owner() [all …]
|
/linux/fs/xfs/ |
A D | xfs_quota.h | 119 xfs_qm_vop_dqalloc(struct xfs_inode *ip, kuid_t kuid, kgid_t kgid, in xfs_qm_vop_dqalloc() argument
|
/linux/fs/nfsd/ |
A D | nfs4xdr.c | 685 kgid_t kgid = make_kgid(userns, gid); in nfsd4_decode_authsys_parms() local 686 if (uid_valid(kuid) && gid_valid(kgid)) { in nfsd4_decode_authsys_parms() 688 cbs->gid = kgid; in nfsd4_decode_authsys_parms()
|
/linux/fs/f2fs/ |
A D | file.c | 874 kgid_t kgid = i_gid_into_mnt(mnt_userns, inode); in __setattr_copy() local 876 if (!in_group_p(kgid) && !capable_wrt_inode_uidgid(mnt_userns, inode, CAP_FSETID)) in __setattr_copy()
|