Lines Matching refs:scontext
371 * only. For these rules, scontext is the context before the transition,
380 static int constraint_expr_eval_reason(context_struct_t *scontext,
485 val1 = scontext->user;
491 val1 = scontext->type;
497 val1 = scontext->role;
526 l1 = &(scontext->range.level[0]);
532 l1 = &(scontext->range.level[0]);
538 l1 = &(scontext->range.level[1]);
544 l1 = &(scontext->range.level[1]);
550 l1 = &(scontext->range.level[0]);
551 l2 = &(scontext->range.level[1]);
615 c = scontext;
817 static int context_struct_compute_av(context_struct_t * scontext,
857 sattr = &policydb->type_attr_map[scontext->type - 1];
899 !constraint_expr_eval_reason(scontext, tcontext, NULL,
919 scontext->role != tcontext->role) {
921 if (scontext->role == ra->role &&
992 context_struct_t *scontext = 0, *tcontext = 0;
995 scontext = sepol_sidtab_search(sidtab, ssid);
996 if (!scontext) {
1008 rc = context_struct_compute_av(scontext, tcontext, tclass,
1028 context_struct_t *scontext = 0, *tcontext = 0;
1031 scontext = sepol_sidtab_search(sidtab, ssid);
1032 if (!scontext) {
1055 rc = context_struct_compute_av(scontext, tcontext, tclass,
1140 * allocated string of the correct size. Set `*scontext'
1145 sepol_security_context_t * scontext,
1157 rc = context_to_string(NULL, policydb, context, scontext, scontext_len);
1165 * has the string representation specified by `scontext'.
1167 int hidden sepol_context_to_sid(const sepol_security_context_t scontext,
1175 scontext, scontext_len) < 0)
1191 ERR(NULL, "could not convert %s to sid", scontext);
1196 scontext,
1210 context_to_string(NULL, policydb, scontext, &s, &slen);
1214 "scontext=%s tcontext=%s tclass=%s",
1228 context_struct_t *scontext = 0, *tcontext = 0, newcontext;
1235 scontext = sepol_sidtab_search(sidtab, ssid);
1236 if (!scontext) {
1255 newcontext.user = scontext->user;
1267 newcontext.role = scontext->role;
1268 newcontext.type = scontext->type;
1278 avkey.source_type = scontext->type;
1308 if (roletr->role == scontext->role &&
1323 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified,
1330 rc = compute_sid_handle_invalid_context(scontext,