Home
last modified time | relevance | path

Searched refs:kuid (Results 1 – 21 of 21) sorted by relevance

/linux-6.3-rc2/fs/
A Dmnt_idmapping.c98 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 Dopen.c712 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 Dsysfs.h345 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 Duidgid.h153 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 Dmnt_idmapping.h79 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 Dfs.h1447 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 Ddevice.h910 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
/linux-6.3-rc2/drivers/base/power/
A Dsysfs.c512 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 Dpower.h80 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 Dfile.c585 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 Dgroup.c517 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 Dnet-sysfs.c1118 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 Dfilter.c5053 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 Dsys.c609 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 Duser_namespace.c427 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 Dxfs_quota.h119 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 Dcore.c4557 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 Dima_policy.c78 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 Didmappings.rst334 from_kuid(idmapping, kuid)
642 make_kuid(mount, uid) = kuid
654 make_kuid(filesystem, uid) = kuid
/linux-6.3-rc2/fs/quota/
A Ddquot.c2100 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 Dnfs4xdr.c684 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()

Completed in 87 milliseconds