Home
last modified time | relevance | path

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

/linux-6.1.9/include/linux/
Dmnt_idmapping.h81 static inline bool vfsuid_eq_kuid(vfsuid_t vfsuid, kuid_t kuid) in vfsuid_eq_kuid() argument
83 return vfsuid_valid(vfsuid) && __vfsuid_val(vfsuid) == __kuid_val(kuid); in vfsuid_eq_kuid()
196 kuid_t kuid) in make_vfsuid() argument
201 return VFSUIDT_INIT(kuid); in make_vfsuid()
203 uid = __kuid_val(kuid); in make_vfsuid()
205 uid = from_kuid(fs_userns, kuid); in make_vfsuid()
213 kuid_t kuid) in mapped_kuid_fs() argument
215 return AS_KUIDT(make_vfsuid(mnt_userns, fs_userns, kuid)); in mapped_kuid_fs()
312 kuid_t kuid) in mapped_kuid_user() argument
314 return from_vfsuid(mnt_userns, fs_userns, VFSUIDT_INIT(kuid)); in mapped_kuid_user()
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
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()
Dfs.h1802 kuid_t kuid; in fsuidgid_has_mapping() local
1805 kuid = mapped_fsuid(mnt_userns, fs_userns); in fsuidgid_has_mapping()
1806 if (!uid_valid(kuid)) in fsuidgid_has_mapping()
1811 return kuid_has_mapping(fs_userns, kuid) && in fsuidgid_has_mapping()
Ddevice.h913 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
/linux-6.1.9/drivers/base/power/
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()
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.1.9/fs/sysfs/
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()
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.1.9/net/core/
Dnet-sysfs.c1083 static int rx_queue_change_owner(struct net_device *dev, int index, kuid_t kuid, in rx_queue_change_owner() argument
1090 error = sysfs_change_owner(kobj, kuid, kgid); in rx_queue_change_owner()
1096 kobj, dev->sysfs_rx_queue_group, kuid, kgid); in rx_queue_change_owner()
1138 kuid_t kuid, kgid_t kgid) in net_rx_queue_change_owner() argument
1149 error = rx_queue_change_owner(dev, i, kuid, kgid); in net_rx_queue_change_owner()
1686 kuid_t kuid, kgid_t kgid) in tx_queue_change_owner() argument
1692 error = sysfs_change_owner(kobj, kuid, kgid); in tx_queue_change_owner()
1697 error = sysfs_group_change_owner(kobj, &dql_group, kuid, kgid); in tx_queue_change_owner()
1743 kuid_t kuid, kgid_t kgid) in net_tx_queue_change_owner() argument
1750 error = tx_queue_change_owner(dev, i, kuid, kgid); in net_tx_queue_change_owner()
[all …]
Dfilter.c5020 kuid_t kuid; in BPF_CALL_1() local
5024 kuid = sock_net_uid(sock_net(sk), sk); in BPF_CALL_1()
5025 return from_kuid_munged(sock_net(sk)->user_ns, kuid); in BPF_CALL_1()
/linux-6.1.9/kernel/
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()
623 if (!uid_eq(kuid, old->uid)) { 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
855 kuid = make_kuid(old->user_ns, uid); in __sys_setfsuid()
856 if (!uid_valid(kuid)) in __sys_setfsuid()
[all …]
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.1.9/fs/xfs/
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.1.9/drivers/base/
Dcore.c4488 static int device_attrs_change_owner(struct device *dev, kuid_t kuid, in device_attrs_change_owner() argument
4501 error = sysfs_groups_change_owner(kobj, class->dev_groups, kuid, in device_attrs_change_owner()
4512 error = sysfs_groups_change_owner(kobj, type->groups, kuid, in device_attrs_change_owner()
4519 error = sysfs_groups_change_owner(kobj, dev->groups, kuid, kgid); in device_attrs_change_owner()
4526 kuid, kgid); in device_attrs_change_owner()
4546 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid) in device_change_owner() argument
4559 error = sysfs_change_owner(kobj, kuid, kgid); in device_change_owner()
4568 error = sysfs_file_change_owner(kobj, dev_attr_uevent.attr.name, kuid, in device_change_owner()
4578 error = device_attrs_change_owner(dev, kuid, kgid); in device_change_owner()
4582 error = dpm_sysfs_change_owner(dev, kuid, kgid); in device_change_owner()
[all …]
/linux-6.1.9/fs/
Dopen.c675 static inline bool setattr_vfsuid(struct iattr *attr, kuid_t kuid) in setattr_vfsuid() argument
677 if (!uid_valid(kuid)) in setattr_vfsuid()
680 attr->ia_vfsuid = VFSUIDT_INIT(kuid); in setattr_vfsuid()
Dposix_acl.c921 kuid_t kuid = KUIDT_INIT(le32_to_cpu(e->e_id)); in vfs_set_acl_prepare_kuid() local
922 return from_vfsuid(mnt_userns, fs_userns, VFSUIDT_INIT(kuid)); in vfs_set_acl_prepare_kuid()
/linux-6.1.9/Documentation/filesystems/
Didmappings.rst334 from_kuid(idmapping, kuid)
642 make_kuid(mount, uid) = kuid
654 make_kuid(filesystem, uid) = kuid
/linux-6.1.9/fs/quota/
Ddquot.c2100 kuid_t kuid = from_vfsuid(mnt_userns, i_user_ns(inode), in dquot_transfer() local
2103 dquot = dqget(sb, make_kqid_uid(kuid)); in dquot_transfer()
/linux-6.1.9/fs/nfsd/
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()