Searched refs:uid (Results 1 - 200 of 480) sorted by relevance

123

/linux-4.1.27/include/linux/
H A Dhighuid.h25 * This is the "overflow" UID and GID. They are used to signify uid/gid
26 * overflow to old programs when they request uid/gid information but are
29 * processes are owned by this uid/gid.
45 /* prevent uid mod 65536 effect by returning a default value for high UIDs */
46 #define high2lowuid(uid) ((uid) & ~0xFFFF ? (old_uid_t)overflowuid : (old_uid_t)(uid))
52 #define low2highuid(uid) ((uid) == (old_uid_t)-1 ? (uid_t)-1 : (uid_t)(uid))
55 #define __convert_uid(size, uid) \
56 (size >= sizeof(uid) ? (uid) : high2lowuid(uid))
63 #define __convert_uid(size, uid) (uid)
68 /* uid/gid input should be always 32bit uid_t */
69 #define SET_UID(var, uid) do { (var) = __convert_uid(sizeof(var), (uid)); } while (0)
91 #define fs_high2lowuid(uid) ((uid) & ~0xFFFF ? (uid16_t)fs_overflowuid : (uid16_t)(uid))
H A Duidgid.h8 * the kernel are values used by userspace and which uid and gid values are
33 static inline uid_t __kuid_val(kuid_t uid) __kuid_val() argument
35 return uid.val; __kuid_val()
43 static inline uid_t __kuid_val(kuid_t uid) __kuid_val() argument
110 static inline bool uid_valid(kuid_t uid) uid_valid() argument
112 return __kuid_val(uid) != (uid_t) -1; uid_valid()
122 extern kuid_t make_kuid(struct user_namespace *from, uid_t uid);
125 extern uid_t from_kuid(struct user_namespace *to, kuid_t uid);
127 extern uid_t from_kuid_munged(struct user_namespace *to, kuid_t uid);
130 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) kuid_has_mapping() argument
132 return from_kuid(ns, uid) != (uid_t) -1; kuid_has_mapping()
142 static inline kuid_t make_kuid(struct user_namespace *from, uid_t uid) make_kuid() argument
144 return KUIDT_INIT(uid); make_kuid()
164 uid_t uid = from_kuid(to, kuid); from_kuid_munged() local
165 if (uid == (uid_t)-1) from_kuid_munged()
166 uid = overflowuid; from_kuid_munged()
167 return uid; from_kuid_munged()
178 static inline bool kuid_has_mapping(struct user_namespace *ns, kuid_t uid) kuid_has_mapping() argument
H A Dipc.h17 kuid_t uid; member in struct:kern_ipc_perm
H A Dstat.h26 kuid_t uid; member in struct:kstat
H A Dshmem_fs.h34 kuid_t uid; /* Mount uid for root directory */ member in struct:shmem_sb_info
H A Dauto_dev-ioctl.h64 __u32 uid; member in struct:args_requester
158 /* Get mount last requesting uid and gid */
H A Dquota.h70 kuid_t uid; member in union:kqid::__anon12383
74 enum quota_type type; /* USRQUOTA (uid) or GRPQUOTA (gid) or PRJQUOTA (projid) */
105 kqid.uid = make_kuid(from, qid); make_kqid()
132 kqid.uid = INVALID_UID; make_kqid_invalid()
148 * @uid: The kuid to make the quota identifier from
150 static inline struct kqid make_kqid_uid(kuid_t uid) make_kqid_uid() argument
154 kqid.uid = uid; make_kqid_uid()
274 #define DQ_BLKS_B 1 /* uid/gid has been warned about blk limit */
275 #define DQ_INODES_B 2 /* uid/gid has been warned about inode limit */
294 struct kqid dq_id; /* ID this applies to (uid, gid, projid) */
H A Dproc_fs.h67 static inline void proc_set_user(struct proc_dir_entry *de, kuid_t uid, kgid_t gid) {} PDE_DATA() argument
H A Dacct.h38 * 0: old format (until 2.6.7) with 16 bit uid/gid
H A Damigaffs.h84 __be16 uid; member in struct:affs_tail
H A Dcoda_psdev.h37 kuid_t uid);
H A Daudit.h31 uid_t uid; member in struct:audit_sig_info
74 kuid_t uid; member in union:audit_field::__anon11495
239 extern void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode);
264 static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) audit_ipc_set_perm() argument
267 __audit_ipc_set_perm(qbytes, uid, gid, mode); audit_ipc_set_perm()
397 static inline void audit_ipc_set_perm(unsigned long qbytes, uid_t uid, audit_ipc_set_perm() argument
H A Dkey.h147 kuid_t uid; member in struct:key
216 kuid_t uid, kgid_t gid,
290 extern struct key *keyring_alloc(const char *description, kuid_t uid, kgid_t gid,
H A Dvmw_vmci_api.h47 bool vmci_is_context_owner(u32 context_id, kuid_t uid);
H A Dcred.h127 kuid_t uid; /* real UID of the task */ member in struct:cred
348 #define task_uid(task) (task_cred_xxx((task), uid))
356 #define current_uid() (current_cred_xxx(uid))
380 *(_uid) = __cred->uid; \
/linux-4.1.27/tools/perf/util/
H A Dthread_map.h15 struct thread_map *thread_map__new_by_uid(uid_t uid);
16 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid);
19 const char *tid, uid_t uid);
H A Dthread_map.c62 struct thread_map *thread_map__new_by_uid(uid_t uid) thread_map__new_by_uid() argument
93 if (st.st_uid != uid) thread_map__new_by_uid()
146 struct thread_map *thread_map__new(pid_t pid, pid_t tid, uid_t uid) thread_map__new() argument
151 if (tid == -1 && uid != UINT_MAX) thread_map__new()
152 return thread_map__new_by_uid(uid); thread_map__new()
274 uid_t uid) thread_map__new_str()
279 if (!tid && uid != UINT_MAX) thread_map__new_str()
280 return thread_map__new_by_uid(uid); thread_map__new_str()
273 thread_map__new_str(const char *pid, const char *tid, uid_t uid) thread_map__new_str() argument
H A Dtarget.c74 target->uid = UINT_MAX; target__parse_uid()
86 int uid = strtol(str, &endptr, 10); target__parse_uid() local
91 getpwuid_r(uid, &pwd, buf, sizeof(buf), &result); target__parse_uid()
97 target->uid = result->pw_uid; target__parse_uid()
H A Dtarget.h12 uid_t uid; member in struct:target
H A Dtop.c91 ret += SNPRINTF(bf + ret, size - ret, " (uid: %s", perf_top__header_snprintf()
/linux-4.1.27/kernel/
H A Duser.c73 #define __uidhashfn(uid) (((uid >> UIDHASH_BITS) + uid) & UIDHASH_MASK)
74 #define uidhashentry(uid) (uidhash_table + __uidhashfn((__kuid_val(uid))))
96 .uid = GLOBAL_ROOT_UID,
112 static struct user_struct *uid_hash_find(kuid_t uid, struct hlist_head *hashent) uid_hash_find() argument
117 if (uid_eq(user->uid, uid)) { hlist_for_each_entry()
146 struct user_struct *find_user(kuid_t uid) find_user() argument
152 ret = uid_hash_find(uid, uidhashentry(uid)); find_user()
171 struct user_struct *alloc_uid(kuid_t uid) alloc_uid() argument
173 struct hlist_head *hashent = uidhashentry(uid); alloc_uid()
177 up = uid_hash_find(uid, hashent); alloc_uid()
185 new->uid = uid; alloc_uid()
193 up = uid_hash_find(uid, hashent); alloc_uid()
H A Duid16.c2 * Wrapper functions for 16bit uid back compatibility. All nicely tied
49 SYSCALL_DEFINE1(setuid16, old_uid_t, uid) SYSCALL_DEFINE1()
51 return sys_setuid(low2highuid(uid)); SYSCALL_DEFINE1()
66 ruid = high2lowuid(from_kuid_munged(cred->user_ns, cred->uid)); SYSCALL_DEFINE3()
101 SYSCALL_DEFINE1(setfsuid16, old_uid_t, uid) SYSCALL_DEFINE1()
103 return sys_setfsuid(low2highuid(uid)); SYSCALL_DEFINE1()
H A Dsys.c130 * Returns true if current's euid is same as p's uid or euid,
139 if (uid_eq(pcred->uid, cred->euid) || set_one_prio_perm()
182 kuid_t uid; SYSCALL_DEFINE3() local
215 uid = make_kuid(cred->user_ns, who);
218 uid = cred->uid;
219 else if (!uid_eq(uid, cred->uid)) {
220 user = find_user(uid);
225 if (uid_eq(task_uid(p), uid)) do_each_thread()
228 if (!uid_eq(uid, cred->uid))
252 kuid_t uid; SYSCALL_DEFINE2() local
283 uid = make_kuid(cred->user_ns, who);
286 uid = cred->uid;
287 else if (!uid_eq(uid, cred->uid)) {
288 user = find_user(uid);
293 if (uid_eq(task_uid(p), uid)) { do_each_thread()
299 if (!uid_eq(uid, cred->uid))
425 new_user = alloc_uid(new->uid); set_user()
431 * poorly written programs don't check set*uid() return code, assuming set_user()
433 * for programs doing set*uid()+execve() by harmlessly deferring the set_user()
448 * Unprivileged users may change the real uid to the effective uid
451 * If you set the real uid at all, or set the effective uid to a value not
452 * equal to the real uid, then the saved uid is set to the new effective uid.
485 new->uid = kruid; SYSCALL_DEFINE2()
486 if (!uid_eq(old->uid, kruid) && SYSCALL_DEFINE2()
494 if (!uid_eq(old->uid, keuid) && SYSCALL_DEFINE2()
501 if (!uid_eq(new->uid, old->uid)) { SYSCALL_DEFINE2()
507 (euid != (uid_t) -1 && !uid_eq(keuid, old->uid))) SYSCALL_DEFINE2()
526 * like sendmail, for example, cannot set its uid to be a normal
528 * the saved uid too. If you don't like this, blame the bright people
531 * regain them by swapping the real and effective uid.
533 SYSCALL_DEFINE1(setuid, uid_t, uid) SYSCALL_DEFINE1()
541 kuid = make_kuid(ns, uid); SYSCALL_DEFINE1()
552 new->suid = new->uid = kuid; SYSCALL_DEFINE1()
553 if (!uid_eq(kuid, old->uid)) { SYSCALL_DEFINE1()
558 } else if (!uid_eq(kuid, old->uid) && !uid_eq(kuid, new->suid)) { SYSCALL_DEFINE1()
609 if (ruid != (uid_t) -1 && !uid_eq(kruid, old->uid) && SYSCALL_DEFINE3()
612 if (euid != (uid_t) -1 && !uid_eq(keuid, old->uid) && SYSCALL_DEFINE3()
615 if (suid != (uid_t) -1 && !uid_eq(ksuid, old->uid) && SYSCALL_DEFINE3()
621 new->uid = kruid; SYSCALL_DEFINE3()
622 if (!uid_eq(kruid, old->uid)) { SYSCALL_DEFINE3()
651 ruid = from_kuid_munged(cred->user_ns, cred->uid); SYSCALL_DEFINE3()
741 * "setfsuid()" sets the fsuid - the uid used for filesystem checks. This
743 * whatever uid it wants to). It normally shadows "euid", except when
746 SYSCALL_DEFINE1(setfsuid, uid_t, uid) SYSCALL_DEFINE1()
756 kuid = make_kuid(old->user_ns, uid); SYSCALL_DEFINE1()
764 if (uid_eq(kuid, old->uid) || uid_eq(kuid, old->euid) || SYSCALL_DEFINE1()
1435 if (uid_eq(cred->uid, tcred->euid) && check_prlimit_permission()
1436 uid_eq(cred->uid, tcred->suid) && check_prlimit_permission()
1437 uid_eq(cred->uid, tcred->uid) && check_prlimit_permission()
1811 if (!uid_eq(cred->uid, make_kuid(ns, 0)) || validate_prctl_map()
H A Duser_namespace.c226 * make_kuid - Map a user-namespace uid pair into a kuid.
227 * @ns: User namespace that the uid is in
228 * @uid: User identifier
230 * Maps a user-namespace uid pair into a kernel internal kuid,
233 * When there is no mapping defined for the user-namespace uid
238 kuid_t make_kuid(struct user_namespace *ns, uid_t uid) make_kuid() argument
240 /* Map the uid to a global kernel uid */ make_kuid()
241 return KUIDT_INIT(map_id_down(&ns->uid_map, uid)); make_kuid()
246 * from_kuid - Create a uid from a kuid user-namespace pair.
247 * @targ: The user namespace we want a uid in.
248 * @kuid: The kernel internal uid to start with.
251 * return the resulting uid.
259 /* Map the uid from a global kernel uid */ from_kuid()
265 * from_kuid_munged - Create a uid from a kuid user-namespace pair.
266 * @targ: The user namespace we want a uid in.
267 * @kuid: The kernel internal uid to start with.
270 * return the resulting uid.
275 * returns a valid uid. This makes from_kuid_munged appropriate
277 * system call and failing to provide a valid uid are not an
284 uid_t uid; from_kuid_munged() local
285 uid = from_kuid(targ, kuid); from_kuid_munged()
287 if (uid == (uid_t) -1) from_kuid_munged()
288 uid = overflowuid; from_kuid_munged()
289 return uid; from_kuid_munged()
365 * Maps a user-namespace uid pair into a kernel internal kuid,
375 /* Map the uid to a global kernel uid */ make_kprojid()
394 /* Map the uid from a global kernel uid */ from_kprojid()
827 kuid_t uid = make_kuid(ns->parent, id); new_idmap_permitted() local
828 if (uid_eq(uid, cred->euid)) new_idmap_permitted()
H A Dauditsc.c310 static int audit_compare_uid(kuid_t uid, audit_compare_uid() argument
319 rc = audit_uid_comparator(uid, f->op, name->uid); audit_compare_uid()
326 rc = audit_uid_comparator(uid, f->op, n->uid); audit_compare_uid()
367 return audit_compare_uid(cred->uid, name, f, ctx); audit_field_compare()
384 /* uid comparisons */ audit_field_compare()
386 return audit_uid_comparator(cred->uid, f->op, tsk->loginuid); audit_field_compare()
388 return audit_uid_comparator(cred->uid, f->op, cred->euid); audit_field_compare()
390 return audit_uid_comparator(cred->uid, f->op, cred->suid); audit_field_compare()
392 return audit_uid_comparator(cred->uid, f->op, cred->fsuid); audit_field_compare()
470 result = audit_uid_comparator(cred->uid, f->op, f->uid); audit_filter_rules()
473 result = audit_uid_comparator(cred->euid, f->op, f->uid); audit_filter_rules()
476 result = audit_uid_comparator(cred->suid, f->op, f->uid); audit_filter_rules()
479 result = audit_uid_comparator(cred->fsuid, f->op, f->uid); audit_filter_rules()
571 result = audit_uid_comparator(name->uid, f->op, f->uid); audit_filter_rules()
574 if (audit_uid_comparator(n->uid, f->op, f->uid)) { audit_filter_rules()
604 result = audit_uid_comparator(tsk->loginuid, f->op, f->uid); audit_filter_rules()
705 * structure at this point, we can only check uid and gid.
959 kuid_t auid, kuid_t uid, unsigned int sessionid, audit_log_pid_context()
973 from_kuid(&init_user_ns, uid), sessionid); audit_log_pid_context()
1192 from_kuid(&init_user_ns, context->ipc.uid), show_special()
1982 uid_t uid, oldloginuid, loginuid; audit_log_set_loginuid() local
1987 uid = from_kuid(&init_user_ns, task_uid(current)); audit_log_set_loginuid()
1994 audit_log_format(ab, "pid=%d uid=%u", task_pid_nr(current), uid); audit_log_set_loginuid()
2124 context->ipc.uid = ipcp->uid; __audit_ipc_obj()
2135 * @uid: msgq user id
2141 void __audit_ipc_set_perm(unsigned long qbytes, uid_t uid, gid_t gid, umode_t mode) __audit_ipc_set_perm() argument
2146 context->ipc.perm_uid = uid; __audit_ipc_set_perm()
2233 * and uid that is doing that.
2240 kuid_t uid = current_uid(), t_uid = task_uid(t); __audit_signal_info() local
2248 audit_sig_uid = uid; __audit_signal_info()
2361 kuid_t auid, uid; audit_log_task() local
2368 current_uid_gid(&uid, &gid); audit_log_task()
2370 audit_log_format(ab, "auid=%u uid=%u gid=%u ses=%u", audit_log_task()
2372 from_kuid(&init_user_ns, uid), audit_log_task()
958 audit_log_pid_context(struct audit_context *context, pid_t pid, kuid_t auid, kuid_t uid, unsigned int sessionid, u32 sid, char *comm) audit_log_pid_context() argument
H A Daudit.h86 kuid_t uid; member in struct:audit_names
137 kuid_t uid, euid, suid, fsuid; member in struct:audit_context
160 kuid_t uid; member in struct:audit_context::__anon13951::__anon13953
H A Dexit.c945 pid_t pid, uid_t uid, int why, int status) wait_noreap_copyout()
963 retval = put_user(uid, &infop->si_uid); wait_noreap_copyout()
982 uid_t uid = from_kuid_munged(current_user_ns(), task_uid(p)); wait_task_zombie() local
1003 return wait_noreap_copyout(wo, p, pid, uid, why, status); wait_task_zombie()
1105 retval = put_user(uid, &infop->si_uid); wait_task_zombie()
1163 uid_t uid = 0; /* unneeded, required by compiler */ wait_task_stopped() local
1189 uid = from_kuid_munged(current_user_ns(), task_uid(p)); wait_task_stopped()
1209 return wait_noreap_copyout(wo, p, pid, uid, why, exit_code); wait_task_stopped()
1228 retval = put_user(uid, &infop->si_uid); wait_task_stopped()
1247 uid_t uid; wait_task_continued() local
1263 uid = from_kuid_munged(current_user_ns(), task_uid(p)); wait_task_continued()
1280 retval = wait_noreap_copyout(wo, p, pid, uid, wait_task_continued()
944 wait_noreap_copyout(struct wait_opts *wo, struct task_struct *p, pid_t pid, uid_t uid, int why, int status) wait_noreap_copyout() argument
H A Dcred.c44 .uid = GLOBAL_ROOT_UID,
468 if (!uid_eq(new->uid, old->uid) || commit_creds()
732 printk(KERN_ERR "CRED: ->*uid = { %d,%d,%d,%d }\n", dump_invalid_creds()
733 from_kuid_munged(&init_user_ns, cred->uid), dump_invalid_creds()
/linux-4.1.27/include/uapi/linux/
H A Dsecurebits.h15 *of the executable file* if the effective uid of the new process is
16 0. If the real uid is 0, we raise the effective (legacy) bit of the
24 /* When set, setuid to/from uid 0 does not trigger capability-"fixup".
26 set*uid to gain/lose privilege, transitions to/from uid 0 cause
36 transitioning to a non-root user (the set-uid fixup suppressed by
H A Dauxvec.h19 #define AT_UID 11 /* real uid */
20 #define AT_EUID 12 /* effective uid */
H A Dncp_mount.h38 __kernel_uid_t uid; member in struct:ncp_mount_data
62 unsigned long uid; member in struct:ncp_mount_data_v4
H A Dipc.h12 __kernel_uid_t uid; member in struct:ipc_perm
H A Dcramfs_fs.h30 __u32 mode:CRAMFS_MODE_WIDTH, uid:CRAMFS_UID_WIDTH; member in struct:cramfs_inode
H A Dmqueue.h22 /* per-uid limit of kernel memory used by mqueue, in bytes */
H A Dauto_fs4.h135 __u32 uid; member in struct:autofs_v5_packet
H A Dcn_proc.h88 __u32 ruid; /* task uid */
H A Djffs2.h135 /* The uid, gid, atime, mtime and ctime members could be longer, but
149 jint16_t uid; /* The file's owner. */ member in struct:jffs2_raw_inode
/linux-4.1.27/fs/9p/
H A Dfid.c57 * v9fs_fid_find - retrieve a fid that belongs to the specified uid
59 * @uid: return fid that belongs to the specified user
64 static struct p9_fid *v9fs_fid_find(struct dentry *dentry, kuid_t uid, int any) v9fs_fid_find() argument
68 p9_debug(P9_DEBUG_VFS, " dentry: %pd (%p) uid %d any %d\n", v9fs_fid_find()
69 dentry, dentry, from_kuid(&init_user_ns, uid), v9fs_fid_find()
77 if (any || uid_eq(fid->uid, uid)) { hlist_for_each_entry()
117 kuid_t uid, int any) v9fs_fid_lookup_with_uid()
127 fid = v9fs_fid_find(dentry, uid, any); v9fs_fid_lookup_with_uid()
137 fid = v9fs_fid_find(ds, uid, any); v9fs_fid_lookup_with_uid()
146 fid = v9fs_fid_find(dentry->d_sb->s_root, uid, any); v9fs_fid_lookup_with_uid()
157 fid = p9_client_attach(v9ses->clnt, NULL, uname, uid, v9fs_fid_lookup_with_uid()
233 kuid_t uid; v9fs_fid_lookup() local
243 uid = current_fsuid(); v9fs_fid_lookup()
248 uid = v9ses->uid; v9fs_fid_lookup()
253 uid = INVALID_UID; v9fs_fid_lookup()
257 return v9fs_fid_lookup_with_uid(dentry, uid, any); v9fs_fid_lookup()
272 static struct p9_fid *v9fs_fid_clone_with_uid(struct dentry *dentry, kuid_t uid) v9fs_fid_clone_with_uid() argument
276 fid = v9fs_fid_lookup_with_uid(dentry, uid, 0); v9fs_fid_clone_with_uid()
116 v9fs_fid_lookup_with_uid(struct dentry *dentry, kuid_t uid, int any) v9fs_fid_lookup_with_uid() argument
H A Dv9fs.c171 "uid field, but not a uid?\n"); v9fs_parse_options()
270 uid_t uid; v9fs_parse_options() local
272 uid = simple_strtoul(s, &e, 10); v9fs_parse_options()
280 v9ses->uid = make_kuid(current_user_ns(), uid); v9fs_parse_options()
281 if (!uid_valid(v9ses->uid)) { v9fs_parse_options()
283 pr_info("Uknown uid %s\n", s); v9fs_parse_options()
349 v9ses->uid = INVALID_UID; v9fs_session_init()
394 v9ses->uid = INVALID_UID; v9fs_session_init()
415 fid->uid = v9ses->uid; v9fs_session_init()
417 fid->uid = INVALID_UID; v9fs_session_init()
H A Dv9fs.h86 * @uid: if %V9FS_ACCESS_SINGLE, the numeric uid which mounted the hierarchy
112 kuid_t dfltuid; /* default uid/muid for legacy support */
114 kuid_t uid; /* if ACCESS_SINGLE, the uid that has access */ member in struct:v9fs_session_info
/linux-4.1.27/block/
H A Dioprio.c40 if (!uid_eq(tcred->uid, cred->euid) && set_task_ioprio()
41 !uid_eq(tcred->uid, cred->uid) && !capable(CAP_SYS_NICE)) { set_task_ioprio()
68 kuid_t uid; SYSCALL_DEFINE3() local
114 uid = make_kuid(current_user_ns(), who);
115 if (!uid_valid(uid))
120 user = find_user(uid);
126 if (!uid_eq(task_uid(p), uid)) do_each_thread()
183 kuid_t uid; SYSCALL_DEFINE2() local
213 uid = make_kuid(current_user_ns(), who);
217 user = find_user(uid);
223 if (!uid_eq(task_uid(p), user->uid)) do_each_thread()
/linux-4.1.27/security/keys/
H A Dpersistent.c42 static key_ref_t key_create_persistent(struct user_namespace *ns, kuid_t uid, key_create_persistent() argument
60 uid, INVALID_GID, current_cred(), key_create_persistent()
75 static long key_get_persistent(struct user_namespace *ns, kuid_t uid, key_get_persistent() argument
87 index_key.desc_len = sprintf(buf, "_persistent.%u", from_kuid(ns, uid)); key_get_persistent()
103 persistent_ref = key_create_persistent(ns, uid, &index_key); key_get_persistent()
133 kuid_t uid; keyctl_get_persistent() local
138 uid = current_uid(); keyctl_get_persistent()
140 uid = make_kuid(ns, _uid); keyctl_get_persistent()
141 if (!uid_valid(uid)) keyctl_get_persistent()
147 if (!uid_eq(uid, current_uid()) && keyctl_get_persistent()
148 !uid_eq(uid, current_euid()) && keyctl_get_persistent()
162 ret = key_get_persistent(ns, uid, dest_ref); keyctl_get_persistent()
H A Dproc.c92 if (kuid_has_mapping(user_ns, key->user->uid)) key_serial_next()
129 if (kuid_has_mapping(user_ns, minkey->user->uid)) find_ge_key()
258 from_kuid_munged(seq_user_ns(m), key->uid), proc_keys_show()
276 if (kuid_has_mapping(user_ns, user->uid)) __key_user_next()
336 unsigned maxkeys = uid_eq(user->uid, GLOBAL_ROOT_UID) ? proc_key_users_show()
338 unsigned maxbytes = uid_eq(user->uid, GLOBAL_ROOT_UID) ? proc_key_users_show()
342 from_kuid_munged(seq_user_ns(m), user->uid), proc_key_users_show()
H A Dprocess_keys.c37 .uid = GLOBAL_ROOT_UID,
51 uid_t uid; install_user_keyrings() local
56 uid = from_kuid(cred->user_ns, user->uid); install_user_keyrings()
58 kenter("%p{%u}", user, uid); install_user_keyrings()
73 sprintf(buf, "_uid.%u", uid); install_user_keyrings()
77 uid_keyring = keyring_alloc(buf, user->uid, INVALID_GID, install_user_keyrings()
88 sprintf(buf, "_uid_ses.%u", uid); install_user_keyrings()
93 keyring_alloc(buf, user->uid, INVALID_GID, install_user_keyrings()
135 keyring = keyring_alloc("_tid", new->uid, new->gid, new, install_thread_keyring_to_cred()
181 keyring = keyring_alloc("_pid", new->uid, new->gid, new, install_process_keyring_to_cred()
232 keyring = keyring_alloc("_ses", cred->uid, cred->gid, cred, install_session_keyring_to_cred()
282 tsk->cred->thread_keyring->uid = tsk->cred->fsuid; key_fsuid_changed()
786 name, old->uid, old->gid, old, join_session_keyring()
836 new-> uid = old-> uid; key_change_session_keyring()
H A Dkey.c54 struct key_user *key_user_lookup(kuid_t uid) key_user_lookup() argument
69 if (uid_lt(uid, user->uid)) key_user_lookup()
71 else if (uid_gt(uid, user->uid)) key_user_lookup()
99 candidate->uid = uid; key_user_lookup()
199 * @uid: The owner of the new key.
225 kuid_t uid, kgid_t gid, const struct cred *cred, key_alloc()
249 user = key_user_lookup(uid); key_alloc()
256 unsigned maxkeys = uid_eq(uid, GLOBAL_ROOT_UID) ? key_alloc()
258 unsigned maxbytes = uid_eq(uid, GLOBAL_ROOT_UID) ? key_alloc()
291 key->uid = uid; key_alloc()
371 unsigned maxbytes = uid_eq(key->user->uid, GLOBAL_ROOT_UID) ? key_payload_reserve()
224 key_alloc(struct key_type *type, const char *desc, kuid_t uid, kgid_t gid, const struct cred *cred, key_perm_t perm, unsigned long flags) key_alloc() argument
H A Dkeyctl.c556 * type;uid;gid;perm;description<NUL>
600 from_kuid_munged(current_user_ns(), key->uid), keyctl_describe_key()
784 * caller must have sysadmin capability. If either uid or gid is -1 then that
799 kuid_t uid; keyctl_chown_key() local
802 uid = make_kuid(current_user_ns(), user); keyctl_chown_key()
805 if ((user != (uid_t) -1) && !uid_valid(uid)) keyctl_chown_key()
829 if (user != (uid_t) -1 && !uid_eq(key->uid, uid)) keyctl_chown_key()
839 if (user != (uid_t) -1 && !uid_eq(uid, key->uid)) { keyctl_chown_key()
841 newowner = key_user_lookup(uid); keyctl_chown_key()
847 unsigned maxkeys = uid_eq(uid, GLOBAL_ROOT_UID) ? keyctl_chown_key()
849 unsigned maxbytes = uid_eq(uid, GLOBAL_ROOT_UID) ? keyctl_chown_key()
879 key->uid = uid; keyctl_chown_key()
934 if (capable(CAP_SYS_ADMIN) || uid_eq(key->uid, current_fsuid())) { keyctl_setperm_key()
1520 if (!uid_eq(pcred->uid, mycred->euid) || keyctl_session_to_parent()
1530 !uid_eq(pcred->session_keyring->uid, mycred->euid)) || keyctl_session_to_parent()
1531 !uid_eq(mycred->session_keyring->uid, mycred->euid)) keyctl_session_to_parent()
H A Dinternal.h57 kuid_t uid; member in struct:key_user
66 extern struct key_user *key_user_lookup(kuid_t uid);
254 static inline long keyctl_get_persistent(uid_t uid, key_serial_t destring) keyctl_get_persistent() argument
H A Dpermission.c40 if (uid_eq(key->uid, cred->fsuid)) { key_task_permission()
/linux-4.1.27/drivers/s390/block/
H A Ddasd_alias.c52 static struct alias_server *_find_server(struct dasd_uid *uid) _find_server() argument
56 if (!strncmp(pos->uid.vendor, uid->vendor, _find_server()
57 sizeof(uid->vendor)) _find_server()
58 && !strncmp(pos->uid.serial, uid->serial, _find_server()
59 sizeof(uid->serial))) _find_server()
66 struct dasd_uid *uid) _find_lcu()
70 if (pos->uid.ssid == uid->ssid) _find_lcu()
77 struct dasd_uid *uid) _find_group()
92 if (uid->type == UA_BASE_DEVICE) _find_group()
93 search_unit_addr = uid->real_unit_addr; _find_group()
95 search_unit_addr = uid->base_unit_addr; _find_group()
97 if (pos->uid.base_unit_addr == search_unit_addr && _find_group()
98 !strncmp(pos->uid.vduit, uid->vduit, sizeof(uid->vduit))) _find_group()
104 static struct alias_server *_allocate_server(struct dasd_uid *uid) _allocate_server() argument
111 memcpy(server->uid.vendor, uid->vendor, sizeof(uid->vendor)); _allocate_server()
112 memcpy(server->uid.serial, uid->serial, sizeof(uid->serial)); _allocate_server()
123 static struct alias_lcu *_allocate_lcu(struct dasd_uid *uid) _allocate_lcu() argument
144 memcpy(lcu->uid.vendor, uid->vendor, sizeof(uid->vendor)); _allocate_lcu()
145 memcpy(lcu->uid.serial, uid->serial, sizeof(uid->serial)); _allocate_lcu()
146 lcu->uid.ssid = uid->ssid; _allocate_lcu()
192 struct dasd_uid uid; dasd_alias_make_device_known_to_lcu() local
196 device->discipline->get_uid(device, &uid); dasd_alias_make_device_known_to_lcu()
198 server = _find_server(&uid); dasd_alias_make_device_known_to_lcu()
201 newserver = _allocate_server(&uid); dasd_alias_make_device_known_to_lcu()
205 server = _find_server(&uid); dasd_alias_make_device_known_to_lcu()
215 lcu = _find_lcu(server, &uid); dasd_alias_make_device_known_to_lcu()
218 newlcu = _allocate_lcu(&uid); dasd_alias_make_device_known_to_lcu()
222 lcu = _find_lcu(server, &uid); dasd_alias_make_device_known_to_lcu()
252 struct dasd_uid uid; dasd_alias_disconnect_device_from_lcu() local
259 device->discipline->get_uid(device, &uid); dasd_alias_disconnect_device_from_lcu()
300 server = _find_server(&uid); dasd_alias_disconnect_device_from_lcu()
310 * in the lcu is up to date and will update the device uid before
321 struct dasd_uid uid; _add_device_to_lcu() local
330 private->uid.type = lcu->uac->unit[private->uid.real_unit_addr].ua_type; _add_device_to_lcu()
331 private->uid.base_unit_addr = _add_device_to_lcu()
332 lcu->uac->unit[private->uid.real_unit_addr].base_ua; _add_device_to_lcu()
333 uid = private->uid; _add_device_to_lcu()
344 group = _find_group(lcu, &uid); _add_device_to_lcu()
349 memcpy(group->uid.vendor, uid.vendor, sizeof(uid.vendor)); _add_device_to_lcu()
350 memcpy(group->uid.serial, uid.serial, sizeof(uid.serial)); _add_device_to_lcu()
351 group->uid.ssid = uid.ssid; _add_device_to_lcu()
352 if (uid.type == UA_BASE_DEVICE) _add_device_to_lcu()
353 group->uid.base_unit_addr = uid.real_unit_addr; _add_device_to_lcu()
355 group->uid.base_unit_addr = uid.base_unit_addr; _add_device_to_lcu()
356 memcpy(group->uid.vduit, uid.vduit, sizeof(uid.vduit)); _add_device_to_lcu()
362 if (uid.type == UA_BASE_DEVICE) _add_device_to_lcu()
762 if (private->uid.type != UA_BASE_DEVICE) { _restart_all_base_devices_on_lcu()
774 if (private->uid.type != UA_BASE_DEVICE) { _restart_all_base_devices_on_lcu()
815 if (private->uid.type == UA_BASE_DEVICE) flush_all_alias_devices_on_lcu()
65 _find_lcu(struct alias_server *server, struct dasd_uid *uid) _find_lcu() argument
76 _find_group(struct alias_lcu *lcu, struct dasd_uid *uid) _find_group() argument
H A Ddasd_devmap.c1056 struct dasd_uid uid; dasd_alias_show() local
1063 !device->discipline->get_uid(device, &uid)) { dasd_alias_show()
1064 if (uid.type == UA_BASE_PAV_ALIAS || dasd_alias_show()
1065 uid.type == UA_HYPER_PAV_ALIAS) { dasd_alias_show()
1081 struct dasd_uid uid; dasd_vendor_show() local
1090 !device->discipline->get_uid(device, &uid)) dasd_vendor_show()
1091 vendor = uid.vendor; dasd_vendor_show()
1108 struct dasd_uid uid; dasd_uid_show() local
1118 !device->discipline->get_uid(device, &uid)) { dasd_uid_show()
1119 switch (uid.type) { dasd_uid_show()
1122 uid.real_unit_addr); dasd_uid_show()
1126 uid.base_unit_addr); dasd_uid_show()
1134 uid.real_unit_addr); dasd_uid_show()
1138 if (strlen(uid.vduit) > 0) dasd_uid_show()
1141 uid.vendor, uid.serial, uid.ssid, ua_string, dasd_uid_show()
1142 uid.vduit); dasd_uid_show()
1146 uid.vendor, uid.serial, uid.ssid, ua_string); dasd_uid_show()
1152 static DEVICE_ATTR(uid, 0444, dasd_uid_show, NULL);
H A Ddasd_eckd.c520 /* private uid is kept up to date, conf_data may be outdated */ prefix_LRE()
521 if (startpriv->uid.type != UA_BASE_DEVICE) { prefix_LRE()
523 if (startpriv->uid.type == UA_HYPER_PAV_ALIAS) prefix_LRE()
771 struct dasd_uid *uid; create_uid() local
773 uid = &private->uid; create_uid()
774 memset(uid, 0, sizeof(struct dasd_uid)); create_uid()
775 memcpy(uid->vendor, private->ned->HDA_manufacturer, create_uid()
776 sizeof(uid->vendor) - 1); create_uid()
777 EBCASC(uid->vendor, sizeof(uid->vendor) - 1); create_uid()
778 memcpy(uid->serial, private->ned->HDA_location, create_uid()
779 sizeof(uid->serial) - 1); create_uid()
780 EBCASC(uid->serial, sizeof(uid->serial) - 1); create_uid()
781 uid->ssid = private->gneq->subsystemID; create_uid()
782 uid->real_unit_addr = private->ned->unit_addr; create_uid()
784 uid->type = private->sneq->sua_flags; create_uid()
785 if (uid->type == UA_BASE_PAV_ALIAS) create_uid()
786 uid->base_unit_addr = private->sneq->base_unit_addr; create_uid()
788 uid->type = UA_BASE_DEVICE; create_uid()
792 sprintf(uid->vduit+2*count, "%02x", create_uid()
817 static int dasd_eckd_get_uid(struct dasd_device *device, struct dasd_uid *uid) dasd_eckd_get_uid() argument
825 *uid = private->uid; dasd_eckd_get_uid()
844 return memcmp(&device_uid, &private->uid, sizeof(struct dasd_uid)); dasd_eckd_compare_path_uid()
1043 struct dasd_uid *uid; dasd_eckd_read_conf() local
1101 uid = &path_private.uid; dasd_eckd_read_conf()
1102 if (strlen(uid->vduit) > 0) dasd_eckd_read_conf()
1106 uid->vendor, uid->serial, dasd_eckd_read_conf()
1107 uid->ssid, uid->real_unit_addr, dasd_eckd_read_conf()
1108 uid->vduit); dasd_eckd_read_conf()
1113 uid->vendor, uid->serial, dasd_eckd_read_conf()
1114 uid->ssid, dasd_eckd_read_conf()
1115 uid->real_unit_addr); dasd_eckd_read_conf()
1116 uid = &private->uid; dasd_eckd_read_conf()
1117 if (strlen(uid->vduit) > 0) dasd_eckd_read_conf()
1121 uid->vendor, uid->serial, dasd_eckd_read_conf()
1122 uid->ssid, uid->real_unit_addr, dasd_eckd_read_conf()
1123 uid->vduit); dasd_eckd_read_conf()
1128 uid->vendor, uid->serial, dasd_eckd_read_conf()
1129 uid->ssid, dasd_eckd_read_conf()
1130 uid->real_unit_addr); dasd_eckd_read_conf()
1247 struct dasd_uid *uid; do_path_verification_work() local
1352 uid = &path_private.uid; do_path_verification_work()
1353 if (strlen(uid->vduit) > 0) do_path_verification_work()
1356 uid->vendor, uid->serial, do_path_verification_work()
1357 uid->ssid, uid->real_unit_addr, do_path_verification_work()
1358 uid->vduit); do_path_verification_work()
1362 uid->vendor, uid->serial, do_path_verification_work()
1363 uid->ssid, do_path_verification_work()
1364 uid->real_unit_addr); do_path_verification_work()
1585 if (private->uid.type == UA_BASE_PAV_ALIAS || dasd_eckd_validate_server()
1586 private->uid.type == UA_HYPER_PAV_ALIAS) dasd_eckd_validate_server()
1597 "returned rc=%d", private->uid.ssid, rc); dasd_eckd_validate_server()
2966 /* private uid is kept up to date, conf_data may be outdated */ prepare_itcw()
2967 if (startpriv->uid.type != UA_BASE_DEVICE) { prepare_itcw()
2969 if (startpriv->uid.type == UA_HYPER_PAV_ALIAS) prepare_itcw()
4411 if (memcmp(&private->uid, &temp_uid, sizeof(struct dasd_uid)) != 0) dasd_eckd_restore_device()
4458 struct dasd_uid uid; dasd_eckd_reload_device() local
4464 old_base = private->uid.base_unit_addr; dasd_eckd_reload_device()
4481 dasd_eckd_get_uid(device, &uid); dasd_eckd_reload_device()
4483 if (old_base != uid.base_unit_addr) { dasd_eckd_reload_device()
4484 if (strlen(uid.vduit) > 0) dasd_eckd_reload_device()
4486 "%s.%s.%04x.%02x.%s", uid.vendor, uid.serial, dasd_eckd_reload_device()
4487 uid.ssid, uid.base_unit_addr, uid.vduit); dasd_eckd_reload_device()
4490 "%s.%s.%04x.%02x", uid.vendor, uid.serial, dasd_eckd_reload_device()
4491 uid.ssid, uid.base_unit_addr); dasd_eckd_reload_device()
H A Ddasd_eckd.h455 struct dasd_uid uid; member in struct:alias_server
472 struct dasd_uid uid; member in struct:alias_lcu
488 struct dasd_uid uid; member in struct:alias_pav_group
513 struct dasd_uid uid; member in struct:dasd_eckd_private
/linux-4.1.27/usr/
H A Dgen_init_cpio.c82 (long) 0, /* uid */ cpio_trailer()
103 unsigned int mode, uid_t uid, gid_t gid) cpio_mkslink()
114 (long) uid, /* uid */ cpio_mkslink()
138 int uid; cpio_mkslink_line() local
142 if (5 != sscanf(line, "%" str(PATH_MAX) "s %" str(PATH_MAX) "s %o %d %d", name, target, &mode, &uid, &gid)) { cpio_mkslink_line()
146 rc = cpio_mkslink(name, target, mode, uid, gid); cpio_mkslink_line()
152 uid_t uid, gid_t gid) cpio_mkgeneric()
163 (long) uid, /* uid */ cpio_mkgeneric()
209 int uid; cpio_mkgeneric_line() local
213 if (4 != sscanf(line, "%" str(PATH_MAX) "s %o %d %d", name, &mode, &uid, &gid)) { cpio_mkgeneric_line()
219 rc = cpio_mkgeneric(name, mode, uid, gid); cpio_mkgeneric_line()
240 uid_t uid, gid_t gid, char dev_type, cpio_mknod()
257 (long) uid, /* uid */ cpio_mknod()
277 int uid; cpio_mknod_line() local
285 name, &mode, &uid, &gid, &dev_type, &maj, &min)) { cpio_mknod_line()
289 rc = cpio_mknod(name, mode, uid, gid, dev_type, maj, min); cpio_mknod_line()
295 unsigned int mode, uid_t uid, gid_t gid, cpio_mkfile()
347 (long) uid, /* uid */ cpio_mkfile()
405 int uid; cpio_mkfile_line() local
413 name, location, &mode, &uid, &gid, &end)) { cpio_mkfile_line()
445 mode, uid, gid, nlinks); cpio_mkfile_line()
460 "file <name> <location> <mode> <uid> <gid> [<hard links>]\n" usage()
461 "dir <name> <mode> <uid> <gid>\n" usage()
462 "nod <name> <mode> <uid> <gid> <dev_type> <maj> <min>\n" usage()
463 "slink <name> <target> <mode> <uid> <gid>\n" usage()
464 "pipe <name> <mode> <uid> <gid>\n" usage()
465 "sock <name> <mode> <uid> <gid>\n" usage()
472 "<uid> user id (0=root)\n" usage()
102 cpio_mkslink(const char *name, const char *target, unsigned int mode, uid_t uid, gid_t gid) cpio_mkslink() argument
151 cpio_mkgeneric(const char *name, unsigned int mode, uid_t uid, gid_t gid) cpio_mkgeneric() argument
239 cpio_mknod(const char *name, unsigned int mode, uid_t uid, gid_t gid, char dev_type, unsigned int maj, unsigned int min) cpio_mknod() argument
294 cpio_mkfile(const char *name, const char *location, unsigned int mode, uid_t uid, gid_t gid, unsigned int nlinks) cpio_mkfile() argument
/linux-4.1.27/fs/gfs2/
H A Dquota.h21 extern int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
24 extern int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid);
27 extern int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid,
30 kuid_t uid, kgid_t gid);
H A Dquota.c530 int gfs2_quota_hold(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) gfs2_quota_hold() argument
563 if (!uid_eq(uid, NO_UID_QUOTA_CHANGE) && gfs2_quota_hold()
564 !uid_eq(uid, ip->i_inode.i_uid)) { gfs2_quota_hold()
565 error = qdsb_get(sdp, make_kqid_uid(uid), qd); gfs2_quota_hold()
961 int gfs2_quota_lock(struct gfs2_inode *ip, kuid_t uid, kgid_t gid) gfs2_quota_lock() argument
968 error = gfs2_quota_hold(ip, uid, gid); gfs2_quota_lock()
1100 * @uid: The uid to check against
1114 int gfs2_quota_check(struct gfs2_inode *ip, kuid_t uid, kgid_t gid, gfs2_quota_check() argument
1133 if (!(qid_eq(qd->qd_id, make_kqid_uid(uid)) || gfs2_quota_check()
1172 kuid_t uid, kgid_t gid) gfs2_quota_change()
1185 if (qid_eq(qd->qd_id, make_kqid_uid(uid)) || gfs2_quota_change()
1171 gfs2_quota_change(struct gfs2_inode *ip, s64 change, kuid_t uid, kgid_t gid) gfs2_quota_change() argument
/linux-4.1.27/fs/quota/
H A Dkqid.c18 return uid_eq(left.uid, right.uid); qid_eq()
44 return uid_lt(left.uid, right.uid); qid_lt()
71 return from_kuid(targ, kqid.uid); from_kqid()
104 return from_kuid_munged(targ, kqid.uid); from_kqid_munged()
123 return uid_valid(qid.uid); qid_valid()
/linux-4.1.27/include/net/
H A Dscm.h17 kuid_t uid; member in struct:scm_creds
54 struct pid *pid, kuid_t uid, kgid_t gid) scm_set_cred()
58 scm->creds.uid = uid; scm_set_cred()
79 scm->creds.uid = INVALID_UID; scm_send()
124 .uid = from_kuid_munged(current_ns, scm->creds.uid), scm_recv()
53 scm_set_cred(struct scm_cookie *scm, struct pid *pid, kuid_t uid, kgid_t gid) scm_set_cred() argument
H A Daf_unix.h32 kuid_t uid; member in struct:unix_skb_parms
H A Dtransp_v6.h62 " uid timeout inode ref pointer drops\n"
/linux-4.1.27/net/core/
H A Dscm.c50 kuid_t uid = make_kuid(cred->user_ns, creds->uid); scm_check_creds() local
53 if (!uid_valid(uid) || !gid_valid(gid)) scm_check_creds()
58 ((uid_eq(uid, cred->uid) || uid_eq(uid, cred->euid) || scm_check_creds()
59 uid_eq(uid, cred->suid)) || ns_capable(cred->user_ns, CAP_SETUID)) && scm_check_creds()
167 kuid_t uid; for_each_cmsghdr() local
188 uid = make_kuid(current_user_ns(), creds.uid); for_each_cmsghdr()
190 if (!uid_valid(uid) || !gid_valid(gid)) for_each_cmsghdr()
193 p->creds.uid = uid; for_each_cmsghdr()
/linux-4.1.27/fs/hfsplus/
H A Doptions.c34 { opt_uid, "uid=%u" },
56 opts->uid = current_uid(); hfsplus_fill_defaults()
135 pr_err("uid requires an argument\n"); hfsplus_parse_options()
138 sbi->uid = make_kuid(current_user_ns(), (uid_t)tmp); hfsplus_parse_options()
139 if (!uid_valid(sbi->uid)) { hfsplus_parse_options()
140 pr_err("invalid uid specified\n"); hfsplus_parse_options()
224 seq_printf(seq, ",umask=%o,uid=%u,gid=%u", sbi->umask, hfsplus_show_options()
225 from_kuid_munged(&init_user_ns, sbi->uid), hfsplus_show_options()
/linux-4.1.27/arch/arm/mach-lpc32xx/
H A Dcommon.c214 u32 uid[4]; lpc32xx_check_uid() local
216 lpc32xx_get_uid(uid); lpc32xx_check_uid()
219 uid[3], uid[2], uid[1], uid[0]); lpc32xx_check_uid()
222 system_serial_low = uid[0]; lpc32xx_check_uid()
223 system_serial_high = uid[1]; lpc32xx_check_uid()
/linux-4.1.27/arch/sparc/include/uapi/asm/
H A Dipcbuf.h18 __kernel_uid_t uid; member in struct:ipc64_perm
/linux-4.1.27/arch/s390/include/uapi/asm/
H A Dipcbuf.h17 __kernel_uid32_t uid; member in struct:ipc64_perm
/linux-4.1.27/scripts/
H A Dgen_initramfs_list.sh18 $0 [-o <file>] [-u <uid>] [-g <gid>] {-d | <cpio_source>} ...
21 -u <uid> User ID to map to user ID 0 (root).
22 <uid> is only meaningful if <cpio_source> is a
23 directory. "squash" forces all files to uid 0.
104 # <filetype> <name> <path to file> <octal mode> <uid> <gid>
112 local uid="$3"
115 # remap uid/gid to 0 if necessary
116 [ "$root_uid" = "squash" ] && uid=0 || [ "$uid" -eq "$root_uid" ] && uid=0
118 local str="${mode} ${uid} ${gid}"
269 "-u") # map $1 to uid=0 (root)
/linux-4.1.27/sound/pci/mixart/
H A Dmixart_hwdep.c163 request.uid = (struct mixart_uid){0,0}; /* board num = 0 */ mixart_enum_connectors()
184 pipe->uid_right_connector = connector->uid[k]; /* odd */ mixart_enum_connectors()
186 pipe->uid_left_connector = connector->uid[k]; /* even */ mixart_enum_connectors()
189 /* dev_dbg(&mgr->pci->dev, "playback connector[%d].object_id = %x\n", k, connector->uid[k].object_id); */ mixart_enum_connectors()
193 request.uid = connector->uid[k]; mixart_enum_connectors()
207 request.uid = (struct mixart_uid){0,0}; /* board num = 0 */ mixart_enum_connectors()
228 pipe->uid_right_connector = connector->uid[k]; /* odd */ mixart_enum_connectors()
230 pipe->uid_left_connector = connector->uid[k]; /* even */ mixart_enum_connectors()
233 /* dev_dbg(&mgr->pci->dev, "capture connector[%d].object_id = %x\n", k, connector->uid[k].object_id); */ mixart_enum_connectors()
237 request.uid = connector->uid[k]; mixart_enum_connectors()
268 /* get the uid for the console manager */ mixart_enum_physio()
273 request.uid = get_console_mgr; mixart_enum_physio()
287 mgr->uid_console_manager = console_mgr.uid; mixart_enum_physio()
290 request.uid = (struct mixart_uid){0,0}; mixart_enum_physio()
291 request.data = &console_mgr.uid; mixart_enum_physio()
292 request.size = sizeof(console_mgr.uid); mixart_enum_physio()
307 mgr->chip[k]->uid_in_analog_physio = phys_io.uid[k]; mixart_enum_physio()
308 mgr->chip[k]->uid_out_analog_physio = phys_io.uid[phys_io.nb_uid/2 + k]; mixart_enum_physio()
328 request.uid = (struct mixart_uid){0,0}; mixart_first_init()
H A Dmixart_core.c92 resp->uid.object_id = readl_be(MIXART_MEM(mgr, msg_frame_address + 8)); /* uidDest */ get_msg()
93 resp->uid.desc = readl_be(MIXART_MEM(mgr, msg_frame_address + 12)); /* */ get_msg()
186 writel_be( msg->uid.object_id, MIXART_MEM(mgr, msg_frame_address + 8) ); /* uidDest */ send_msg()
187 writel_be( msg->uid.desc, MIXART_MEM(mgr, msg_frame_address + 12) ); /* */ send_msg()
270 resp.uid = (struct mixart_uid){0,0}; snd_mixart_send_msg()
386 "received mf(%x) : msg_id(%x) uid(%x, %x) size(%zd)\n", snd_mixart_process_msg()
387 msg, resp.message_id, resp.uid.object_id, resp.uid.desc, resp.size); snd_mixart_process_msg()
H A Dmixart_core.h69 struct mixart_uid uid; member in struct:mixart_msg
82 struct mixart_uid uid[MIXART_MAX_PHYS_CONNECTORS]; member in struct:mixart_enum_connector_resp
277 /* request is a uid with desc = MSG_CONSOLE_MANAGER | cardindex */
282 struct mixart_uid uid; member in struct:mixart_return_uid
468 struct mixart_uid uid[MIXART_MAX_PHYS_IO]; member in struct:mixart_uid_enumeration
H A Dmixart.c100 request.uid = (struct mixart_uid){0,0}; mixart_set_pipe_state()
122 request.uid = pipe->group_uid; /*(struct mixart_uid){0,0};*/ mixart_set_pipe_state()
150 request.uid = (struct mixart_uid){0,0}; mixart_set_pipe_state()
206 request.uid = mgr->uid_console_manager; mixart_set_clock()
275 request.uid = (struct mixart_uid){0,0}; /* should be StreamManagerUID, but zero is OK if there is only one ! */ snd_mixart_add_ref_pipe()
373 request.uid = (struct mixart_uid){0,0}; snd_mixart_kill_ref_pipe()
412 request.uid = (struct mixart_uid){0,0}; mixart_set_stream_state()
585 request.uid = (struct mixart_uid){0,0}; mixart_set_format()
/linux-4.1.27/drivers/mmc/host/
H A Dsdhci-acpi.c150 const char *hid, const char *uid) sdhci_acpi_emmc_probe_slot()
162 if (hid && uid && !strcmp(hid, "80860F14") && !strcmp(uid, "1") && sdhci_acpi_emmc_probe_slot()
171 const char *hid, const char *uid) sdhci_acpi_sdio_probe_slot()
187 const char *hid, const char *uid) sdhci_acpi_sd_probe_slot()
237 const char *uid; member in struct:sdhci_acpi_uid_slot
267 const char *uid) sdhci_acpi_get_slot()
274 if (!u->uid) sdhci_acpi_get_slot()
276 if (uid && !strcmp(u->uid, uid)) sdhci_acpi_get_slot()
292 const char *uid; sdhci_acpi_probe() local
302 uid = device->pnp.unique_id; sdhci_acpi_probe()
321 c->slot = sdhci_acpi_get_slot(hid, uid); sdhci_acpi_probe()
340 err = c->slot->probe_slot(pdev, hid, uid); sdhci_acpi_probe()
149 sdhci_acpi_emmc_probe_slot(struct platform_device *pdev, const char *hid, const char *uid) sdhci_acpi_emmc_probe_slot() argument
170 sdhci_acpi_sdio_probe_slot(struct platform_device *pdev, const char *hid, const char *uid) sdhci_acpi_sdio_probe_slot() argument
186 sdhci_acpi_sd_probe_slot(struct platform_device *pdev, const char *hid, const char *uid) sdhci_acpi_sd_probe_slot() argument
266 sdhci_acpi_get_slot(const char *hid, const char *uid) sdhci_acpi_get_slot() argument
/linux-4.1.27/arch/s390/kernel/
H A Dcompat_linux.c76 #define high2lowuid(uid) ((uid) > 65535) ? (u16)overflowuid : (u16)(uid)
78 #define low2highuid(uid) ((uid) == (u16)-1) ? (uid_t)-1 : (uid_t)(uid)
80 #define SET_UID16(var, uid) var = high2lowuid(uid)
82 #define NEW_TO_OLD_UID(uid) high2lowuid(uid)
84 #define SET_OLDSTAT_UID(stat, uid) (stat).st_uid = high2lowuid(uid)
86 #define SET_STAT_UID(stat, uid) (stat).st_uid = high2lowuid(uid)
121 COMPAT_SYSCALL_DEFINE1(s390_setuid16, u16, uid) COMPAT_SYSCALL_DEFINE1()
123 return sys_setuid((uid_t)uid); COMPAT_SYSCALL_DEFINE1()
139 ruid = high2lowuid(from_kuid_munged(cred->user_ns, cred->uid)); COMPAT_SYSCALL_DEFINE3()
174 COMPAT_SYSCALL_DEFINE1(s390_setfsuid16, u16, uid) COMPAT_SYSCALL_DEFINE1()
176 return sys_setfsuid((uid_t)uid); COMPAT_SYSCALL_DEFINE1()
369 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); cp_stat64()
H A Dcompat_linux.h96 long compat_sys_s390_setuid16(u16 uid);
101 long compat_sys_s390_setfsuid16(u16 uid);
/linux-4.1.27/drivers/staging/lustre/lustre/libcfs/
H A Dkernel_user_comm.c96 /** A single group registration has a uid and a file pointer */
109 * @param uid identifier for this receiver
112 int libcfs_kkuc_group_add(struct file *filp, int uid, int group, __u32 data) libcfs_kkuc_group_add() argument
131 reg->kr_uid = uid; libcfs_kkuc_group_add()
140 CDEBUG(D_KUC, "Added uid=%d fp=%p to group %d\n", uid, filp, group); libcfs_kkuc_group_add()
146 int libcfs_kkuc_group_rem(int uid, int group) libcfs_kkuc_group_rem() argument
153 if (uid == 0) { libcfs_kkuc_group_rem()
166 if ((uid == 0) || (uid == reg->kr_uid)) { libcfs_kkuc_group_rem()
168 CDEBUG(D_KUC, "Removed uid=%d fp=%p from group %d\n", libcfs_kkuc_group_rem()
/linux-4.1.27/fs/squashfs/
H A Dsquashfs_fs.h176 /* uid/gid lookup table defines */
277 __le16 uid; member in struct:squashfs_base_inode
286 __le16 uid; member in struct:squashfs_ipc_inode
296 __le16 uid; member in struct:squashfs_lipc_inode
307 __le16 uid; member in struct:squashfs_dev_inode
318 __le16 uid; member in struct:squashfs_ldev_inode
330 __le16 uid; member in struct:squashfs_symlink_inode
342 __le16 uid; member in struct:squashfs_reg_inode
356 __le16 uid; member in struct:squashfs_lreg_inode
373 __le16 uid; member in struct:squashfs_dir_inode
387 __le16 uid; member in struct:squashfs_ldir_inode
H A Did.c27 * For space efficiency regular files store uid and gid indexes, which are
43 * Map uid/gid index into real 32-bit uid/gid using the id look up table
/linux-4.1.27/arch/arm/mach-ux500/
H A Dcpu-db8500.c128 void __iomem *uid = __io_address(U8500_BB_UID_BASE); db8500_read_soc_id() local
131 add_device_randomness(uid, 0x14); db8500_read_soc_id()
133 readl((u32 *)uid+0), db8500_read_soc_id()
134 readl((u32 *)uid+1), readl((u32 *)uid+2), db8500_read_soc_id()
135 readl((u32 *)uid+3), readl((u32 *)uid+4)); db8500_read_soc_id()
/linux-4.1.27/net/sunrpc/
H A Dsvcauth_unix.c26 * AUTHNULL is treated just like AUTHUNIX except that the uid/gid
413 kuid_t uid; member in struct:unix_gid
417 static int unix_gid_hash(kuid_t uid) unix_gid_hash() argument
419 return hash_long(from_kuid(&init_user_ns, uid), GID_HASHBITS); unix_gid_hash()
436 return uid_eq(orig->uid, new->uid); unix_gid_match()
442 new->uid = item->uid; unix_gid_init()
468 snprintf(tuid, 20, "%u", from_kuid(&init_user_ns, ug->uid)); unix_gid_request()
473 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid);
478 /* uid expiry Ngid gid0 gid1 ... gidN-1 */ unix_gid_parse()
480 kuid_t uid; unix_gid_parse() local
495 uid = make_kuid(&init_user_ns, id); unix_gid_parse()
496 ug.uid = uid; unix_gid_parse()
523 ugp = unix_gid_lookup(cd, uid); unix_gid_parse()
530 unix_gid_hash(uid)); unix_gid_parse()
555 seq_puts(m, "#uid cnt: gids...\n"); unix_gid_show()
565 seq_printf(m, "%u %d:", from_kuid_munged(user_ns, ug->uid), glen); unix_gid_show()
615 static struct unix_gid *unix_gid_lookup(struct cache_detail *cd, kuid_t uid) unix_gid_lookup() argument
620 ug.uid = uid; unix_gid_lookup()
621 ch = sunrpc_cache_lookup(cd, &ug.h, unix_gid_hash(uid)); unix_gid_lookup()
628 static struct group_info *unix_gid_find(kuid_t uid, struct svc_rqst *rqstp) unix_gid_find() argument
636 ug = unix_gid_lookup(sn->unix_gid_cache, uid); unix_gid_find()
749 /* Signal that mapping to nobody uid/gid is required */ svcauth_null_accept()
814 * Instead, -1 uid or gid is later mapped to the svcauth_unix_accept()
818 cred->cr_uid = make_kuid(&init_user_ns, svc_getnl(argv)); /* uid */ svcauth_unix_accept()
H A Dauth_generic.c53 .uid = RPC_MACHINE_CRED_USERID, rpc_lookup_machine_cred()
95 gcred->acred.uid = acred->uid; generic_create_cred()
104 dprintk("RPC: allocated %s cred %p for uid %d gid %d\n", generic_create_cred()
107 from_kuid(&init_user_ns, acred->uid), generic_create_cred()
141 !uid_eq(gcred->acred.uid, acred->uid) || machine_cred_match()
159 if (!uid_eq(gcred->acred.uid, acred->uid) || generic_match()
H A Dauth_unix.c67 dprintk("RPC: allocating UNIX cred for uid %d gid %d\n", unx_create_cred()
68 from_kuid(&init_user_ns, acred->uid), unx_create_cred()
124 if (!uid_eq(cred->uc_uid, acred->uid) || !gid_eq(cred->uc_gid, acred->gid)) unx_match()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
H A Dalloc.c216 u32 uid; member in struct:mlx4_zone_entry
264 zone->uid = zone_alloc->last_uid++; mlx4_zone_add_one()
280 *puid = zone->uid; mlx4_zone_add_one()
342 u32 uid; __mlx4_alloc_from_zone() local
352 uid = zone->uid; __mlx4_alloc_from_zone()
369 uid = it->uid; __mlx4_alloc_from_zone()
389 uid = it->uid; __mlx4_alloc_from_zone()
408 uid = curr_node->uid; __mlx4_alloc_from_zone()
416 *puid = uid; __mlx4_alloc_from_zone()
429 struct mlx4_zone_allocator *zones, u32 uid) __mlx4_find_zone_by_uid()
434 if (zone->uid == uid) __mlx4_find_zone_by_uid()
441 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_get_bitmap() argument
448 zone = __mlx4_find_zone_by_uid(zones, uid); mlx4_zone_get_bitmap()
457 int mlx4_zone_remove_one(struct mlx4_zone_allocator *zones, u32 uid) mlx4_zone_remove_one() argument
464 zone = __mlx4_find_zone_by_uid(zones, uid); mlx4_zone_remove_one()
511 u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count, mlx4_zone_alloc_entries() argument
519 zone = __mlx4_find_zone_by_uid(zones, uid); mlx4_zone_alloc_entries()
532 u32 mlx4_zone_free_entries(struct mlx4_zone_allocator *zones, u32 uid, u32 obj, u32 count) mlx4_zone_free_entries() argument
539 zone = __mlx4_find_zone_by_uid(zones, uid); mlx4_zone_free_entries()
428 __mlx4_find_zone_by_uid( struct mlx4_zone_allocator *zones, u32 uid) __mlx4_find_zone_by_uid() argument
H A Dmlx4.h1406 /* Remove bitmap indicated by <uid> from <zone_alloc> */
1407 int mlx4_zone_remove_one(struct mlx4_zone_allocator *zone_alloc, u32 uid);
1415 * from the mlx4_bitmap whose uid is <uid>. The bitmap which we actually
1419 u32 mlx4_zone_alloc_entries(struct mlx4_zone_allocator *zones, u32 uid, int count,
1422 /* Free <count> objects, start from <obj> of the uid <uid> from zone_allocator
1426 u32 uid, u32 obj, u32 count);
1429 * specifying the uid when freeing an object, zone allocator could figure it by
1434 /* Returns a pointer to mlx4_bitmap that was attached to <zones> with <uid> */
1435 struct mlx4_bitmap *mlx4_zone_get_bitmap(struct mlx4_zone_allocator *zones, u32 uid);
H A Dqp.c216 u32 uid; __mlx4_qp_reserve_range() local
225 uid = MLX4_QP_TABLE_ZONE_GENERAL; __mlx4_qp_reserve_range()
228 uid = MLX4_QP_TABLE_ZONE_RAW_ETH; __mlx4_qp_reserve_range()
230 uid = MLX4_QP_TABLE_ZONE_RSS; __mlx4_qp_reserve_range()
233 *base = mlx4_zone_alloc_entries(qp_table->zones, uid, cnt, align, __mlx4_qp_reserve_range()
/linux-4.1.27/drivers/misc/
H A Dad525x_dpot.c90 unsigned uid; member in struct:dpot_data
136 if (dpot->uid == DPOT_UID(AD5291_ID) || dpot_read_spi()
137 dpot->uid == DPOT_UID(AD5292_ID) || dpot_read_spi()
138 dpot->uid == DPOT_UID(AD5293_ID)) { dpot_read_spi()
143 if (dpot->uid == DPOT_UID(AD5291_ID)) dpot_read_spi()
147 } else if (dpot->uid == DPOT_UID(AD5270_ID) || dpot_read_spi()
148 dpot->uid == DPOT_UID(AD5271_ID)) { dpot_read_spi()
156 if (dpot->uid == DPOT_UID(AD5271_ID)) dpot_read_spi()
180 switch (dpot->uid) { dpot_read_i2c()
219 if (dpot->uid == DPOT_UID(AD5271_ID)) dpot_read_i2c()
262 if (dpot->uid == DPOT_UID(AD5291_ID) || dpot_write_spi()
263 dpot->uid == DPOT_UID(AD5292_ID) || dpot_write_spi()
264 dpot->uid == DPOT_UID(AD5293_ID)) { dpot_write_spi()
269 if (dpot->uid == DPOT_UID(AD5291_ID)) dpot_write_spi()
275 } else if (dpot->uid == DPOT_UID(AD5270_ID) || dpot_write_spi()
276 dpot->uid == DPOT_UID(AD5271_ID)) { dpot_write_spi()
281 if (dpot->uid == DPOT_UID(AD5271_ID)) dpot_write_spi()
308 if (dpot->uid == DPOT_UID(AD5291_ID) || dpot_write_spi()
309 dpot->uid == DPOT_UID(AD5292_ID)) { dpot_write_spi()
312 } else if (dpot->uid == DPOT_UID(AD5270_ID) || dpot_write_spi()
313 dpot->uid == DPOT_UID(AD5271_ID)) { dpot_write_spi()
333 switch (dpot->uid) { dpot_write_i2c()
385 if (dpot->uid == DPOT_UID(AD5274_ID))
705 data->uid = DPOT_UID(devid); ad_dpot_probe()
H A Dad525x_dpot.h14 #define DPOT_CONF(features, wipers, max_pos, uid) \
16 ((max_pos & 0xF) << 6) | (uid & 0x3F))
/linux-4.1.27/net/ax25/
H A Dax25_uid.c54 ax25_uid_assoc *ax25_findbyuid(kuid_t uid) ax25_findbyuid() argument
60 if (uid_eq(ax25_uid->uid, uid)) { ax25_findbyuid()
85 res = from_kuid_munged(current_user_ns(), ax25_uid->uid); ax25_uid_ioctl()
112 ax25_uid->uid = sax25_kuid; ax25_uid_ioctl()
179 from_kuid_munged(seq_user_ns(seq), pt->uid), ax25_uid_seq_show()
/linux-4.1.27/drivers/thunderbolt/
H A Deeprom.c177 u8 uid_crc8; /* checksum for uid */
179 u64 uid; member in struct:tb_drom_header
264 * tb_drom_read_uid_only - read uid directly from drom
269 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid) tb_drom_read_uid_only() argument
278 /* read uid */ tb_drom_read_uid_only()
285 tb_sw_warn(sw, "uid crc8 missmatch (expected: %#x, got: %#x)\n", tb_drom_read_uid_only()
290 *uid = *(u64 *)(data+1); tb_drom_read_uid_only()
380 tb_drom_read_uid_only(sw, &sw->uid); tb_drom_read()
423 crc = tb_crc8((u8 *) &header->uid, 8); tb_drom_read()
426 "drom uid crc8 mismatch (expected: %#x, got: %#x), aborting\n", tb_drom_read()
430 sw->uid = header->uid; tb_drom_read()
H A Dswitch.c403 tb_sw_info(sw, "uid: %#llx\n", sw->uid); tb_switch_alloc()
451 u64 uid; tb_switch_resume() local
454 err = tb_drom_read_uid_only(sw, &uid); tb_switch_resume()
456 tb_sw_warn(sw, "uid read failed\n"); tb_switch_resume()
459 if (sw->uid != uid) { tb_switch_resume()
461 "changed while suspended (uid %#llx -> %#llx)\n", tb_switch_resume()
462 sw->uid, uid); tb_switch_resume()
H A Dtb.h22 u64 uid; member in struct:tb_switch
245 int tb_drom_read_uid_only(struct tb_switch *sw, u64 *uid);
/linux-4.1.27/arch/mips/include/uapi/asm/
H A Dsiginfo.h46 __ARCH_SI_UID_T _uid; /* sender's uid */
61 __ARCH_SI_UID_T _uid; /* sender's uid */
68 __ARCH_SI_UID_T _uid; /* sender's uid */
/linux-4.1.27/arch/ia64/include/uapi/asm/
H A Dsiginfo.h31 uid_t _uid; /* sender's uid */
46 uid_t _uid; /* sender's uid */
53 uid_t _uid; /* sender's uid */
/linux-4.1.27/arch/xtensa/include/uapi/asm/
H A Dipcbuf.h27 __kernel_uid32_t uid; member in struct:ipc64_perm
/linux-4.1.27/include/uapi/asm-generic/
H A Dipcbuf.h21 __kernel_uid32_t uid; member in struct:ipc64_perm
H A Dsiginfo.h59 __ARCH_SI_UID_T _uid; /* sender's uid */
74 __ARCH_SI_UID_T _uid; /* sender's uid */
81 __ARCH_SI_UID_T _uid; /* sender's uid */
/linux-4.1.27/arch/parisc/include/uapi/asm/
H A Dipcbuf.h14 uid_t uid; member in struct:ipc64_perm
/linux-4.1.27/security/integrity/
H A Dintegrity_audit.c42 audit_log_format(ab, "pid=%d uid=%u auid=%u ses=%u", integrity_audit_msg()
44 from_kuid(&init_user_ns, current_cred()->uid), integrity_audit_msg()
/linux-4.1.27/drivers/net/wireless/iwlwifi/mvm/
H A Dscan.c1154 static int iwl_mvm_find_scan_uid(struct iwl_mvm *mvm, u32 uid) iwl_mvm_find_scan_uid() argument
1159 if (mvm->scan_uid[i] == uid) iwl_mvm_find_scan_uid()
1197 u32 uid; iwl_generate_scan_uid() local
1205 * we may have more than one scan with the same uid. iwl_generate_scan_uid()
1208 uid = type | (mvm->scan_seq_num << iwl_generate_scan_uid()
1211 } while (iwl_mvm_find_scan_uid(mvm, uid) < iwl_generate_scan_uid()
1214 IWL_DEBUG_SCAN(mvm, "Generated scan UID %u\n", uid); iwl_generate_scan_uid()
1216 return uid; iwl_generate_scan_uid()
1289 u32 uid, flags; iwl_mvm_scan_umac() local
1316 uid = iwl_generate_scan_uid(mvm, IWL_UMAC_SCAN_UID_REG_SCAN); iwl_mvm_scan_umac()
1317 mvm->scan_uid[uid_idx] = uid; iwl_mvm_scan_umac()
1318 cmd->uid = cpu_to_le32(uid); iwl_mvm_scan_umac()
1386 u32 uid, flags; iwl_mvm_sched_scan_umac() local
1414 uid = iwl_generate_scan_uid(mvm, IWL_UMAC_SCAN_UID_SCHED_SCAN); iwl_mvm_sched_scan_umac()
1415 mvm->scan_uid[uid_idx] = uid; iwl_mvm_sched_scan_umac()
1416 cmd->uid = cpu_to_le32(uid); iwl_mvm_sched_scan_umac()
1487 u32 uid = __le32_to_cpu(notif->uid); iwl_mvm_rx_umac_scan_complete_notif() local
1488 bool sched = !!(uid & IWL_UMAC_SCAN_UID_SCHED_SCAN); iwl_mvm_rx_umac_scan_complete_notif()
1489 int uid_idx = iwl_mvm_find_scan_uid(mvm, uid); iwl_mvm_rx_umac_scan_complete_notif()
1492 * Scan uid may be set to zero in case of scan abort request from above. iwl_mvm_rx_umac_scan_complete_notif()
1498 "Scan completed, uid %u type %s, status %s, EBS status %s\n", iwl_mvm_rx_umac_scan_complete_notif()
1499 uid, sched ? "sched" : "regular", iwl_mvm_rx_umac_scan_complete_notif()
1529 u32 uid = __le32_to_cpu(notif->uid); iwl_scan_umac_done_check() local
1530 int uid_idx = iwl_mvm_find_scan_uid(scan_done->mvm, uid); iwl_scan_umac_done_check()
1539 * Clear scan uid of scans that was aborted from above and completed iwl_scan_umac_done_check()
1551 static int iwl_umac_scan_abort_one(struct iwl_mvm *mvm, u32 uid) iwl_umac_scan_abort_one() argument
1556 .uid = cpu_to_le32(uid), iwl_umac_scan_abort_one()
1561 IWL_DEBUG_SCAN(mvm, "Sending scan abort, uid %u\n", uid); iwl_umac_scan_abort_one()
1644 u32 uid, i; iwl_mvm_report_scan_aborted() local
1646 uid = iwl_mvm_find_first_scan(mvm, IWL_UMAC_SCAN_UID_REG_SCAN); iwl_mvm_report_scan_aborted()
1647 if (uid < IWL_MVM_MAX_SIMULTANEOUS_SCANS) { iwl_mvm_report_scan_aborted()
1649 mvm->scan_uid[uid] = 0; iwl_mvm_report_scan_aborted()
1651 uid = iwl_mvm_find_first_scan(mvm, iwl_mvm_report_scan_aborted()
1653 if (uid < IWL_MVM_MAX_SIMULTANEOUS_SCANS && !mvm->restart_fw) { iwl_mvm_report_scan_aborted()
1655 mvm->scan_uid[uid] = 0; iwl_mvm_report_scan_aborted()
H A Dtime-event.c94 te_data->uid = 0; iwl_mvm_te_clear_data()
363 if (le32_to_cpu(notif->unique_id) == te_data->uid) { iwl_mvm_aux_roc_te_handle_notif()
393 te_data->uid = 0; iwl_mvm_aux_roc_te_handle_notif()
431 if (le32_to_cpu(notif->unique_id) == te_data->uid) iwl_mvm_rx_time_event_notif()
459 /* te_data->uid is already set in the TIME_EVENT_CMD response */ iwl_mvm_te_notif()
460 if (le32_to_cpu(resp->unique_id) != te_data->uid) iwl_mvm_te_notif()
464 te_data->uid); iwl_mvm_te_notif()
495 te_data->uid = le32_to_cpu(resp->unique_id); iwl_mvm_time_event_response()
497 te_data->uid); iwl_mvm_time_event_response()
584 te_data->uid, iwl_mvm_protect_session()
641 u32 *uid) __iwl_mvm_remove_time_event()
651 /* Save time event uid before clearing its data */ __iwl_mvm_remove_time_event()
652 *uid = te_data->uid; __iwl_mvm_remove_time_event()
667 IWL_DEBUG_TE(mvm, "TE 0x%x has already ended\n", *uid); __iwl_mvm_remove_time_event()
685 u32 uid; iwl_mvm_remove_aux_roc_te() local
688 if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) iwl_mvm_remove_aux_roc_te()
691 aux_cmd.event_unique_id = cpu_to_le32(uid); iwl_mvm_remove_aux_roc_te()
714 u32 uid; iwl_mvm_remove_time_event() local
717 if (!__iwl_mvm_remove_time_event(mvm, te_data, &uid)) iwl_mvm_remove_time_event()
721 time_cmd.id = cpu_to_le32(uid); iwl_mvm_remove_time_event()
639 __iwl_mvm_remove_time_event(struct iwl_mvm *mvm, struct iwl_mvm_time_event_data *te_data, u32 *uid) __iwl_mvm_remove_time_event() argument
/linux-4.1.27/include/uapi/rdma/
H A Drdma_user_cm.h82 __u64 uid; member in struct:rdma_ucm_create_id
212 __u64 uid; member in struct:rdma_ucm_accept
242 __u64 uid; member in struct:rdma_ucm_join_ip_mcast
249 __u64 uid; member in struct:rdma_ucm_join_mcast
261 __u64 uid; member in struct:rdma_ucm_event_resp
H A Dib_user_cm.h75 __u64 uid; member in struct:ib_ucm_create_id
155 __u64 uid; member in struct:ib_ucm_rep
305 __u64 uid; member in struct:ib_ucm_event_resp
/linux-4.1.27/security/integrity/ima/
H A Dima_policy.c57 kuid_t uid; member in struct:ima_rule_entry
68 * written in terms of .action, .func, .mask, .fsmagic, .uid, and .fowner
97 .uid = GLOBAL_ROOT_UID, .flags = IMA_FUNC | IMA_MASK | IMA_UID},
108 .uid = GLOBAL_ROOT_UID, .flags = IMA_FUNC | IMA_INMASK | IMA_EUID},
110 .uid = GLOBAL_ROOT_UID, .flags = IMA_FUNC | IMA_INMASK | IMA_UID},
233 if ((rule->flags & IMA_UID) && !uid_eq(rule->uid, cred->uid)) ima_match_rules()
237 if (!uid_eq(rule->uid, cred->euid) ima_match_rules()
238 && !uid_eq(rule->uid, cred->suid) ima_match_rules()
239 && !uid_eq(rule->uid, cred->uid)) ima_match_rules()
241 } else if (!uid_eq(rule->uid, cred->euid)) ima_match_rules()
459 {Opt_uid, "uid=%s"},
508 entry->uid = INVALID_UID; ima_parse_rule()
638 ima_log_string(ab, "uid", args[0].from); ima_parse_rule()
643 if (uid_valid(entry->uid)) { ima_parse_rule()
650 entry->uid = make_kuid(current_user_ns(), ima_parse_rule()
652 if (!uid_valid(entry->uid) || ima_parse_rule()
/linux-4.1.27/fs/autofs4/
H A Dinode.c39 ino->uid = GLOBAL_ROOT_UID; autofs4_clean_ino()
81 seq_printf(m, ",uid=%u", autofs4_show_options()
118 {Opt_uid, "uid=%u"},
129 static int parse_options(char *options, int *pipefd, kuid_t *uid, kgid_t *gid, parse_options() argument
137 *uid = current_uid(); parse_options()
162 *uid = make_kuid(current_user_ns(), option); parse_options()
163 if (!uid_valid(*uid)) parse_options()
H A Dwaitq.c159 packet->uid = from_kuid_munged(user_ns, wq->uid); autofs4_notify_daemon()
430 wq->uid = current_uid(); autofs4_wait()
497 * uid and gid in the dentry info struct. This is so it can be autofs4_wait()
500 * to existing, active, autofs mounts. The uid and gid (and autofs4_wait()
520 ino->uid = wq->uid; autofs4_wait()
H A Dautofs_i.h77 kuid_t uid; member in struct:autofs_info
96 kuid_t uid; member in struct:autofs_wait_queue
H A Ddev-ioctl.c425 * Return the uid and gid of the last request for the mount
429 * process uid and gid (or string variations of them) for mount
448 param->requester.uid = param->requester.gid = -1; autofs_dev_ioctl_requester()
459 param->requester.uid = from_kuid_munged(current_user_ns(), ino->uid); autofs_dev_ioctl_requester()
/linux-4.1.27/drivers/acpi/acpica/
H A Dutids.c218 struct acpi_pnp_device_id *uid; acpi_ut_execute_UID() local
241 uid = acpi_ut_execute_UID()
244 if (!uid) { acpi_ut_execute_UID()
251 uid->string = acpi_ut_execute_UID()
252 ACPI_ADD_PTR(char, uid, sizeof(struct acpi_pnp_device_id)); acpi_ut_execute_UID()
257 acpi_ex_integer_to_string(uid->string, obj_desc->integer.value); acpi_ut_execute_UID()
259 ACPI_STRCPY(uid->string, obj_desc->string.pointer); acpi_ut_execute_UID()
262 uid->length = length; acpi_ut_execute_UID()
263 *return_id = uid; acpi_ut_execute_UID()
H A Dnsxfname.c277 struct acpi_pnp_device_id *uid = NULL; acpi_get_object_info() local
340 status = acpi_ut_execute_UID(node, &uid); acpi_get_object_info()
342 info_size += uid->length; acpi_get_object_info()
461 if (uid) { acpi_get_object_info()
463 uid, next_id_string); acpi_get_object_info()
504 if (uid) { acpi_get_object_info()
505 ACPI_FREE(uid); acpi_get_object_info()
/linux-4.1.27/fs/affs/
H A Dinode.c74 id = be16_to_cpu(tail->uid); affs_iget()
171 uid_t uid; affs_write_inode() local
192 uid = i_uid_read(inode); affs_write_inode()
195 if (uid == 0 || uid == 0xFFFF) affs_write_inode()
196 uid = uid ^ ~0; affs_write_inode()
201 tail->uid = cpu_to_be16(uid); affs_write_inode()
H A Dsuper.c190 parse_options(char *options, kuid_t *uid, kgid_t *gid, int *mode, int *reserved, s32 *root, parse_options() argument
198 *uid = current_uid(); parse_options()
266 *uid = make_kuid(current_user_ns(), option); parse_options()
267 if (!uid_valid(*uid)) parse_options()
309 kuid_t uid; affs_fill_super() local
336 if (!parse_options(data,&uid,&gid,&i,&reserved,&root_block, affs_fill_super()
346 sbi->s_uid = uid; affs_fill_super()
517 kuid_t uid; affs_remount() local
538 if (!parse_options(data, &uid, &gid, &mode, &reserved, &root_block, affs_remount()
552 sbi->s_uid = uid; affs_remount()
H A Daffs.h90 kuid_t s_uid; /* uid to override */
113 #define AFFS_MOUNT_SF_SETUID 0x0010 /* Ignore Amiga uid */
116 #define AFFS_MOUNT_SF_MUFS 0x0100 /* Use MUFS uid/gid mapping */
/linux-4.1.27/fs/udf/
H A Dudf_sb.h26 #define UDF_FLAG_UID_FORGET 11 /* save -1 for uid to disk */
27 #define UDF_FLAG_UID_IGNORE 12 /* use sb uid instead of on disk uid */
H A Dsuper.c225 kuid_t uid; member in struct:udf_options
353 seq_puts(seq, ",uid=forget"); udf_show_options()
355 seq_puts(seq, ",uid=ignore"); udf_show_options()
361 seq_printf(seq, ",uid=%u", from_kuid(&init_user_ns, sbi->s_uid)); udf_show_options()
401 * uid= Set the default user.
464 {Opt_uforget, "uid=forget"},
465 {Opt_uignore, "uid=ignore"},
469 {Opt_uid, "uid=%u"},
554 uopt->uid = make_kuid(current_user_ns(), option); udf_parse_options()
555 if (!uid_valid(uopt->uid)) udf_parse_options()
660 uopt.uid = sbi->s_uid; udf_remount_fs()
671 sbi->s_uid = uopt.uid; udf_remount_fs()
2069 uopt.uid = INVALID_UID; udf_fill_super()
2107 sbi->s_uid = uopt.uid; udf_fill_super()
/linux-4.1.27/arch/s390/hypfs/
H A Dinode.c34 kuid_t uid; /* uid used for files and dirs */ member in struct:hypfs_sb_info
105 ret->i_uid = hypfs_info->uid; hypfs_make_inode()
216 {opt_uid, "uid=%u"},
225 kuid_t uid; hypfs_parse_options() local
241 uid = make_kuid(current_user_ns(), option); hypfs_parse_options()
242 if (!uid_valid(uid)) hypfs_parse_options()
244 hypfs_info->uid = uid; hypfs_parse_options()
267 seq_printf(s, ",uid=%u", from_kuid_munged(&init_user_ns, hypfs_info->uid)); hypfs_show_options()
283 sbi->uid = current_uid(); hypfs_fill_super()
/linux-4.1.27/arch/sparc/include/asm/
H A Dcompat.h169 unsigned int _uid; /* sender's uid */
183 unsigned int _uid; /* sender's uid */
190 unsigned int _uid; /* sender's uid */
249 __compat_uid32_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/arch/mips/include/asm/
H A Dcompat.h146 __compat_uid_t _uid; /* sender's uid */
152 __compat_uid_t _uid; /* sender's uid */
188 __compat_uid_t _uid; /* sender's uid */
226 __compat_uid32_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/fs/hpfs/
H A Dsuper.c272 {Opt_uid, "uid=%u"},
293 static int parse_opts(char *opts, kuid_t *uid, kgid_t *gid, umode_t *umask, parse_opts() argument
318 *uid = make_kuid(current_user_ns(), option); parse_opts()
319 if (!uid_valid(*uid)) parse_opts()
401 uid=xxx set uid of files that don't have uid specified in eas\n\ hpfs_help()
424 kuid_t uid; hpfs_remount_fs() local
436 uid = sbi->sb_uid; gid = sbi->sb_gid; hpfs_remount_fs()
442 if (!(o = parse_opts(data, &uid, &gid, &umask, &lowercase, hpfs_remount_fs()
458 sbi->sb_uid = uid; sbi->sb_gid = gid; hpfs_remount_fs()
478 seq_printf(seq, ",uid=%u", from_kuid_munged(&init_user_ns, sbi->sb_uid)); hpfs_show_options()
526 kuid_t uid; hpfs_fill_super() local
546 uid = current_uid(); hpfs_fill_super()
556 if (!(o = parse_opts(options, &uid, &gid, &umask, &lowercase, hpfs_fill_super()
604 sbi->sb_uid = uid; hpfs_fill_super()
/linux-4.1.27/arch/parisc/include/asm/
H A Dcompat.h148 unsigned int _uid; /* sender's uid */
163 unsigned int _uid; /* sender's uid */
170 unsigned int _uid; /* sender's uid */
194 __compat_uid_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/arch/powerpc/include/asm/
H A Dcompat.h140 __compat_uid_t _uid; /* sender's uid */
154 __compat_uid_t _uid; /* sender's uid */
161 __compat_uid_t _uid; /* sender's uid */
222 __compat_uid_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/arch/powerpc/include/uapi/asm/
H A Dipcbuf.h23 __kernel_uid_t uid; member in struct:ipc64_perm
/linux-4.1.27/arch/alpha/kernel/
H A Dasm-offsets.c28 DEFINE(CRED_UID, offsetof(struct cred, uid)); foo()
/linux-4.1.27/fs/devpts/
H A Dinode.c103 kuid_t uid; member in struct:pts_mount_opts
117 {Opt_uid, "uid=%u"},
163 kuid_t uid; parse_mount_options() local
168 opts->uid = GLOBAL_ROOT_UID; parse_mount_options()
191 uid = make_kuid(current_user_ns(), option); parse_mount_options()
192 if (!uid_valid(uid)) parse_mount_options()
194 opts->uid = uid; parse_mount_options()
338 seq_printf(seq, ",uid=%u", devpts_show_options()
339 from_kuid_munged(&init_user_ns, opts->uid)); devpts_show_options()
617 inode->i_uid = opts->setuid ? opts->uid : current_fsuid(); devpts_pty_new()
/linux-4.1.27/drivers/base/
H A Ddevtmpfs.c45 kuid_t uid; member in struct:req
91 req.uid = GLOBAL_ROOT_UID; devtmpfs_create_node()
93 req.name = device_get_devnode(dev, &req.mode, &req.uid, &req.gid, &tmp); devtmpfs_create_node()
195 static int handle_create(const char *nodename, umode_t mode, kuid_t uid, handle_create() argument
215 newattrs.ia_uid = uid; handle_create()
367 static int handle(const char *name, umode_t mode, kuid_t uid, kgid_t gid, handle() argument
371 return handle_create(name, mode, uid, gid, dev); handle()
398 req->uid, req->gid, req->dev); devtmpfsd()
/linux-4.1.27/arch/s390/pci/
H A Dpci_sysfs.c31 zpci_attr(uid, "0x%x\n", uid);
H A Dpci_clp.c120 zdev->uid = response->uid; clp_store_query_pci_fn()
/linux-4.1.27/fs/nfs/
H A Dnfs4idmap.c102 kuid_t uid; nfs_fattr_map_owner_name() local
106 if (nfs_map_name_to_uid(server, owner->data, owner->len, &uid) == 0) { nfs_fattr_map_owner_name()
107 fattr->uid = uid; nfs_fattr_map_owner_name()
140 * nfs_fattr_map_and_free_names - map owner/group strings into uid/gid and free
145 * their numeric uid/gid equivalents, and then frees the cached strings.
379 { Opt_find_uid, "uid:%s" },
731 int nfs_map_name_to_uid(const struct nfs_server *server, const char *name, size_t namelen, kuid_t *uid) nfs_map_name_to_uid() argument
738 ret = nfs_idmap_lookup_id(name, namelen, "uid", &id, idmap); nfs_map_name_to_uid()
740 *uid = make_kuid(&init_user_ns, id); nfs_map_name_to_uid()
741 if (!uid_valid(*uid)) nfs_map_name_to_uid()
765 int nfs_map_uid_to_name(const struct nfs_server *server, kuid_t uid, char *buf, size_t buflen) nfs_map_uid_to_name() argument
771 id = from_kuid(&init_user_ns, uid); nfs_map_uid_to_name()
/linux-4.1.27/net/9p/
H A Dprotocol.c49 kfree(stbuf->uid); p9stat_free()
90 u - numeric uid
171 kuid_t *uid = va_arg(ap, kuid_t *); p9pdu_vreadf() local
177 *uid = make_kuid(&init_user_ns, p9pdu_vreadf()
214 &stbuf->name, &stbuf->uid, p9pdu_vreadf()
406 kuid_t uid = va_arg(ap, kuid_t); p9pdu_vwritef() local
408 from_kuid(&init_user_ns, uid)); p9pdu_vwritef()
437 stbuf->name, stbuf->uid, p9pdu_vwritef()
503 p9attr->uid, p9pdu_vwritef()
H A Dclient.c902 fid->uid = current_fsuid(); p9_fid_create()
1120 fid->uid = n_uname; p9_client_attach()
1172 fid->uid = oldfid->uid; p9_client_walk()
1699 "<<< name=%s uid=%s gid=%s muid=%s extension=(%s)\n" p9_client_stat()
1700 "<<< uid=%d gid=%d n_muid=%d\n", p9_client_stat()
1704 ret->name, ret->uid, ret->gid, ret->muid, ret->extension, p9_client_stat()
1786 /* name[s] uid[s] gid[s] muid[s] */ p9_client_statsize()
1791 if (wst->uid) p9_client_statsize()
1792 ret += strlen(wst->uid); p9_client_statsize()
1821 " name=%s uid=%s gid=%s muid=%s extension=(%s)\n" p9_client_wstat()
1822 " uid=%d gid=%d n_muid=%d\n", p9_client_wstat()
1826 wst->name, wst->uid, wst->gid, wst->muid, wst->extension, p9_client_wstat()
1855 " valid=%x mode=%x uid=%d gid=%d size=%lld\n" p9_client_setattr()
1859 from_kuid(&init_user_ns, p9attr->uid), p9_client_setattr()
/linux-4.1.27/arch/x86/include/asm/
H A Dcompat.h144 unsigned int _uid; /* sender's uid */
159 unsigned int _uid; /* sender's uid */
166 unsigned int _uid; /* sender's uid */
175 unsigned int _uid; /* sender's uid */
205 __compat_uid32_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/drivers/acpi/
H A Dtables.c76 pr_debug("X2APIC (apic_id[0x%02x] uid[0x%02x] %s)\n", acpi_table_print_madt_entry()
77 p->local_apic_id, p->uid, acpi_table_print_madt_entry()
139 pr_info("X2APIC_NMI (uid[0x%02x] %s %s lint[0x%x])\n", acpi_table_print_madt_entry()
140 p->uid, acpi_table_print_madt_entry()
193 p->uid, p->base_address, acpi_table_print_madt_entry()
H A Dprocessor_core.c59 if (device_declaration && (apic->uid == acpi_id)) { map_x2apic_id()
77 if ((entry->length < 16) || (lsapic->uid != acpi_id)) map_lsapic_id()
103 if (device_declaration && (gicc->uid == acpi_id)) { map_gicc_mpidr()
/linux-4.1.27/drivers/misc/genwqe/
H A Dcard_debugfs.c64 static int curr_dbg_uidn_show(struct seq_file *s, void *unused, int uid) curr_dbg_uidn_show() argument
70 entries = genwqe_ffdc_buff_size(cd, uid); curr_dbg_uidn_show()
82 genwqe_ffdc_buff_read(cd, uid, regs, entries); curr_dbg_uidn_show()
111 static int prev_dbg_uidn_show(struct seq_file *s, void *unused, int uid) prev_dbg_uidn_show() argument
115 dbg_uidn_show(s, cd->ffdc[uid].regs, cd->ffdc[uid].entries); prev_dbg_uidn_show()
H A Dcard_utils.c844 int genwqe_ffdc_buff_size(struct genwqe_dev *cd, int uid) genwqe_ffdc_buff_size() argument
850 eevptr_addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_ERROR_POINTER; genwqe_ffdc_buff_size()
854 l_addr = GENWQE_UID_OFFS(uid) | eevptr; genwqe_ffdc_buff_size()
879 addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_DIAG_MAP(ring); genwqe_ffdc_buff_size()
897 int genwqe_ffdc_buff_read(struct genwqe_dev *cd, int uid, genwqe_ffdc_buff_read() argument
905 eevptr_addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_ERROR_POINTER; genwqe_ffdc_buff_read()
909 l_addr = GENWQE_UID_OFFS(uid) | eevptr; genwqe_ffdc_buff_read()
918 d_addr |= GENWQE_UID_OFFS(uid); genwqe_ffdc_buff_read()
944 addr = GENWQE_UID_OFFS(uid) | IO_EXTENDED_DIAG_MAP(ring); genwqe_ffdc_buff_read()
961 addr = (GENWQE_UID_OFFS(uid) | genwqe_ffdc_buff_read()
968 addr = (GENWQE_UID_OFFS(uid) | genwqe_ffdc_buff_read()
H A Dcard_base.c641 u64 mask, fir, fec, uid, gfir, gfir_masked, sfir, sfec; genwqe_fir_checking() local
671 for (uid = 0; uid < GENWQE_MAX_UNITS; uid++) { /* 0..2 in zEDC */ genwqe_fir_checking()
674 fir_addr = (uid << 24) + 0x08; genwqe_fir_checking()
684 fec_addr = (uid << 24) + 0x18; genwqe_fir_checking()
697 sfir_addr = (uid << 24) + 0x100 + 0x08 * j; genwqe_fir_checking()
705 sfec_addr = (uid << 24) + 0x300 + 0x08 * j; genwqe_fir_checking()
728 sfir_addr = (uid << 24) + 0x100 + 0x08 * j; genwqe_fir_checking()
745 fir_clr_addr = (uid << 24) + 0x10; genwqe_fir_checking()
/linux-4.1.27/fs/xfs/
H A Dxfs_linux.h188 /* Kernel uid/gid conversion. These are used to convert to/from the on disk
191 * are converting to the init_user_ns. The uid is later mapped to a particular
194 static inline __uint32_t xfs_kuid_to_uid(kuid_t uid) xfs_kuid_to_uid() argument
196 return from_kuid(&init_user_ns, uid); xfs_kuid_to_uid()
199 static inline kuid_t xfs_uid_to_kuid(__uint32_t uid) xfs_uid_to_kuid() argument
201 return make_kuid(&init_user_ns, uid); xfs_uid_to_kuid()
H A Dxfs_iops.c462 stat->uid = inode->i_uid; xfs_vn_getattr()
551 kuid_t uid = GLOBAL_ROOT_UID, iuid = GLOBAL_ROOT_UID; xfs_setattr_nonsize() local
585 uid = iattr->ia_uid; xfs_setattr_nonsize()
588 uid = inode->i_uid; xfs_setattr_nonsize()
604 error = xfs_qm_vop_dqalloc(ip, xfs_kuid_to_uid(uid), xfs_setattr_nonsize()
632 uid = (mask & ATTR_UID) ? iattr->ia_uid : iuid; xfs_setattr_nonsize()
635 * Do a quota reservation only if uid/gid is actually xfs_setattr_nonsize()
639 ((XFS_IS_UQUOTA_ON(mp) && !uid_eq(iuid, uid)) || xfs_setattr_nonsize()
670 if (!uid_eq(iuid, uid)) { xfs_setattr_nonsize()
677 ip->i_d.di_uid = xfs_kuid_to_uid(uid); xfs_setattr_nonsize()
678 inode->i_uid = uid; xfs_setattr_nonsize()
/linux-4.1.27/net/sunrpc/auth_gss/
H A Dauth_gss.c291 kuid_t uid; member in struct:gss_upcall_msg
343 __gss_find_upcall(struct rpc_pipe *pipe, kuid_t uid) __gss_find_upcall() argument
347 if (!uid_eq(pos->uid, uid)) __gss_find_upcall()
358 * If an upcall owned by our uid already exists, then we return a reference
368 old = __gss_find_upcall(pipe, gss_msg->uid); gss_add_msg()
435 uid_t uid = from_kuid(&init_user_ns, gss_msg->uid); gss_encode_v0_msg() local
436 memcpy(gss_msg->databuf, &uid, sizeof(uid)); gss_encode_v0_msg()
438 gss_msg->msg.len = sizeof(uid); gss_encode_v0_msg()
440 BUILD_BUG_ON(sizeof(uid) > sizeof(gss_msg->databuf)); gss_encode_v0_msg()
452 len = scnprintf(p, buflen, "mech=%s uid=%d ", mech->gm_name, gss_encode_v1_msg()
453 from_kuid(&init_user_ns, gss_msg->uid)); gss_encode_v1_msg()
490 kuid_t uid, const char *service_name) gss_alloc_msg()
508 gss_msg->uid = uid; gss_alloc_msg()
535 kuid_t uid = cred->cr_uid; gss_setup_upcall() local
537 gss_new = gss_alloc_msg(gss_auth, uid, gss_cred->gc_principal); gss_setup_upcall()
569 dprintk("RPC: %5u %s for uid %u\n", gss_refresh_upcall()
601 dprintk("RPC: %5u %s for uid %u result %d\n", gss_refresh_upcall()
618 dprintk("RPC: %s for uid %u\n", gss_create_upcall()
666 dprintk("RPC: %s for uid %u result %d\n", gss_create_upcall()
682 kuid_t uid; gss_pipe_downcall() local
703 uid = make_kuid(&init_user_ns, id); gss_pipe_downcall()
704 if (!uid_valid(uid)) { gss_pipe_downcall()
717 gss_msg = __gss_find_upcall(pipe, uid); gss_pipe_downcall()
1312 dprintk("RPC: %s for uid %d, flavor %d\n", gss_create_cred()
1313 __func__, from_kuid(&init_user_ns, acred->uid), gss_create_cred()
1455 ret = uid_eq(rc->cr_uid, acred->uid); gss_match()
1540 .uid = oldcred->cr_uid, gss_renew_cred()
489 gss_alloc_msg(struct gss_auth *gss_auth, kuid_t uid, const char *service_name) gss_alloc_msg() argument
/linux-4.1.27/fs/tracefs/
H A Dinode.c142 kuid_t uid; member in struct:tracefs_mount_opts
155 {Opt_uid, "uid=%u"},
170 kuid_t uid; tracefs_parse_options() local
185 uid = make_kuid(current_user_ns(), option); tracefs_parse_options()
186 if (!uid_valid(uid)) tracefs_parse_options()
188 opts->uid = uid; tracefs_parse_options()
222 inode->i_uid = opts->uid; tracefs_apply_options()
249 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) tracefs_show_options()
250 seq_printf(m, ",uid=%u", tracefs_show_options()
251 from_kuid_munged(&init_user_ns, opts->uid)); tracefs_show_options()
/linux-4.1.27/fs/debugfs/
H A Dinode.c53 kuid_t uid; member in struct:debugfs_mount_opts
66 {Opt_uid, "uid=%u"},
81 kuid_t uid; debugfs_parse_options() local
96 uid = make_kuid(current_user_ns(), option); debugfs_parse_options()
97 if (!uid_valid(uid)) debugfs_parse_options()
99 opts->uid = uid; debugfs_parse_options()
133 inode->i_uid = opts->uid; debugfs_apply_options()
160 if (!uid_eq(opts->uid, GLOBAL_ROOT_UID)) debugfs_show_options()
161 seq_printf(m, ",uid=%u", debugfs_show_options()
162 from_kuid_munged(&init_user_ns, opts->uid)); debugfs_show_options()
/linux-4.1.27/security/
H A Dcommoncap.c39 * bit is left on either to change the uid (plausible) or
504 if (has_cap && !uid_eq(new->uid, root_uid) && uid_eq(new->euid, root_uid)) { cap_bprm_set_creds()
513 * If only the real uid is 0, we do not set the effective bit. cap_bprm_set_creds()
515 if (uid_eq(new->euid, root_uid) || uid_eq(new->uid, root_uid)) { cap_bprm_set_creds()
535 if ((!uid_eq(new->euid, old->uid) || cap_bprm_set_creds()
542 new->euid = new->uid; cap_bprm_set_creds()
572 !uid_eq(new->euid, root_uid) || !uid_eq(new->uid, root_uid) || cap_bprm_set_creds()
599 if (!uid_eq(cred->uid, root_uid)) { cap_bprm_secureexec()
606 return (!uid_eq(cred->euid, cred->uid) || cap_bprm_secureexec()
670 * 1) When set*uiding _from_ one of {r,e,s}uid == 0 _to_ all of
671 * {r,e,s}uid != 0, the permitted and effective capabilities are
680 * fsuid is handled elsewhere. fsuid == 0 and {r,e,s}uid!= 0 should
687 * calls setuid() and switches away from uid==0. Both permitted and
691 * Keeping uid 0 is not an option because uid 0 owns too many vital
699 if ((uid_eq(old->uid, root_uid) || cap_emulate_setxuid()
702 (!uid_eq(new->uid, root_uid) && cap_emulate_setxuid()
/linux-4.1.27/drivers/rtc/
H A Drtc-abx80x.c200 unsigned int uid; abx80x_probe() local
216 uid = ((buf[4] & 0x7f) << 8) | buf[5]; abx80x_probe()
218 dev_info(&client->dev, "model %04x, revision %u.%u, lot %x, wafer %x, uid %x\n", abx80x_probe()
219 partnumber, majrev, minrev, lot, wafer, uid); abx80x_probe()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dremote_perm.c114 static inline int remote_perm_hashfunc(uid_t uid) remote_perm_hashfunc() argument
116 return uid & (REMOTE_PERM_HASHSIZE - 1); remote_perm_hashfunc()
171 if (perm->rp_uid != current->uid || ll_update_remote_perm()
179 perm->rp_fsgid, current->uid, current->gid, ll_update_remote_perm()
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
H A Dosc_quota.c136 * Hash operations for uid/gid <-> osc_quota_info
148 u32 uid; oqi_keycmp() local
151 uid = *((u32 *)key); oqi_keycmp()
154 return uid == oqi->oqi_id; oqi_keycmp()
/linux-4.1.27/arch/tile/include/asm/
H A Dcompat.h131 unsigned int _uid; /* sender's uid */
146 unsigned int _uid; /* sender's uid */
153 unsigned int _uid; /* sender's uid */
180 __compat_uid32_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/arch/x86/ia32/
H A Dsys_ia32.c72 typeof(ubuf->st_uid) uid = 0; cp_stat64()
74 SET_UID(uid, from_kuid_munged(current_user_ns(), stat->uid)); cp_stat64()
82 __put_user(uid, &ubuf->st_uid) || cp_stat64()
/linux-4.1.27/fs/jfs/
H A Djfs_incore.h41 kuid_t saved_uid; /* saved for uid mount option */
198 kuid_t uid; /* uid to override on-disk uid */ member in struct:jfs_sb_info
H A Dsuper.c223 {Opt_uid, "uid=%u"},
334 char *uid = args[0].from; parse_options() local
336 int rc = kstrtouint(uid, 0, &val); parse_options()
340 sbi->uid = make_kuid(current_user_ns(), val); parse_options()
341 if (!uid_valid(sbi->uid)) parse_options()
509 sbi->uid = INVALID_UID; jfs_fill_super()
707 if (uid_valid(sbi->uid)) jfs_show_options()
708 seq_printf(seq, ",uid=%d", from_kuid(&init_user_ns, sbi->uid)); jfs_show_options()
H A Djfs_inode.c104 * uid & gid mount options are used ialloc()
/linux-4.1.27/include/uapi/linux/netfilter/
H A Dnfnetlink_queue.h50 NFQA_UID, /* __u32 sk uid */
/linux-4.1.27/arch/s390/include/asm/
H A Dcompat.h206 uid_t _uid; /* sender's uid */
220 uid_t _uid; /* sender's uid */
227 uid_t _uid; /* sender's uid */
304 __compat_uid32_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/arch/arm64/include/asm/
H A Dcompat.h169 __compat_uid32_t _uid; /* sender's uid */
183 __compat_uid32_t _uid; /* sender's uid */
190 __compat_uid32_t _uid; /* sender's uid */
246 __compat_uid32_t uid; member in struct:compat_ipc64_perm
/linux-4.1.27/tools/perf/tests/
H A Dopen-syscall-tp-fields.c12 .uid = UINT_MAX, test__syscall_open_tp_fields()
H A Dtask-exit.c41 .uid = UINT_MAX, test__task_exit()
/linux-4.1.27/security/tomoyo/
H A Daudit.c164 "uid=%u gid=%u euid=%u egid=%u suid=%u sgid=%u " tomoyo_print_header()
195 " path%u.parent={ uid=%u gid=%u " tomoyo_print_header()
197 from_kuid(&init_user_ns, stat->uid), tomoyo_print_header()
204 " path%u={ uid=%u gid=%u ino=%lu major=%u" tomoyo_print_header()
206 from_kuid(&init_user_ns, stat->uid), tomoyo_print_header()
H A Dtomoyo.c370 * @uid: Owner ID.
375 static int tomoyo_path_chown(struct path *path, kuid_t uid, kgid_t gid) tomoyo_path_chown() argument
378 if (uid_valid(uid)) tomoyo_path_chown()
380 from_kuid(&init_user_ns, uid)); tomoyo_path_chown()
/linux-4.1.27/fs/ncpfs/
H A Dioctl.c348 u16 uid; __ncp_ioctl() local
350 SET_UID(uid, from_kuid_munged(current_user_ns(), server->m.mounted_uid)); __ncp_ioctl()
351 if (put_user(uid, (u16 __user *)argp)) __ncp_ioctl()
357 uid_t uid = from_kuid_munged(current_user_ns(), server->m.mounted_uid); __ncp_ioctl() local
358 if (put_user(uid, (u32 __user *)argp)) __ncp_ioctl()
364 uid_t uid = from_kuid_munged(current_user_ns(), server->m.mounted_uid); __ncp_ioctl() local
365 if (put_user(uid, (u64 __user *)argp)) __ncp_ioctl()
814 kuid_t uid = current_uid(); ncp_ioctl() local
828 if (!uid_eq(server->m.mounted_uid, uid)) { ncp_ioctl()
H A Dinode.c237 inode->i_uid = server->m.uid; ncp_set_attr()
335 if (!uid_eq(server->m.uid, GLOBAL_ROOT_UID)) ncp_show_options()
336 seq_printf(seq, ",uid=%u", ncp_show_options()
337 from_kuid_munged(&init_user_ns, server->m.uid)); ncp_show_options()
365 { "uid", OPT_INT, 'u' },
393 data->uid = GLOBAL_ROOT_UID; ncp_parse_options()
406 data->uid = make_kuid(current_user_ns(), optint); ncp_parse_options()
407 if (!uid_valid(data->uid)) { ncp_parse_options()
502 data.uid = make_kuid(current_user_ns(), md->uid); ncp_fill_super()
521 data.uid = make_kuid(current_user_ns(), md->uid); ncp_fill_super()
538 if (!uid_valid(data.mounted_uid) || !uid_valid(data.uid) || ncp_fill_super()
892 if ((attr->ia_valid & ATTR_UID) && !uid_eq(attr->ia_uid, server->m.uid)) ncp_notify_change()
/linux-4.1.27/ipc/
H A Dcompat.c44 __compat_uid_t uid; member in struct:compat_ipc_perm
141 err = __get_user(p64->uid, &up64->uid); __get_compat_ipc64_perm()
152 err = __get_user(p->uid, &up->uid); __get_compat_ipc_perm()
164 err |= __put_user(p64->uid, &up64->uid); __put_compat_ipc64_perm()
181 SET_UID(u, p->uid); __put_compat_ipc_perm()
182 err |= __put_user(u, &uip->uid); __put_compat_ipc_perm()
H A Dutil.c241 new->cuid = new->uid = euid; ipc_addid()
496 uid_eq(euid, ipcp->uid)) ipcperms()
524 out->uid = from_kuid_munged(current_user_ns(), in->uid); kernel_to_ipc64_perm()
543 SET_UID(out->uid, in->uid); ipc64_perm_to_ipc_perm()
656 kuid_t uid = make_kuid(current_user_ns(), in->uid); ipc_update_perm() local
658 if (!uid_valid(uid) || !gid_valid(gid)) ipc_update_perm()
661 out->uid = uid; ipc_update_perm()
703 audit_ipc_set_perm(extra_perm, perm->uid, ipcctl_pre_down_nolock()
707 if (uid_eq(euid, ipcp->cuid) || uid_eq(euid, ipcp->uid) || ipcctl_pre_down_nolock()
H A Dutil.h163 static inline int ipc_checkid(struct kern_ipc_perm *ipcp, int uid) ipc_checkid() argument
165 return uid / SEQ_MULTIPLIER != ipcp->seq; ipc_checkid()
/linux-4.1.27/init/
H A Dinitramfs.c158 static __initdata uid_t uid; variable
175 uid = parsed[2]; parse_header()
344 sys_fchown(wfd, uid, gid); do_name()
354 sys_chown(collected, uid, gid); do_name()
361 sys_chown(collected, uid, gid); do_name()
394 sys_lchown(collected, uid, gid); do_symlink()
/linux-4.1.27/fs/befs/
H A Dlinuxvfs.c348 * set uid and gid. But since current BeOS is single user OS, so befs_iget()
349 * you can change by "uid" or "gid" options. befs_iget()
353 befs_sb->mount_opts.uid : befs_iget()
354 make_kuid(&init_user_ns, fs32_to_cpu(sb, raw_inode->uid)); befs_iget()
664 {Opt_uid, "uid=%d"},
677 kuid_t uid; parse_options() local
681 opts->uid = GLOBAL_ROOT_UID; parse_options()
701 uid = INVALID_UID; parse_options()
703 uid = make_kuid(current_user_ns(), option); parse_options()
704 if (!uid_valid(uid)) { parse_options()
705 pr_err("Invalid uid %d, " parse_options()
709 opts->uid = uid; parse_options()
H A Dbefs.h24 kuid_t uid; member in struct:befs_mount_options
H A Ddebug.c84 befs_debug(sb, " uid %u", fs32_to_cpu(sb, inode->uid)); befs_dump_inode()
/linux-4.1.27/drivers/staging/lustre/include/linux/libcfs/
H A Dlibcfs_kernelcomm.h94 int libcfs_kkuc_group_add(struct file *fp, int uid, int group,
96 int libcfs_kkuc_group_rem(int uid, int group);
/linux-4.1.27/drivers/pinctrl/intel/
H A Dpinctrl-intel.h94 * @uid: ACPI _UID for the probe driver use if needed
108 const char *uid; member in struct:intel_pinctrl_soc_data
/linux-4.1.27/fs/nfsd/
H A Dnfs4acl.c409 * by uid/gid. */ sort_pacl()
440 kuid_t uid; member in union:posix_user_ace_state::__anon11099
540 pace->e_uid = state->users->aces[i].uid; posix_state_to_acl()
583 static int find_uid(struct posix_acl_state *state, kuid_t uid) find_uid() argument
589 if (uid_eq(a->aces[i].uid, uid)) find_uid()
593 a->aces[i].uid = uid; find_uid()
H A Dnfs4idmap.c630 kuid_t *uid) nfsd_map_name_to_uid()
635 *uid = make_kuid(&init_user_ns, id); nfsd_map_name_to_uid()
636 if (!uid_valid(*uid)) nfsd_map_name_to_uid()
655 kuid_t uid) nfsd4_encode_user()
657 u32 id = from_kuid(&init_user_ns, uid); nfsd4_encode_user()
629 nfsd_map_name_to_uid(struct svc_rqst *rqstp, const char *name, size_t namelen, kuid_t *uid) nfsd_map_name_to_uid() argument
654 nfsd4_encode_user(struct xdr_stream *xdr, struct svc_rqst *rqstp, kuid_t uid) nfsd4_encode_user() argument
/linux-4.1.27/fs/hfs/
H A Dsuper.c141 seq_printf(seq, ",uid=%u,gid=%u", hfs_show_options()
200 { opt_uid, "uid=%u" },
256 pr_err("uid requires an argument\n"); parse_options()
261 pr_err("invalid uid %d\n", tmp); parse_options()
/linux-4.1.27/fs/isofs/
H A Drock.h34 char uid[8]; member in struct:RR_PX_s
/linux-4.1.27/drivers/tty/
H A Dtty_audit.c69 uid_t uid = from_kuid(&init_user_ns, task_uid(tsk)); tty_audit_log() local
77 audit_log_format(ab, "%s pid=%u uid=%u auid=%u ses=%u major=%d" tty_audit_log()
78 " minor=%d comm=", description, pid, uid, tty_audit_log()
/linux-4.1.27/fs/nfs_common/
H A Dnfsacl.c38 kuid_t uid; member in struct:nfsacl_encode_desc
60 *p++ = htonl(from_kuid(&init_user_ns, nfsacl_desc->uid)); xdr_nfsace_encode()
103 .uid = inode->i_uid, nfsacl_encode()
/linux-4.1.27/fs/cifs/
H A Dcifs_spnego.c85 /* strlen of ";uid=0x" */
111 host=hostname sec=mechanism uid=0xFF user=username */ cifs_get_spnego_key()
154 sprintf(dp, ";uid=0x%x", cifs_get_spnego_key()
H A Dcifsacl.c308 kuid_t uid; sid_to_id() local
311 uid = make_kuid(&init_user_ns, id); sid_to_id()
312 if (uid_valid(uid)) sid_to_id()
313 fuid = uid; sid_to_id()
761 cifs_dbg(FYI, "%s: Error %d mapping Owner SID to uid\n", parse_sec_desc()
790 __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, int *aclflag) build_sec_desc()
822 if (uid_valid(uid)) { /* chown */ build_sec_desc()
830 id = from_kuid(&init_user_ns, uid); build_sec_desc()
1053 kuid_t uid, kgid_t gid) id_mode_to_cifs_acl()
1100 rc = build_sec_desc(pntsd, pnntsd, secdesclen, nmode, uid, gid, id_mode_to_cifs_acl()
789 build_sec_desc(struct cifs_ntsd *pntsd, struct cifs_ntsd *pnntsd, __u32 secdesclen, __u64 nmode, kuid_t uid, kgid_t gid, int *aclflag) build_sec_desc() argument
1052 id_mode_to_cifs_acl(struct inode *inode, const char *path, __u64 nmode, kuid_t uid, kgid_t gid) id_mode_to_cifs_acl() argument
H A Dcifs_fs_sb.h35 #define CIFS_MOUNT_OVERR_UID 0x400 /* override uid returned from server */
H A Dinode.c286 kuid_t uid = make_kuid(&init_user_ns, id); cifs_unix_basic_to_fattr() local
287 if (uid_valid(uid)) cifs_unix_basic_to_fattr()
288 fattr->cf_uid = uid; cifs_unix_basic_to_fattr()
1378 args.uid = current_fsuid(); cifs_mkdir_qinfo()
1384 args.uid = INVALID_UID; /* no change */ cifs_mkdir_qinfo()
1445 * need to set uid/gid. cifs_posix_mkdir()
1993 stat->uid = current_fsuid(); cifs_getattr()
2167 args->uid = attrs->ia_uid; cifs_setattr_unix()
2169 args->uid = INVALID_UID; /* no change */ cifs_setattr_unix()
2241 kuid_t uid = INVALID_UID; cifs_setattr_nounix() local
2294 uid = attrs->ia_uid; cifs_setattr_nounix()
2301 if (uid_valid(uid) || gid_valid(gid)) { cifs_setattr_nounix()
2303 uid, gid); cifs_setattr_nounix()
/linux-4.1.27/net/batman-adv/
H A Dicmp_socket.c244 icmp_header->uid = socket_client->index; batadv_socket_write()
347 if (!batadv_socket_client_hash[icmph->uid]) { batadv_socket_add_packet()
382 hash = batadv_socket_client_hash[icmph->uid]; batadv_socket_receive_packet()
H A Dpacket.h238 * @uid: local ICMP socket identifier
252 uint8_t uid; member in struct:batadv_icmp_header
264 * @uid: local ICMP socket identifier
275 uint8_t uid; member in struct:batadv_icmp_packet
290 * @uid: local ICMP socket identifier
302 uint8_t uid; member in struct:batadv_icmp_packet_rr
/linux-4.1.27/tools/testing/selftests/mount/
H A Dunprivileged-remount-test.c155 uid_t uid; create_and_enter_userns() local
158 uid = getuid(); create_and_enter_userns()
167 write_file("/proc/self/uid_map", "0 %d 1", uid); create_and_enter_userns()
/linux-4.1.27/drivers/infiniband/core/
H A Ducma.c88 u64 uid; member in struct:ucma_context
99 u64 uid; member in struct:ucma_multicast
235 uevent->resp.uid = uevent->mc->uid; ucma_set_event_context()
239 uevent->resp.uid = ctx->uid; ucma_set_event_context()
274 } else if (!ctx->uid || ctx->cm_id != cm_id) { ucma_event_handler()
393 ctx->uid = cmd.uid; ucma_create_id()
990 ctx->uid = cmd.uid; ucma_accept()
1252 mc->uid = cmd->uid; ucma_process_join()
1295 join_cmd.uid = cmd.uid; ucma_join_ip_multicast()
/linux-4.1.27/drivers/staging/lustre/lustre/mdc/
H A Dmdc_lib.c48 b->uid = from_kuid(&init_user_ns, current_uid()); __mdc_pack_body()
139 __u32 uid, __u32 gid, cfs_cap_t cap_effective, __u64 rdev) mdc_create_pack()
150 rec->cr_fsuid = uid; mdc_create_pack()
220 /* XXX do something about time, uid, gid */ mdc_open_pack()
442 /* XXX do something about time, uid, gid */ mdc_rename_pack()
137 mdc_create_pack(struct ptlrpc_request *req, struct md_op_data *op_data, const void *data, int datalen, __u32 mode, __u32 uid, __u32 gid, cfs_cap_t cap_effective, __u64 rdev) mdc_create_pack() argument
H A Dmdc_internal.h69 const void *data, int datalen, __u32 mode, __u32 uid,
133 const void *data, int datalen, int mode, __u32 uid, __u32 gid,
/linux-4.1.27/security/apparmor/
H A Dfile.c100 * @ouid: object uid
206 if (uid_eq(current_fsuid(), cond->uid)) { compute_perms()
304 NULL, cond->uid, info, error); aa_path_perm()
432 lname, tname, cond.uid, info, error); aa_path_link()
452 .uid = file_inode(file)->i_uid, aa_file_perm()
/linux-4.1.27/fs/
H A Dfcntl.c94 filp->f_owner.uid = cred->uid; f_modown()
227 src[0] = from_kuid(user_ns, filp->f_owner.uid); f_getowner_uids()
441 uid_eq(fown->euid, cred->suid) || uid_eq(fown->euid, cred->uid) || sigio_perm()
442 uid_eq(fown->uid, cred->suid) || uid_eq(fown->uid, cred->uid)) && sigio_perm()
H A Dopen.c331 * access() needs to use the real uid/gid, not the effective uid/gid.
351 override_cred->fsuid = override_cred->uid; SYSCALL_DEFINE3()
357 if (!uid_eq(override_cred->uid, root_uid)) SYSCALL_DEFINE3()
571 kuid_t uid; chown_common() local
574 uid = make_kuid(current_user_ns(), user); chown_common()
580 if (!uid_valid(uid)) chown_common()
583 newattrs.ia_uid = uid; chown_common()
595 error = security_path_chown(path, uid, gid); chown_common()
H A Dstat.c27 stat->uid = inode->i_uid; generic_fillattr()
163 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); cp_old_stat()
249 SET_UID(tmp.st_uid, from_kuid_munged(current_user_ns(), stat->uid)); cp_new_stat()
386 tmp.st_uid = from_kuid_munged(current_user_ns(), stat->uid); cp_new_stat64()
/linux-4.1.27/drivers/nfc/st21nfca/
H A Dst21nfca.c480 /* Configure NFCID1 Random uid */ st21nfca_hci_start_poll()
576 static int st21nfca_get_iso14443_3_uid(struct nfc_hci_dev *hdev, u8 *uid, st21nfca_get_iso14443_3_uid() argument
592 memcpy(uid, uid_skb->data, uid_skb->len); st21nfca_get_iso14443_3_uid()
653 u8 uid[NFC_NFCID1_MAXSIZE]; st21nfca_hci_target_from_gate() local
672 r = st21nfca_get_iso14443_3_uid(hdev, uid, &len); st21nfca_hci_target_from_gate()
683 memcpy(target->nfcid1, uid, len); st21nfca_hci_target_from_gate()
/linux-4.1.27/include/net/9p/
H A Dclient.h177 * @uid: the numeric uid of the local user who owns this handle
191 kuid_t uid; member in struct:p9_fid
/linux-4.1.27/drivers/s390/char/
H A Dtape_3590.h111 unsigned int uid:16; member in struct:tape_3590_sense::__anon8425::__anon8427
/linux-4.1.27/drivers/input/touchscreen/
H A Dcyttsp_core.h74 u8 uid[8]; member in struct:cyttsp_sysinfo_data
/linux-4.1.27/fs/hostfs/
H A Dhostfs.h55 unsigned int uid; member in struct:hostfs_stat
/linux-4.1.27/fs/nfs/flexfilelayout/
H A Dflexfilelayout.h53 u32 uid; member in struct:nfs4_ff_layout_mirror
/linux-4.1.27/arch/parisc/math-emu/
H A Ddriver.c57 /* Major opcode 0c, uid 2 (performance monitoring) */
/linux-4.1.27/drivers/scsi/megaraid/
H A Dmegaraid_ioctl.h207 * @uid : unique id
220 uint32_t uid; member in struct:mcontroller
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_info.c171 "uid", drm_clients_info()
189 from_kuid_munged(seq_user_ns(m), priv->uid), drm_clients_info()
/linux-4.1.27/fs/ntfs/
H A Dvolume.h50 kuid_t uid; /* uid that files will be mounted as. */ member in struct:__anon11249
/linux-4.1.27/fs/jffs2/
H A Dfile.c177 ri.uid = cpu_to_je16(i_uid_read(inode)); jffs2_write_begin()
285 ri->uid = cpu_to_je16(i_uid_read(inode)); jffs2_write_end()
H A Dfs.c102 ri->uid = cpu_to_je16((ivalid & ATTR_UID)? jffs2_do_setattr()
152 i_uid_write(inode, je16_to_cpu(ri->uid)); jffs2_do_setattr()
282 i_uid_write(inode, je16_to_cpu(latest_node.uid)); jffs2_iget()
446 ri->uid = cpu_to_je16(from_kuid(&init_user_ns, current_fsuid())); jffs2_new_inode()
476 i_uid_write(inode, je16_to_cpu(ri->uid)); jffs2_new_inode()
/linux-4.1.27/net/ipv4/
H A Dinet_connection_sock.c52 kuid_t uid = sock_i_uid((struct sock *)sk); inet_csk_bind_conflict() local
71 !uid_eq(uid, sock_i_uid(sk2))))) { inet_csk_bind_conflict()
101 kuid_t uid = sock_i_uid(sk); inet_csk_get_port() local
126 uid_eq(tb->fastuid, uid))) && inet_csk_get_port()
187 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) && inet_csk_get_port()
195 sk->sk_reuseport && uid_eq(tb->fastuid, uid))) && inet_csk_get_port()
217 tb->fastuid = uid; inet_csk_get_port()
225 (!sk->sk_reuseport || !uid_eq(tb->fastuid, uid))) inet_csk_get_port()
/linux-4.1.27/net/ipv6/
H A Dinet6_connection_sock.c36 kuid_t uid = sock_i_uid((struct sock *)sk); inet6_csk_bind_conflict() local
52 !uid_eq(uid, inet6_csk_bind_conflict()
/linux-4.1.27/security/integrity/evm/
H A Devm_crypto.c103 uid_t uid; hmac_add_misc() member in struct:h_misc
111 hmac_misc.uid = from_kuid(&init_user_ns, inode->i_uid); hmac_add_misc()
/linux-4.1.27/include/acpi/
H A Dactbl1.h196 u32 uid; /* Unique ID - must be same as the EC _UID method */ member in struct:acpi_table_ecdt
756 u32 uid; /* Numeric UID - ACPI 3.0 */ member in struct:acpi_madt_local_sapic
784 u32 uid; /* ACPI processor UID */ member in struct:acpi_madt_local_x2apic
792 u32 uid; /* ACPI processor UID */ member in struct:acpi_madt_local_x2apic_nmi
803 u32 uid; member in struct:acpi_madt_generic_interrupt

Completed in 5800 milliseconds

123