Lines Matching refs:uid
53 uid_t uid; member
68 uid_t uid; member
92 uid_t uid; member
114 snprintf(buf, len, "pid=%d uid=%d sid=%s", ad->pid, ad->uid, sid); in audit_callback()
134 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid, const char* ssid) { in keystore_selinux_check_access() argument
152 ad.uid = uid; in keystore_selinux_check_access()
166 uid_t get_keystore_euid(uid_t uid) { in get_keystore_euid() argument
169 if (user.uid == uid) { in get_keystore_euid()
174 return uid; in get_keystore_euid()
177 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid) { in has_permission() argument
179 if (get_app_id(uid) == AID_SYSTEM) { in has_permission()
180 uid = AID_SYSTEM; in has_permission()
189 if (user.uid == uid) { in has_permission()
190 return (user.perms & perm) && keystore_selinux_check_access(uid, perm, spid, sid); in has_permission()
194 return (DEFAULT_PERMS & perm) && keystore_selinux_check_access(uid, perm, spid, sid); in has_permission()
207 if (user.euid == callingUid && user.uid == targetUid) { in is_granted_to()