Lines Matching refs:scontext
376 * only. For these rules, scontext is the context before the transition,
385 static int constraint_expr_eval_reason(context_struct_t *scontext,
496 val1 = scontext->user;
502 val1 = scontext->type;
508 val1 = scontext->role;
537 l1 = &(scontext->range.level[0]);
543 l1 = &(scontext->range.level[0]);
549 l1 = &(scontext->range.level[1]);
555 l1 = &(scontext->range.level[1]);
561 l1 = &(scontext->range.level[0]);
562 l2 = &(scontext->range.level[1]);
626 c = scontext;
831 static int context_struct_compute_av(context_struct_t * scontext,
871 sattr = &policydb->type_attr_map[scontext->type - 1];
913 !constraint_expr_eval_reason(scontext, tcontext, NULL,
933 scontext->role != tcontext->role) {
935 if (scontext->role == ra->role &&
1068 context_struct_t *scontext = 0, *tcontext = 0;
1071 scontext = sepol_sidtab_search(sidtab, ssid);
1072 if (!scontext) {
1084 rc = context_struct_compute_av(scontext, tcontext, tclass,
1104 context_struct_t *scontext = 0, *tcontext = 0;
1107 scontext = sepol_sidtab_search(sidtab, ssid);
1108 if (!scontext) {
1131 rc = context_struct_compute_av(scontext, tcontext, tclass,
1216 * allocated string of the correct size. Set `*scontext'
1221 sepol_security_context_t * scontext,
1233 rc = context_to_string(NULL, policydb, context, scontext, scontext_len);
1241 * has the string representation specified by `scontext'.
1243 int hidden sepol_context_to_sid(const sepol_security_context_t scontext,
1251 scontext, scontext_len) < 0)
1267 ERR(NULL, "could not convert %s to sid", scontext);
1272 scontext,
1286 context_to_string(NULL, policydb, scontext, &s, &slen);
1290 "scontext=%s tcontext=%s tclass=%s",
1304 context_struct_t *scontext = 0, *tcontext = 0, newcontext;
1311 scontext = sepol_sidtab_search(sidtab, ssid);
1312 if (!scontext) {
1331 newcontext.user = scontext->user;
1343 newcontext.role = scontext->role;
1344 newcontext.type = scontext->type;
1354 avkey.source_type = scontext->type;
1384 if (roletr->role == scontext->role &&
1399 rc = mls_compute_sid(policydb, scontext, tcontext, tclass, specified,
1406 rc = compute_sid_handle_invalid_context(scontext,