Home
last modified time | relevance | path

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

/frameworks/native/cmds/servicemanager/
Dservice_manager.c59 static bool check_mac_perms(pid_t spid, const char *tctx, const char *perm, const char *name) in check_mac_perms() argument
65 if (getpidcon(spid, &sctx) < 0) { in check_mac_perms()
66 ALOGE("SELinux: getpidcon(pid=%d) failed to retrieve pid context.\n", spid); in check_mac_perms()
77 static bool check_mac_perms_from_getcon(pid_t spid, const char *perm) in check_mac_perms_from_getcon() argument
83 return check_mac_perms(spid, service_manager_context, perm, NULL); in check_mac_perms_from_getcon()
86 static bool check_mac_perms_from_lookup(pid_t spid, const char *perm, const char *name) in check_mac_perms_from_lookup() argument
105 allowed = check_mac_perms(spid, tctx, perm, name); in check_mac_perms_from_lookup()
110 static int svc_can_register(const uint16_t *name, size_t name_len, pid_t spid) in svc_can_register() argument
113 return check_mac_perms_from_lookup(spid, perm, str8(name, name_len)) ? 1 : 0; in svc_can_register()
116 static int svc_can_list(pid_t spid) in svc_can_list() argument
[all …]