Searched refs:sctx (Results 1 – 2 of 2) sorted by relevance
/system/security/keystore/ |
D | permissions.cpp | 114 char* sctx = NULL; in keystore_selinux_check_access() local 122 if (getpidcon(spid, &sctx) != 0) { in keystore_selinux_check_access() 130 bool allowed = selinux_check_access(sctx, tctx, selinux_class, str_perm, in keystore_selinux_check_access() 132 freecon(sctx); in keystore_selinux_check_access()
|
/system/core/init/ |
D | property_service.cpp | 73 static int check_mac_perms(const char *name, char *sctx, struct ucred *cr) in check_mac_perms() argument 79 if (!sctx) in check_mac_perms() 91 …if (selinux_check_access(sctx, tctx, "property_service", "set", reinterpret_cast<void*>(&audit_dat… in check_mac_perms() 99 static int check_control_mac_perms(const char *name, char *sctx, struct ucred *cr) in check_control_mac_perms() argument 113 return check_mac_perms(ctl_name, sctx, cr); in check_control_mac_perms()
|