/linux-master/include/linux/ |
H A D | highuid.h | 26 * This is the "overflow" UID and GID. They are used to signify uid/gid 27 * overflow to old programs when they request uid/gid information but are 30 * processes are owned by this uid/gid. 46 /* prevent uid mod 65536 effect by returning a default value for high UIDs */ 47 #define high2lowuid(uid) ((uid) & ~0xFFFF ? (old_uid_t)overflowuid : (old_uid_t)(uid)) 53 #define low2highuid(uid) ((uid) == (old_uid_t)-1 ? (uid_t)-1 : (uid_t)(uid)) [all...] |
H A D | uidgid.h | 9 * the kernel are values used by userspace and which uid and gid values are 26 static inline uid_t __kuid_val(kuid_t uid) argument 28 return uid.val; 36 static inline uid_t __kuid_val(kuid_t uid) argument 103 static inline bool uid_valid(kuid_t uid) argument 105 return __kuid_val(uid) != (uid_t) -1; 115 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid); 118 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid); 120 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid); 123 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) argument 138 make_kuid(struct user_namespace *from, uid_t uid) argument 160 uid_t uid = from_kuid(to, kuid); local 174 kuid_has_mapping(struct user_namespace *ns, kuid_t uid) argument [all...] |
/linux-master/drivers/infiniband/hw/mlx5/ |
H A D | cmd.h | 43 int mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid); 44 void mlx5_cmd_destroy_tir(struct mlx5_core_dev *dev, u32 tirn, u16 uid); 45 void mlx5_cmd_destroy_tis(struct mlx5_core_dev *dev, u32 tisn, u16 uid); 46 int mlx5_cmd_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn, u16 uid); 48 u16 uid); 50 u16 uid); 52 u32 qpn, u16 uid); 54 u32 qpn, u16 uid); 55 int mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid); 56 int mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid); [all...] |
H A D | cmd.c | 57 void mlx5_cmd_destroy_tir(struct mlx5_core_dev *dev, u32 tirn, u16 uid) argument 63 MLX5_SET(destroy_tir_in, in, uid, uid); 67 void mlx5_cmd_destroy_tis(struct mlx5_core_dev *dev, u32 tisn, u16 uid) argument 73 MLX5_SET(destroy_tis_in, in, uid, uid); 77 int mlx5_cmd_destroy_rqt(struct mlx5_core_dev *dev, u32 rqtn, u16 uid) argument 83 MLX5_SET(destroy_rqt_in, in, uid, uid); 88 u16 uid) 87 mlx5_cmd_alloc_transport_domain(struct mlx5_core_dev *dev, u32 *tdn, u16 uid) argument 106 mlx5_cmd_dealloc_transport_domain(struct mlx5_core_dev *dev, u32 tdn, u16 uid) argument 118 mlx5_cmd_dealloc_pd(struct mlx5_core_dev *dev, u32 pdn, u16 uid) argument 128 mlx5_cmd_attach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn, u16 uid) argument 142 mlx5_cmd_detach_mcg(struct mlx5_core_dev *dev, union ib_gid *mgid, u32 qpn, u16 uid) argument 156 mlx5_cmd_xrcd_alloc(struct mlx5_core_dev *dev, u32 *xrcdn, u16 uid) argument 170 mlx5_cmd_xrcd_dealloc(struct mlx5_core_dev *dev, u32 xrcdn, u16 uid) argument 217 mlx5_cmd_uar_alloc(struct mlx5_core_dev *dev, u32 *uarn, u16 uid) argument 233 mlx5_cmd_uar_dealloc(struct mlx5_core_dev *dev, u32 uarn, u16 uid) argument [all...] |
/linux-master/tools/testing/selftests/safesetid/ |
H A D | safesetid-test.sh | 11 uid=$(id -u) 12 if [ $uid -ne 0 ]; then
|
/linux-master/drivers/platform/surface/aggregator/ |
H A D | bus.c | 27 sdev->uid.domain, sdev->uid.category, sdev->uid.target, 28 sdev->uid.instance, sdev->uid.function); 45 sdev->uid.domain, sdev->uid.category, 46 sdev->uid.target, sdev->uid.instance, 47 sdev->uid 80 ssam_device_alloc(struct ssam_controller *ctrl, struct ssam_device_uid uid) argument 188 ssam_device_id_compatible(const struct ssam_device_id *id, struct ssam_device_uid uid) argument 235 ssam_device_id_match(const struct ssam_device_id *table, const struct ssam_device_uid uid) argument 394 ssam_device_uid_from_string(const char *str, struct ssam_device_uid *uid) argument 412 ssam_get_uid_for_node(struct fwnode_handle *node, struct ssam_device_uid *uid) argument 430 struct ssam_device_uid uid; local [all...] |
/linux-master/drivers/staging/greybus/Documentation/firmware/ |
H A D | authenticate.c | 18 struct cap_ioc_get_endpoint_uid uid; variable in typeref:struct:cap_ioc_get_endpoint_uid 54 ret = ioctl(fd, CAP_IOC_GET_ENDPOINT_UID, &uid); 61 printf("UID received: 0x%llx\n", *(unsigned long long int *)(uid.uid)); 78 memcpy(authenticate.uid, uid.uid, 8);
|
/linux-master/kernel/ |
H A D | uid16.h | 5 long __sys_setuid(uid_t uid); 11 long __sys_setfsuid(uid_t uid);
|
H A D | user.c | 94 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK) 95 #define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid)))) 114 .uid = GLOBAL_ROOT_UID, 131 static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent) argument 136 if (uid_eq(user->uid, uid)) { 180 struct user_struct *find_user(kuid_t uid) argument 203 alloc_uid(kuid_t uid) argument [all...] |
/linux-master/ipc/ |
H A D | compat.c | 44 to->uid = v.uid; 56 to->uid = v.uid; 65 to->uid = from->uid; 76 SET_UID(to->uid, from->uid);
|
/linux-master/security/safesetid/ |
H A D | lsm.c | 40 hash_for_each_possible(policy->rules, rule, next, __kuid_val(src.uid)) { 41 if (!uid_eq(rule->src_id.uid, src.uid)) 43 if (uid_eq(rule->dst_id.uid, dst.uid)) 114 if (setid_policy_lookup((kid_t){.uid = cred->uid}, INVALID_ID, UID) == SIDPOL_DEFAULT) 118 * set*uid() (e.g. setting up userns uid mappings). 120 pr_warn("Operation requires CAP_SETUID, which is not available to UID %u for operations besides approved set*uid transition [all...] |
/linux-master/fs/quota/ |
H A D | kqid.c | 19 return uid_eq(left.uid, right.uid); 45 return uid_lt(left.uid, right.uid); 72 return from_kuid(targ, kqid.uid); 105 return from_kuid_munged(targ, kqid.uid); 124 return uid_valid(qid.uid);
|
/linux-master/drivers/vdpa/mlx5/core/ |
H A D | resources.c | 8 static int alloc_pd(struct mlx5_vdpa_dev *dev, u32 *pdn, u16 uid) argument 17 MLX5_SET(alloc_pd_in, in, uid, uid); 26 static int dealloc_pd(struct mlx5_vdpa_dev *dev, u32 pdn, u16 uid) argument 33 MLX5_SET(dealloc_pd_in, in, uid, uid); 51 static int create_uctx(struct mlx5_vdpa_dev *mvdev, u16 *uid) argument 76 *uid = MLX5_GET(create_uctx_out, out, uid); 81 static void destroy_uctx(struct mlx5_vdpa_dev *mvdev, u32 uid) argument [all...] |
/linux-master/tools/crypto/ccp/ |
H A D | dbc.c | 39 int set_uid(int fd, __u8 *uid, __u8 *signature) argument 43 assert(uid); 46 memcpy(tmp.uid, uid, sizeof(tmp.uid));
|
/linux-master/fs/9p/ |
H A D | fid.c | 56 * @uid: return a fid belonging to the specified user 57 * @any: ignore uid as a selection criteria 61 kuid_t uid, bool any) 71 if (any || uid_eq(fid->uid, uid)) { 106 * v9fs_fid_find - retrieve a fid that belongs to the specified uid 108 * @uid: return fid that belongs to the specified user 113 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) argument 117 p9_debug(P9_DEBUG_VFS, " dentry: %pd (%p) uid %d any %d\n", 118 dentry, dentry, from_kuid(&init_user_ns, uid), 60 v9fs_fid_find_inode(struct inode *inode, bool want_writeable, kuid_t uid, bool any) argument 170 v9fs_fid_lookup_with_uid(struct dentry *dentry, kuid_t uid, int any) argument 290 kuid_t uid; local [all...] |
/linux-master/security/keys/ |
H A D | persistent.c | 40 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, argument 58 uid, INVALID_GID, current_cred(), 73 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, argument 86 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); 103 persistent_ref = key_create_persistent(ns, uid, &index_key); 133 kuid_t uid; local 138 uid = current_uid(); 140 uid = make_kuid(ns, _uid); 141 if (!uid_valid(uid)) 147 if (!uid_eq(uid, current_ui [all...] |
/linux-master/tools/perf/util/ |
H A D | thread_map.h | 14 struct perf_thread_map *thread_map__new_by_uid(uid_t uid); 16 struct perf_thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid); 20 const char *tid, uid_t uid, bool all_threads);
|
/linux-master/drivers/s390/block/ |
H A D | dasd_alias.c | 45 static struct alias_server *_find_server(struct dasd_uid *uid) argument 49 if (!strncmp(pos->uid.vendor, uid->vendor, 50 sizeof(uid->vendor)) 51 && !strncmp(pos->uid.serial, uid->serial, 52 sizeof(uid->serial))) 59 struct dasd_uid *uid) 63 if (pos->uid.ssid == uid 58 _find_lcu(struct alias_server *server, struct dasd_uid *uid) argument 69 _find_group(struct alias_lcu *lcu, struct dasd_uid *uid) argument 97 _allocate_server(struct dasd_uid *uid) argument 116 _allocate_lcu(struct dasd_uid *uid) argument 185 struct dasd_uid uid; local 243 struct dasd_uid uid; local 311 struct dasd_uid uid; local [all...] |
/linux-master/arch/arm/mach-lpc32xx/ |
H A D | common.c | 111 u32 uid[4]; local 113 lpc32xx_get_uid(uid); 116 uid[3], uid[2], uid[1], uid[0]); 119 system_serial_low = uid[0]; 120 system_serial_high = uid[1];
|
/linux-master/fs/sysfs/ |
H A D | sysfs.h | 31 const struct attribute *attr, umode_t amode, kuid_t uid, 35 kuid_t uid, kgid_t gid, const void *ns);
|
/linux-master/tools/testing/selftests/mm/ |
H A D | test_hmm.sh | 23 uid=$(id -u) 24 if [ $uid -ne 0 ]; then
|
/linux-master/arch/powerpc/include/uapi/asm/ |
H A D | ipcbuf.h | 24 __kernel_uid_t uid; member in struct:ipc64_perm
|
/linux-master/arch/parisc/include/uapi/asm/ |
H A D | ipcbuf.h | 18 __kernel_uid_t uid; member in struct:ipc64_perm
|
/linux-master/arch/s390/include/uapi/asm/ |
H A D | ipcbuf.h | 20 __kernel_uid32_t uid; member in struct:ipc64_perm
|
/linux-master/include/uapi/asm-generic/ |
H A D | ipcbuf.h | 24 __kernel_uid32_t uid; member in struct:ipc64_perm
|