/linux-6.3-rc2/fs/ |
A D | mnt_idmapping.c | 98 kuid_t kuid) in make_vfsuid() argument 104 return VFSUIDT_INIT(kuid); in make_vfsuid() 106 uid = __kuid_val(kuid); in make_vfsuid() 108 uid = from_kuid(fs_userns, kuid); in make_vfsuid()
|
A D | open.c | 712 static inline bool setattr_vfsuid(struct iattr *attr, kuid_t kuid) in setattr_vfsuid() argument 714 if (!uid_valid(kuid)) in setattr_vfsuid() 717 attr->ia_vfsuid = VFSUIDT_INIT(kuid); in setattr_vfsuid()
|
/linux-6.3-rc2/include/linux/ |
A D | sysfs.h | 345 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid, 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); 354 const struct attribute_group *groups, kuid_t kuid, 574 const char *name, kuid_t kuid, in sysfs_file_change_owner() argument 582 const char *name, kuid_t kuid, in sysfs_link_change_owner() argument 588 static inline int sysfs_change_owner(struct kobject *kobj, kuid_t kuid, kgid_t kgid) in sysfs_change_owner() argument 595 kuid_t kuid, kgid_t kgid) in sysfs_groups_change_owner() argument 602 kuid_t kuid, kgid_t kgid) in sysfs_group_change_owner() argument
|
A D | uidgid.h | 153 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid() argument 155 return __kuid_val(kuid); in from_kuid() 163 static inline uid_t from_kuid_munged(struct user_namespace *to, kuid_t kuid) in from_kuid_munged() argument 165 uid_t uid = from_kuid(to, kuid); in from_kuid_munged()
|
A D | mnt_idmapping.h | 79 static inline bool vfsuid_eq_kuid(vfsuid_t vfsuid, kuid_t kuid) in vfsuid_eq_kuid() argument 81 return vfsuid_valid(vfsuid) && __vfsuid_val(vfsuid) == __kuid_val(kuid); in vfsuid_eq_kuid() 119 struct user_namespace *fs_userns, kuid_t kuid);
|
A D | fs.h | 1447 kuid_t kuid; in fsuidgid_has_mapping() local 1450 kuid = mapped_fsuid(idmap, fs_userns); in fsuidgid_has_mapping() 1451 if (!uid_valid(kuid)) in fsuidgid_has_mapping() 1456 return kuid_has_mapping(fs_userns, kuid) && in fsuidgid_has_mapping()
|
A D | device.h | 910 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
|
/linux-6.3-rc2/drivers/base/power/ |
A D | sysfs.c | 512 static inline int dpm_sysfs_wakeup_change_owner(struct device *dev, kuid_t kuid, in dpm_sysfs_wakeup_change_owner() argument 516 return device_change_owner(dev->power.wakeup->dev, kuid, kgid); in dpm_sysfs_wakeup_change_owner() 545 static inline int dpm_sysfs_wakeup_change_owner(struct device *dev, kuid_t kuid, 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() 769 &dev->kobj, &pm_qos_latency_tolerance_attr_group, kuid, 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); 95 static inline int dpm_sysfs_change_owner(struct device *dev, kuid_t kuid, in dpm_sysfs_change_owner() argument
|
/linux-6.3-rc2/fs/sysfs/ |
A D | file.c | 585 static int internal_change_owner(struct kernfs_node *kn, kuid_t kuid, in internal_change_owner() argument 590 .ia_uid = kuid, 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() 649 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid, 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() 711 kuid, kgid); in sysfs_change_owner()
|
A D | group.c | 517 const struct attribute_group *grp, kuid_t kuid, in sysfs_group_change_owner() argument 524 .ia_uid = kuid, 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-6.3-rc2/net/core/ |
A D | net-sysfs.c | 1118 error = sysfs_change_owner(kobj, kuid, kgid); in rx_queue_change_owner() 1124 kobj, dev->sysfs_rx_queue_group, kuid, kgid); in rx_queue_change_owner() 1166 kuid_t kuid, kgid_t kgid) in net_rx_queue_change_owner() argument 1177 error = rx_queue_change_owner(dev, i, kuid, kgid); in net_rx_queue_change_owner() 1714 kuid_t kuid, kgid_t kgid) in tx_queue_change_owner() argument 1720 error = sysfs_change_owner(kobj, kuid, kgid); in tx_queue_change_owner() 1725 error = sysfs_group_change_owner(kobj, &dql_group, kuid, kgid); in tx_queue_change_owner() 1771 kuid_t kuid, kgid_t kgid) in net_tx_queue_change_owner() argument 1778 error = tx_queue_change_owner(dev, i, kuid, kgid); in net_tx_queue_change_owner() 1837 error = net_rx_queue_change_owner(ndev, real_rx, kuid, kgid); in queue_change_owner() [all …]
|
A D | filter.c | 5053 kuid_t kuid; in BPF_CALL_1() local 5057 kuid = sock_net_uid(sock_net(sk), sk); in BPF_CALL_1() 5058 return from_kuid_munged(sock_net(sk)->user_ns, kuid); in BPF_CALL_1()
|
/linux-6.3-rc2/kernel/ |
A D | sys.c | 609 kuid_t kuid; in __sys_setuid() local 611 kuid = make_kuid(ns, uid); in __sys_setuid() 612 if (!uid_valid(kuid)) in __sys_setuid() 622 new->suid = new->uid = kuid; in __sys_setuid() 628 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { in __sys_setuid() 632 new->fsuid = new->euid = kuid; in __sys_setuid() 850 kuid_t kuid; in __sys_setfsuid() local 856 if (!uid_valid(kuid)) in __sys_setfsuid() 863 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) || in __sys_setfsuid() 864 uid_eq(kuid, old->suid) || uid_eq(kuid, old->fsuid) || in __sys_setfsuid() [all …]
|
A D | user_namespace.c | 427 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid() argument 430 return map_id_up(&targ->uid_map, __kuid_val(kuid)); in from_kuid() 452 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged() argument 455 uid = from_kuid(targ, kuid); in from_kuid_munged()
|
/linux-6.3-rc2/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-6.3-rc2/drivers/base/ |
A D | core.c | 4557 static int device_attrs_change_owner(struct device *dev, kuid_t kuid, in device_attrs_change_owner() argument 4570 error = sysfs_groups_change_owner(kobj, class->dev_groups, kuid, in device_attrs_change_owner() 4581 error = sysfs_groups_change_owner(kobj, type->groups, kuid, in device_attrs_change_owner() 4588 error = sysfs_groups_change_owner(kobj, dev->groups, kuid, kgid); in device_attrs_change_owner() 4595 kuid, kgid); in device_attrs_change_owner() 4615 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid) in device_change_owner() argument 4628 error = sysfs_change_owner(kobj, kuid, kgid); in device_change_owner() 4637 error = sysfs_file_change_owner(kobj, dev_attr_uevent.attr.name, kuid, in device_change_owner() 4647 error = device_attrs_change_owner(dev, kuid, kgid); in device_change_owner() 4651 error = dpm_sysfs_change_owner(dev, kuid, kgid); in device_change_owner() [all …]
|
/linux-6.3-rc2/security/integrity/ima/ |
A D | ima_policy.c | 78 static inline bool vfsuid_gt_kuid(vfsuid_t vfsuid, kuid_t kuid) in vfsuid_gt_kuid() argument 80 return __vfsuid_val(vfsuid) > __kuid_val(kuid); in vfsuid_gt_kuid() 88 static inline bool vfsuid_lt_kuid(vfsuid_t vfsuid, kuid_t kuid) in vfsuid_lt_kuid() argument 90 return __vfsuid_val(vfsuid) < __kuid_val(kuid); in vfsuid_lt_kuid()
|
/linux-6.3-rc2/Documentation/filesystems/ |
A D | idmappings.rst | 334 from_kuid(idmapping, kuid) 642 make_kuid(mount, uid) = kuid 654 make_kuid(filesystem, uid) = kuid
|
/linux-6.3-rc2/fs/quota/ |
A D | dquot.c | 2100 kuid_t kuid = from_vfsuid(idmap, i_user_ns(inode), in dquot_transfer() local 2103 dquot = dqget(sb, make_kqid_uid(kuid)); in dquot_transfer()
|
/linux-6.3-rc2/fs/nfsd/ |
A D | nfs4xdr.c | 684 kuid_t kuid = make_kuid(userns, uid); in nfsd4_decode_authsys_parms() local 686 if (uid_valid(kuid) && gid_valid(kgid)) { in nfsd4_decode_authsys_parms() 687 cbs->uid = kuid; in nfsd4_decode_authsys_parms()
|