Home
last modified time | relevance | path

Searched refs:sens (Results 1 – 25 of 45) 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.c265 static int validate_mls_semantic_level(mls_semantic_level_t *level, validate_t *sens, validate_t *c… in validate_mls_semantic_level() argument
267 if (level->sens == 0) in validate_mls_semantic_level()
269 if (validate_value(level->sens, sens)) in validate_mls_semantic_level()
280 static int validate_mls_semantic_range(mls_semantic_range_t *range, validate_t *sens, validate_t *c… in validate_mls_semantic_range() argument
282 if (validate_mls_semantic_level(&range->level[0], sens, cats)) in validate_mls_semantic_range()
284 if (validate_mls_semantic_level(&range->level[1], sens, cats)) in validate_mls_semantic_range()
Dpolicydb.c1088 if (!value_isvalid(levdatum->level->sens, p->p_levels.nprim)) in sens_index()
1090 if (p->p_sens_val_to_name[levdatum->level->sens - 1] != NULL) in sens_index()
1092 p->p_sens_val_to_name[levdatum->level->sens - 1] = (char *)key; in sens_index()
1857 r->level[0].sens = le32_to_cpu(buf[0]); in mls_read_range_helper()
1859 r->level[1].sens = le32_to_cpu(buf[1]); in mls_read_range_helper()
1861 r->level[1].sens = r->level[0].sens; in mls_read_range_helper()
1909 l->sens = le32_to_cpu(buf[0]); in mls_read_semantic_level_helper()
1963 sl->sens = l->sens; in mls_level_to_semantic()
3291 lp->sens = le32_to_cpu(buf[0]); in mls_read_level()
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()
Dlink.c703 state->cur->map[SYM_LEVELS][level->level->sens - 1] = in sens_copy_callback()
704 base_level->level->sens; in sens_copy_callback()
1046 if (!src->sens) in mls_level_convert()
1049 assert(mod->map[SYM_LEVELS][src->sens - 1]); in mls_level_convert()
1050 dst->sens = mod->map[SYM_LEVELS][src->sens - 1]; in mls_level_convert()
Dkernel_to_cil.c792 level_datum_t *sens = data; in map_count_sensitivity_aliases() local
795 if (sens->isalias) in map_count_sensitivity_aliases()
803 level_datum_t *sens = data; in map_sensitivity_aliases_to_strs() local
807 if (sens->isalias) { in map_sensitivity_aliases_to_strs()
880 actual = pdb->p_sens_val_to_name[level->level->sens - 1]; in write_sensitivity_rules_to_cil()
1920 char *sens_str = pdb->p_sens_val_to_name[level->sens - 1]; in level_to_str()
Dmodule_to_cil.c534 cil_printf("(%s ", pdb->p_sens_val_to_name[level->sens - sens_offset]); in semantic_level_to_cil()
2382 …ln(indent, "(sensitivityaliasactual %s %s)", key, pdb->p_sens_val_to_name[level->level->sens - 1]); in sens_to_cil()
2490 cil_printf("(%s", pdb->p_sens_val_to_name[level->sens - 1]); in level_to_cil()
2979 char *sens = NULL; in level_string_to_cil() local
2986 matched = tokenize(levelstr, ':', 2, &sens, &cats); in level_string_to_cil()
2993 cil_printf("(%s", sens); in level_string_to_cil()
3015 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 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.c1515 if (strcmp(low->sens->datum.fqn, high->sens->datum.fqn)) { in cil_level_equals()
1551 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1604 buf_pos = sprintf(str_tmp, "%s", lvl->sens->datum.fqn); in __cil_level_to_string()
2132 (*level)->sens = NULL; in cil_level_init()
2147 void cil_sens_init(struct cil_sens **sens) in cil_sens_init() argument
2149 *sens = cil_malloc(sizeof(**sens)); in cil_sens_init()
2151 cil_symtab_datum_init(&(*sens)->datum); in cil_sens_init()
2153 (*sens)->cats_list = NULL; in cil_sens_init()
2155 (*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_internal.h708 struct cil_sens *sens; member
1006 void cil_sens_init(struct cil_sens **sens);
Dcil_resolve_ast.c1242 struct cil_sens *sens = item->data; in __cil_ordered_item_insert() local
1243 if (sens->ordered == CIL_TRUE) { in __cil_ordered_item_insert()
1244 …cil_log(CIL_ERR, "Sensitivity %s has already been merged into the ordered list\n", sens->datum.nam… in __cil_ordered_item_insert()
1247 sens->ordered = CIL_TRUE; in __cil_ordered_item_insert()
1675 struct cil_sens *sens = NULL; in cil_resolve_senscat() local
1688 sens = (struct cil_sens *)sens_datum; in cil_resolve_senscat()
1690 if (sens->cats_list == NULL ) { in cil_resolve_senscat()
1691 cil_list_init(&sens->cats_list, CIL_CAT); in cil_resolve_senscat()
1694 cil_list_append(sens->cats_list, CIL_CAT, senscat->cats); in cil_resolve_senscat()
1707 if (level->sens) { in cil_resolve_level()
[all …]
/third_party/selinux/libsepol/cil/test/integration_testing/
Dmls_policy.cil16 (sensitivityalias s3 sens)
21 ;(sensitivitycategory sens (c2))
/third_party/flutter/skia/third_party/externals/icu/source/data/lang/
Dpt_PT.txt7 colCaseLevel{"Ordenação sensível a maiúsculas e minúsculas"}
173 yes{"Ordenar sensível a maiúsculas/minúsculas"}
/third_party/selinux/checkpolicy/
Dpolicy_define.c736 level->sens = 0; /* actual value set in define_dominance */ in define_sens()
862 if (datum->level->sens != 0) { in define_dominance()
868 datum->level->sens = ++order; in define_dominance()
4162 uint32_t level_value = levdatum->level->sens - 1; in parse_categories()
4289 usrdatum->dfltlevel.sens = levdatum->level->sens; in define_user()
4314 usrdatum->range.level[l].sens = levdatum->level->sens; in define_user()
4470 c->range.level[l].sens = levdatum->level->sens; in parse_security_context()
4489 c->range.level[1].sens = c->range.level[0].sens; in parse_security_context()
5698 rule->trange.level[l].sens = levdatum->level->sens; in define_range_trans()
Dmodule_compiler.c174 *dest_value = ((level_datum_t *)s)->level->sens; in create_symbol()
1055 &level->level->sens, &level->level->sens); in require_sens()
/third_party/icu/icu4c/source/data/lang/
Dpt_PT.txt9 colCaseLevel{"Ordenação sensível a maiúsculas e minúsculas"}
191 yes{"Ordenar sensível a maiúsculas/minúsculas"}
/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/selinux/libsepol/tests/
Dtest-common.c127 CU_ASSERT(p->sym_val_to_name[SYM_LEVELS][d->level->sens - 1] == (char *)key); in level_test_index()
/third_party/gettext/gettext-tools/examples/po/
Dpt_BR.po134 #~ msgstr "Se esta ação é sensível a rótulo ou não."

12