Searched refs:sctx (Results 1 – 2 of 2) sorted by relevance
/system/core/init/ |
D | property_service.cpp | 93 static int check_mac_perms(const char *name, char *sctx) in check_mac_perms() argument 101 if (!sctx) in check_mac_perms() 110 if (selinux_check_access(sctx, tctx, "property_service", "set", (void*) name) == 0) in check_mac_perms() 118 static int check_control_mac_perms(const char *name, char *sctx) in check_control_mac_perms() argument 132 return check_mac_perms(ctl_name, sctx); in check_control_mac_perms() 139 static int check_perms(const char *name, char *sctx) in check_perms() argument 144 return check_mac_perms(name, sctx); in check_perms()
|
/system/security/keystore/ |
D | keystore.cpp | 368 char *sctx = NULL; in keystore_selinux_check_access() local 376 if (getpidcon(spid, &sctx) != 0) { in keystore_selinux_check_access() 381 bool allowed = selinux_check_access(sctx, tctx, selinux_class, str_perm, in keystore_selinux_check_access() 383 freecon(sctx); in keystore_selinux_check_access()
|