Searched refs:spid (Results 1 – 3 of 3) sorted by relevance
/frameworks/native/cmds/servicemanager/ |
D | service_manager.c | 65 static bool check_mac_perms(pid_t spid, uid_t uid, const char *tctx, const char *perm, const char *… in check_mac_perms() argument 72 if (getpidcon(spid, &sctx) < 0) { in check_mac_perms() 73 ALOGE("SELinux: getpidcon(pid=%d) failed to retrieve pid context.\n", spid); in check_mac_perms() 77 ad.pid = spid; in check_mac_perms() 88 static bool check_mac_perms_from_getcon(pid_t spid, uid_t uid, const char *perm) in check_mac_perms_from_getcon() argument 94 return check_mac_perms(spid, uid, service_manager_context, perm, NULL); in check_mac_perms_from_getcon() 97 static bool check_mac_perms_from_lookup(pid_t spid, uid_t uid, const char *perm, const char *name) in check_mac_perms_from_lookup() argument 116 allowed = check_mac_perms(spid, uid, tctx, perm, name); in check_mac_perms_from_lookup() 121 static int svc_can_register(const uint16_t *name, size_t name_len, pid_t spid, uid_t uid) in svc_can_register() argument 124 return check_mac_perms_from_lookup(spid, uid, perm, str8(name, name_len)) ? 1 : 0; in svc_can_register() [all …]
|
/frameworks/av/drm/drmserver/ |
D | DrmManagerService.cpp | 61 bool DrmManagerService::selinuxIsProtectedCallAllowed(pid_t spid, drm_perm_t perm) { in selinuxIsProtectedCallAllowed() argument 70 if (getpidcon(spid, &sctx) != 0) { in selinuxIsProtectedCallAllowed() 71 ALOGE("SELinux: getpidcon(pid=%d) failed.\n", spid); in selinuxIsProtectedCallAllowed() 88 pid_t spid = ipcState->getCallingPid(); in isProtectedCallAllowed() local 92 return selinuxIsProtectedCallAllowed(spid, perm); in isProtectedCallAllowed()
|
/frameworks/av/drm/libdrmframework/include/ |
D | DrmManagerService.h | 63 static bool selinuxIsProtectedCallAllowed(pid_t spid, drm_perm_t perm);
|