Home
last modified time | relevance | path

Searched refs:sens (Results 1 – 25 of 42) sorted by relevance

12

/third_party/selinux/libsepol/include/sepol/policydb/
Dmls_types.h45 uint32_t sens; /* sensitivity */ member
55 if (r1->level[1].sens < r2->level[0].sens || r2->level[1].sens < r1->level[0].sens) { in mls_range_glblub()
61 dst->level[0].sens = MAX(r1->level[0].sens, r2->level[0].sens); in mls_range_glblub()
63 dst->level[1].sens = MIN(r1->level[1].sens, r2->level[1].sens); in mls_range_glblub()
80 dst->sens = src->sens; in mls_level_cpy()
104 return ((l1->sens == l2->sens) && ebitmap_cmp(&l1->cat, &l2->cat)); in mls_level_eq()
109 return ((l1->sens >= l2->sens) && ebitmap_contains(&l1->cat, &l2->cat)); in mls_level_dom()
165 uint32_t sens; member
Dcontext.h62 dst->range.level[0].sens = src->range.level[0].sens; in mls_context_cpy_low()
67 dst->range.level[1].sens = src->range.level[0].sens; in mls_context_cpy_low()
82 dst->range.level[0].sens = src->range.level[1].sens; in mls_context_cpy_high()
87 dst->range.level[1].sens = src->range.level[1].sens; in mls_context_cpy_high()
/third_party/selinux/libsepol/src/
Dmls.c124 p_sens_val_to_name[context->range.level[l].sens - in mls_compute_context_len()
188 sens - 1]); in mls_sid_to_context()
191 p_sens_val_to_name[context->range.level[l].sens - in mls_sid_to_context()
280 if (!c->range.level[l].sens in mls_context_isvalid()
281 || c->range.level[l].sens > p->p_levels.nprim) in mls_context_isvalid()
284 key = p->p_sens_val_to_name[c->range.level[l].sens - 1]; in mls_context_isvalid()
363 context->range.level[l].sens = levdatum->level->sens; in mls_context_to_sid()
460 dst->range.level[l].sens = src->range.level[l].sens; in mls_copy_context()
480 dst->range.level[l].sens = src->range.level[0].sens; in mls_scopy_context()
499 context->range.level[l].sens = range->level[l].sens; in mls_range_set()
[all …]
Dpolicydb_validate.c556 static int validate_mls_semantic_level(const mls_semantic_level_t *level, const validate_t *sens, c… in validate_mls_semantic_level() argument
558 if (level->sens == 0) in validate_mls_semantic_level()
560 if (validate_value(level->sens, sens)) in validate_mls_semantic_level()
571 static int validate_mls_semantic_range(const mls_semantic_range_t *range, const validate_t *sens, c… in validate_mls_semantic_range() argument
573 if (validate_mls_semantic_level(&range->level[0], sens, cats)) in validate_mls_semantic_range()
575 if (validate_mls_semantic_level(&range->level[1], sens, cats)) in validate_mls_semantic_range()
584 static int validate_mls_level(const mls_level_t *level, const validate_t *sens, const validate_t *c… in validate_mls_level() argument
586 if (validate_value(level->sens, sens)) in validate_mls_level()
605 static int validate_mls_range(const mls_range_t *range, const validate_t *sens, const validate_t *c… in validate_mls_range() argument
607 if (validate_mls_level(&range->level[0], sens, cats)) in validate_mls_range()
[all …]
Dwrite.c364 buf[0] = cpu_to_le32(l->sens); in mls_write_semantic_level_helper()
405 uint32_t sens; in mls_write_level() local
408 sens = cpu_to_le32(l->sens); in mls_write_level()
409 items = put_entry(&sens, sizeof(uint32_t), 1, fp); in mls_write_level()
432 buf[items++] = cpu_to_le32(r->level[0].sens); in mls_write_range_helper()
434 buf[items++] = cpu_to_le32(r->level[1].sens); in mls_write_range_helper()
Dpolicydb.c1100 if (!value_isvalid(levdatum->level->sens, p->p_levels.nprim)) in sens_index()
1102 if (p->p_sens_val_to_name[levdatum->level->sens - 1] != NULL) in sens_index()
1104 p->p_sens_val_to_name[levdatum->level->sens - 1] = (char *)key; in sens_index()
1870 r->level[0].sens = le32_to_cpu(buf[0]); in mls_read_range_helper()
1872 r->level[1].sens = le32_to_cpu(buf[1]); in mls_read_range_helper()
1874 r->level[1].sens = r->level[0].sens; in mls_read_range_helper()
1922 l->sens = le32_to_cpu(buf[0]); in mls_read_semantic_level_helper()
1976 sl->sens = l->sens; in mls_level_to_semantic()
3315 lp->sens = le32_to_cpu(buf[0]); in mls_read_level()
Dlink.c705 state->cur->map[SYM_LEVELS][level->level->sens - 1] = in sens_copy_callback()
706 base_level->level->sens; in sens_copy_callback()
1042 if (!src->sens) in mls_level_convert()
1045 assert(mod->map[SYM_LEVELS][src->sens - 1]); in mls_level_convert()
1046 dst->sens = mod->map[SYM_LEVELS][src->sens - 1]; in mls_level_convert()
Dexpand.c929 if (!sl->sens) in mls_semantic_level_expand()
933 if (sl->sens > p->p_levels.nprim || !p->p_sens_val_to_name[sl->sens - 1]) in mls_semantic_level_expand()
936 l->sens = sl->sens; in mls_semantic_level_expand()
938 p->p_sens_val_to_name[l->sens - 1]); in mls_semantic_level_expand()
957 p->p_sens_val_to_name[l->sens - 1]); in mls_semantic_level_expand()
Dkernel_to_cil.c813 level_datum_t *sens = data; in map_count_sensitivity_aliases() local
816 if (sens->isalias) in map_count_sensitivity_aliases()
824 level_datum_t *sens = data; in map_sensitivity_aliases_to_strs() local
828 if (sens->isalias) { in map_sensitivity_aliases_to_strs()
901 actual = pdb->p_sens_val_to_name[level->level->sens - 1]; in write_sensitivity_rules_to_cil()
1946 char *sens_str = pdb->p_sens_val_to_name[level->sens - 1]; in level_to_str()
Dmodule_to_cil.c536 cil_printf("(%s ", pdb->p_sens_val_to_name[level->sens - sens_offset]); in semantic_level_to_cil()
2389 …ln(indent, "(sensitivityaliasactual %s %s)", key, pdb->p_sens_val_to_name[level->level->sens - 1]); in sens_to_cil()
2497 cil_printf("(%s", pdb->p_sens_val_to_name[level->sens - 1]); in level_to_cil()
3016 char *sens = NULL; in level_string_to_cil() local
3023 matched = tokenize(levelstr, ':', 2, &sens, &cats); in level_string_to_cil()
3030 cil_printf("(%s", sens); in level_string_to_cil()
3052 free(sens); in level_string_to_cil()
/third_party/selinux/libsepol/cil/src/
Dcil_verify.c550 struct cil_sens *sens = node->data; in __cil_verify_ordered_node_helper() local
551 if (sens->ordered == CIL_FALSE) { in __cil_verify_ordered_node_helper()
552 … cil_tree_log(node, CIL_ERR, "Sensitivity %s not in sensitivityorder statement", sens->datum.name); in __cil_verify_ordered_node_helper()
619 static int __cil_verify_cats_associated_with_sens(struct cil_sens *sens, struct cil_cats *cats) in __cil_verify_cats_associated_with_sens() argument
628 if (!sens->cats_list) { in __cil_verify_cats_associated_with_sens()
629 cil_log(CIL_ERR, "No categories can be used with sensitivity %s\n", sens->datum.name); in __cil_verify_cats_associated_with_sens()
636 cil_list_for_each(j, sens->cats_list) { in __cil_verify_cats_associated_with_sens()
645 cat->datum.name, sens->datum.name); in __cil_verify_cats_associated_with_sens()
714 rc = __cil_verify_levelrange_sensitivity(db, lr->low->sens, lr->high->sens); in __cil_verify_levelrange()
724 rc = __cil_verify_cats_associated_with_sens(lr->low->sens, lr->low->cats); in __cil_verify_levelrange()
[all …]
Dcil_policy.c244 fprintf(out, "%s", DATUM(level->sens)->fqn); in cil_level_to_policy()
257 if (l1->sens == l2->sens && (l1->cats == NULL && l2->cats == NULL)) in cil_levels_simple_and_equal()
851 struct cil_sens *sens; in cil_sensitivities_to_policy() local
858 sens = i1->data; in cil_sensitivities_to_policy()
863 if (sens == actual) { in cil_sensitivities_to_policy()
871 fprintf(out, "sensitivity %s", sens->datum.fqn); in cil_sensitivities_to_policy()
893 struct cil_sens *sens; in cil_dominance_to_policy() local
897 sens = item->data; in cil_dominance_to_policy()
898 fprintf(out, " %s", sens->datum.fqn); in cil_dominance_to_policy()
948 struct cil_sens *sens; in cil_levels_to_policy() local
[all …]
Dcil_reset_ast.c230 static void cil_reset_sens(struct cil_sens *sens) in cil_reset_sens() argument
234 cil_list_destroy(&sens->cats_list, CIL_FALSE); in cil_reset_sens()
235 sens->ordered = CIL_FALSE; in cil_reset_sens()
264 level->sens = NULL; in cil_reset_level()
Dcil_verify.h70 int __cil_verify_senscat(struct cil_sens *sens, struct cil_cat *cat);
Dcil.c1521 if (strcmp(low->sens->datum.fqn, high->sens->datum.fqn)) { in cil_level_equals()
1557 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1610 buf_pos = sprintf(str_tmp, "%s", lvl->sens->datum.fqn); in __cil_level_to_string()
2141 (*level)->sens = NULL; in cil_level_init()
2156 void cil_sens_init(struct cil_sens **sens) in cil_sens_init() argument
2158 *sens = cil_malloc(sizeof(**sens)); in cil_sens_init()
2160 cil_symtab_datum_init(&(*sens)->datum); in cil_sens_init()
2162 (*sens)->cats_list = NULL; in cil_sens_init()
2164 (*sens)->ordered = CIL_FALSE; in cil_sens_init()
Dcil_build_ast.h154 void cil_destroy_sensitivity(struct cil_sens *sens);
235 int cil_fill_level(struct cil_tree_node *sens, struct cil_level *level);
Dcil_resolve_ast.c1257 struct cil_sens *sens = item->data; in __cil_ordered_item_insert() local
1258 if (sens->ordered == CIL_TRUE) { in __cil_ordered_item_insert()
1259 …cil_log(CIL_ERR, "Sensitivity %s has already been merged into the ordered list\n", sens->datum.nam… in __cil_ordered_item_insert()
1262 sens->ordered = CIL_TRUE; in __cil_ordered_item_insert()
1690 struct cil_sens *sens = NULL; in cil_resolve_senscat() local
1703 sens = (struct cil_sens *)sens_datum; in cil_resolve_senscat()
1705 if (sens->cats_list == NULL ) { in cil_resolve_senscat()
1706 cil_list_init(&sens->cats_list, CIL_CAT); in cil_resolve_senscat()
1709 cil_list_append(sens->cats_list, CIL_CAT, senscat->cats); in cil_resolve_senscat()
1722 if (level->sens) { in cil_resolve_level()
[all …]
Dcil_internal.h708 struct cil_sens *sens; member
1007 void cil_sens_init(struct cil_sens **sens);
Dcil_post.c90 if (a->sens != b->sens) { in level_compare()
91 rc = strcmp(DATUM(a->sens)->fqn, DATUM(b->sens)->fqn); in level_compare()
/third_party/selinux/libsepol/cil/test/integration_testing/
Dmls_policy.cil16 (sensitivityalias s3 sens)
21 ;(sensitivitycategory sens (c2))
/third_party/selinux/checkpolicy/
Dpolicy_define.c735 level->sens = 0; /* actual value set in define_dominance */ in define_sens()
861 if (datum->level->sens != 0) { in define_dominance()
867 datum->level->sens = ++order; in define_dominance()
4218 uint32_t level_value = levdatum->level->sens - 1; in parse_categories()
4345 usrdatum->dfltlevel.sens = levdatum->level->sens; in define_user()
4370 usrdatum->range.level[l].sens = levdatum->level->sens; in define_user()
4526 c->range.level[l].sens = levdatum->level->sens; in parse_security_context()
4545 c->range.level[1].sens = c->range.level[0].sens; in parse_security_context()
5804 rule->trange.level[l].sens = levdatum->level->sens; in define_range_trans()
Dmodule_compiler.c175 *dest_value = ((level_datum_t *)s)->level->sens; in create_symbol()
1064 &level->level->sens, &level->level->sens); in require_sens()
/third_party/skia/third_party/externals/icu/source/data/lang/
Dpt_PT.txt10 colCaseLevel{"Ordenação sensível a maiúsculas e minúsculas"}
191 yes{"Ordenar sensível a maiúsculas/minúsculas"}
/third_party/icu/icu4c/source/data/lang/
Dpt_PT.txt10 colCaseLevel{"Ordenação sensível a maiúsculas e minúsculas"}
194 yes{"Ordenar sensível a maiúsculas/minúsculas"}
/third_party/selinux/libsepol/tests/
Dtest-common.c128 CU_ASSERT(p->sym_val_to_name[SYM_LEVELS][d->level->sens - 1] == (char *)key); in level_test_index()

12