Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/include/linux/
Dsysfs.h321 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid,
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);
330 const struct attribute_group *groups, kuid_t kuid,
550 const char *name, kuid_t kuid, in sysfs_file_change_owner() argument
558 const char *name, kuid_t kuid, 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.h161 static inline uid_t from_kuid(struct user_namespace *to, kuid_t kuid) in from_kuid() argument
163 return __kuid_val(kuid); in from_kuid()
171 static inline uid_t from_kuid_munged(struct user_namespace *to, kuid_t kuid) in from_kuid_munged() argument
173 uid_t uid = from_kuid(to, kuid); in from_kuid_munged()
Ddevice.h803 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
/kernel/linux/linux-5.10/net/core/
Dlowpower_protocol.c65 uid_t kuid; in foreground_uid_match() local
76 kuid = sock_net_uid(net, fullsk).val; in foreground_uid_match()
78 if (kuid != foreground_uid) in foreground_uid_match()
Dnet-sysfs.c1038 static int rx_queue_change_owner(struct net_device *dev, int index, kuid_t kuid, 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 …]
Dfilter.c4691 kuid_t kuid; in BPF_CALL_1() local
4695 kuid = sock_net_uid(sock_net(sk), sk); in BPF_CALL_1()
4696 return from_kuid_munged(sock_net(sk)->user_ns, kuid); in BPF_CALL_1()
/kernel/linux/linux-5.10/fs/sysfs/
Dfile.c564 static int internal_change_owner(struct kernfs_node *kn, kuid_t kuid, in internal_change_owner() argument
569 .ia_uid = kuid, 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()
628 int sysfs_file_change_owner(struct kobject *kobj, const char *name, kuid_t kuid, 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.c518 const struct attribute_group *grp, kuid_t kuid, in sysfs_group_change_owner() argument
525 .ia_uid = kuid, 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.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.h81 extern int dpm_sysfs_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid);
96 static inline int dpm_sysfs_change_owner(struct device *dev, kuid_t kuid, in dpm_sysfs_change_owner() argument
/kernel/liteos_a/syscall/
Dprocess_syscall.c631 UINT32 kuid = OsMakeKuid(userContainer, uid); in SysSetUserID() local
632 if (kuid == (UINT32)-1) { in SysSetUserID()
646 newCredentials->uid = kuid; in SysSetUserID()
647 if (kuid != oldCredentials->uid) { in SysSetUserID()
648 user->userID = kuid; in SysSetUserID()
649 user->effUserID = kuid; in SysSetUserID()
652 } else if (kuid != oldCredentials->uid) { in SysSetUserID()
655 newCredentials->euid = kuid; in SysSetUserID()
/kernel/liteos_a/kernel/extended/container/
Dlos_user_container.c140 UINT32 FromKuid(UserContainer *userContainer, UINT32 kuid) in FromKuid() argument
142 return MapIdUp(&userContainer->uidMap, kuid); in FromKuid()
150 UINT32 OsFromKuidMunged(UserContainer *userContainer, UINT32 kuid) in OsFromKuidMunged() argument
152 UINT32 uid = FromKuid(userContainer, kuid); in OsFromKuidMunged()
/kernel/linux/linux-5.10/kernel/
Dsys.c585 kuid_t kuid; in __sys_setuid() local
587 kuid = make_kuid(ns, uid); in __sys_setuid()
588 if (!uid_valid(kuid)) in __sys_setuid()
598 new->suid = new->uid = kuid; in __sys_setuid()
599 if (!uid_eq(kuid, old->uid)) { in __sys_setuid()
604 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { in __sys_setuid()
608 new->fsuid = new->euid = kuid; in __sys_setuid()
827 kuid_t kuid; in __sys_setfsuid() local
832 kuid = make_kuid(old->user_ns, uid); in __sys_setfsuid()
833 if (!uid_valid(kuid)) in __sys_setfsuid()
[all …]
Duser_namespace.c406 uid_t from_kuid(struct user_namespace *targ, kuid_t kuid) in from_kuid() argument
409 return map_id_up(&targ->uid_map, __kuid_val(kuid)); in from_kuid()
431 uid_t from_kuid_munged(struct user_namespace *targ, kuid_t kuid) in from_kuid_munged() argument
434 uid = from_kuid(targ, kuid); in from_kuid_munged()
/kernel/liteos_a/kernel/base/include/
Dlos_user_container_pri.h69 UINT32 OsFromKuidMunged(UserContainer *userContainer, UINT32 kuid);
/kernel/linux/linux-5.10/drivers/base/
Dcore.c3909 static int device_attrs_change_owner(struct device *dev, kuid_t kuid, in device_attrs_change_owner() argument
3922 error = sysfs_groups_change_owner(kobj, class->dev_groups, kuid, in device_attrs_change_owner()
3933 error = sysfs_groups_change_owner(kobj, type->groups, kuid, in device_attrs_change_owner()
3940 error = sysfs_groups_change_owner(kobj, dev->groups, kuid, kgid); in device_attrs_change_owner()
3947 kuid, kgid); in device_attrs_change_owner()
3967 int device_change_owner(struct device *dev, kuid_t kuid, kgid_t kgid) in device_change_owner() argument
3980 error = sysfs_change_owner(kobj, kuid, kgid); in device_change_owner()
3989 error = sysfs_file_change_owner(kobj, dev_attr_uevent.attr.name, kuid, in device_change_owner()
3999 error = device_attrs_change_owner(dev, kuid, kgid); in device_change_owner()
4003 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/common_modules/tzdriver/core/
Dgp_ops.c1145 kuid_t kuid; in get_uid_for_cmd() local
1147 kuid = current_uid(); in get_uid_for_cmd()
1148 return kuid.val; in get_uid_for_cmd()
/kernel/linux/common_modules/tzdriver/tui/
Dtui.c1037 kuid_t kuid; local
1039 kuid = current_uid();
1040 uid = kuid.val;
/kernel/linux/linux-5.10/mm/
Dshmem.c3458 kuid_t kuid; in shmem_parse_one() local
3495 kuid = make_kuid(current_user_ns(), result.uint_32); in shmem_parse_one()
3496 if (!uid_valid(kuid)) in shmem_parse_one()
3503 if (!kuid_has_mapping(fc->user_ns, kuid)) in shmem_parse_one()
3506 ctx->uid = kuid; in shmem_parse_one()
/kernel/linux/linux-5.10/fs/nfsd/
Dnfs4xdr.c612 kuid_t kuid = make_kuid(userns, uid); in nfsd4_decode_cb_sec() local
614 if (uid_valid(kuid) && gid_valid(kgid)) { in nfsd4_decode_cb_sec()
615 cbs->uid = kuid; in nfsd4_decode_cb_sec()