Lines Matching refs:uid
37 uid_t uid; member
46 uid_t uid; member
62 uid_t uid; member
82 snprintf(buf, len, "pid=%d uid=%d", ad->pid, ad->uid); in audit_callback()
108 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid) { in keystore_selinux_check_access() argument
128 ad.uid = uid; in keystore_selinux_check_access()
141 uid_t get_keystore_euid(uid_t uid) { in get_keystore_euid() argument
144 if (user.uid == uid) { in get_keystore_euid()
149 return uid; in get_keystore_euid()
152 bool has_permission(uid_t uid, perm_t perm, pid_t spid) { in has_permission() argument
154 if (get_app_id(uid) == AID_SYSTEM) { in has_permission()
155 uid = AID_SYSTEM; in has_permission()
160 if (user.uid == uid) { in has_permission()
161 return (user.perms & perm) && keystore_selinux_check_access(uid, perm, spid); in has_permission()
165 return (DEFAULT_PERMS & perm) && keystore_selinux_check_access(uid, perm, spid); in has_permission()
178 if (user.euid == callingUid && user.uid == targetUid) { in is_granted_to()