Home
last modified time | relevance | path

Searched refs:spid (Results 1 – 3 of 3) sorted by relevance

/system/security/keystore/
Dpermissions.cpp134 static bool keystore_selinux_check_access(uid_t uid, perm_t perm, pid_t spid, const char* ssid) { in keystore_selinux_check_access() argument
144 if (ssid == nullptr && getpidcon(spid, &sctx) != 0) { in keystore_selinux_check_access()
151 ad.pid = spid; in keystore_selinux_check_access()
177 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid) { in has_permission() argument
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()
Dpermissions.h59 bool has_permission(uid_t uid, perm_t perm, pid_t spid, const char* sid);
Dkey_store_service.cpp1355 pid_t spid = IPCThreadState::self()->getCallingPid(); in checkBinderPermission() local
1357 if (!has_permission(callingUid, permission, spid, ssid)) { in checkBinderPermission()
1374 pid_t spid = IPCThreadState::self()->getCallingPid(); in checkBinderPermissionSelfOrSystem() local
1376 if (!has_permission(callingUid, permission, spid, ssid)) { in checkBinderPermissionSelfOrSystem()