Home
last modified time | relevance | path

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

12

/external/selinux/libsepol/include/sepol/policydb/
Dmls_types.h43 uint32_t sens; /* sensitivity */ member
54 dst->sens = src->sens; in mls_level_cpy()
78 return ((l1->sens == l2->sens) && ebitmap_cmp(&l1->cat, &l2->cat)); in mls_level_eq()
83 return ((l1->sens >= l2->sens) && ebitmap_contains(&l1->cat, &l2->cat)); in mls_level_dom()
139 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()
/external/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()
365 context->range.level[l].sens = levdatum->level->sens; in mls_context_to_sid()
462 dst->range.level[l].sens = src->range.level[l].sens; in mls_copy_context()
482 dst->range.level[l].sens = src->range.level[0].sens; in mls_scopy_context()
501 context->range.level[l].sens = range->level[l].sens; in mls_range_set()
[all …]
Dpolicydb.c1023 if (!levdatum->level->sens || in sens_index()
1024 levdatum->level->sens > p->p_levels.nprim) in sens_index()
1026 if (p->p_sens_val_to_name[levdatum->level->sens - 1] != NULL) in sens_index()
1028 p->p_sens_val_to_name[levdatum->level->sens - 1] = (char *)key; in sens_index()
1812 r->level[0].sens = le32_to_cpu(buf[0]); in mls_read_range_helper()
1814 r->level[1].sens = le32_to_cpu(buf[1]); in mls_read_range_helper()
1816 r->level[1].sens = r->level[0].sens; in mls_read_range_helper()
1864 l->sens = le32_to_cpu(buf[0]); in mls_read_semantic_level_helper()
1918 sl->sens = l->sens; in mls_level_to_semantic()
3004 lp->sens = le32_to_cpu(buf[0]); in mls_read_level()
Dwrite.c358 buf[0] = cpu_to_le32(l->sens); in mls_write_semantic_level_helper()
399 uint32_t sens; in mls_write_level() local
402 sens = cpu_to_le32(l->sens); in mls_write_level()
403 items = put_entry(&sens, sizeof(uint32_t), 1, fp); in mls_write_level()
426 buf[items++] = cpu_to_le32(r->level[0].sens); in mls_write_range_helper()
428 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()
1052 if (!src->sens) in mls_level_convert()
1055 assert(mod->map[SYM_LEVELS][src->sens - 1]); in mls_level_convert()
1056 dst->sens = mod->map[SYM_LEVELS][src->sens - 1]; in mls_level_convert()
Dmodule_to_cil.c513 cil_printf("(%s ", pdb->p_sens_val_to_name[level->sens - sens_offset]); in semantic_level_to_cil()
2358 …ln(indent, "(sensitivityaliasactual %s %s)", key, pdb->p_sens_val_to_name[level->level->sens - 1]); in sens_to_cil()
2475 cil_printf("(%s", pdb->p_sens_val_to_name[level->sens - 1]); in level_to_cil()
2949 char *sens = NULL; in level_string_to_cil() local
2956 matched = tokenize(levelstr, ':', 2, &sens, &cats); in level_string_to_cil()
2963 cil_printf("(%s", sens); in level_string_to_cil()
2985 free(sens); in level_string_to_cil()
/external/selinux/libsepol/cil/src/
Dcil_verify.c402 struct cil_sens *sens = node->data; in __cil_verify_ordered_node_helper() local
403 if (sens->ordered == CIL_FALSE) { in __cil_verify_ordered_node_helper()
404 … cil_tree_log(node, CIL_ERR, "Sensitivity %s not in sensitivityorder statement", sens->datum.name); in __cil_verify_ordered_node_helper()
472 int __cil_verify_cats_associated_with_sens(struct cil_sens *sens, struct cil_cats *cats) in __cil_verify_cats_associated_with_sens() argument
481 if (!sens->cats_list) { in __cil_verify_cats_associated_with_sens()
482 cil_log(CIL_ERR, "No categories can be used with sensitivity %s\n", sens->datum.name); in __cil_verify_cats_associated_with_sens()
489 cil_list_for_each(j, sens->cats_list) { in __cil_verify_cats_associated_with_sens()
498 cat->datum.name, sens->datum.name); in __cil_verify_cats_associated_with_sens()
567 rc = __cil_verify_levelrange_sensitivity(db, lr->low->sens, lr->high->sens); in __cil_verify_levelrange()
577 rc = __cil_verify_cats_associated_with_sens(lr->low->sens, lr->low->cats); in __cil_verify_levelrange()
[all …]
Dcil_policy.c243 fprintf(out, "%s", DATUM(level->sens)->fqn); in cil_level_to_policy()
256 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_write_ast.c271 char *sens, *cats = NULL; in cil_unfill_level() local
272 sens = lvl->sens_str; in cil_unfill_level()
273 len = strlen(sens) + 3; // '()\0' in cil_unfill_level()
282 if (sprintf(*out_str, "(%s)", sens) < 0) { in cil_unfill_level()
288 if (sprintf(*out_str, "(%s %s)", sens, cats) < 0) { in cil_unfill_level()
869 struct cil_sens *sens = (struct cil_sens *)node->data; in cil_write_sens() local
870 fprintf(cil_out, "(%s %s)\n", CIL_KEY_SENSITIVITY, sens->datum.name); in cil_write_sens()
882 char *sens; in cil_write_senscat() local
886 sens = senscat->sens_str; in cil_write_senscat()
891 fprintf(cil_out, "(%s %s (%s))\n", CIL_KEY_SENSCAT, sens, cats); in cil_write_senscat()
Dcil_reset_ast.c208 static void cil_reset_sens(struct cil_sens *sens) in cil_reset_sens() argument
212 cil_list_destroy(&sens->cats_list, CIL_FALSE); in cil_reset_sens()
213 sens->ordered = CIL_FALSE; in cil_reset_sens()
Dcil_verify.h69 int __cil_verify_senscat(struct cil_sens *sens, struct cil_cat *cat);
Dcil_tree.c596 if (level->sens != NULL) { in cil_tree_print_level()
597 cil_log(CIL_INFO, " %s", level->sens->datum.name); in cil_tree_print_level()
1238 struct cil_sens *sens = node->data; in cil_tree_print_node() local
1239 cil_log(CIL_INFO, "SENSITIVITY: %s\n", sens->datum.name); in cil_tree_print_node()
1310 struct cil_list_item *sens; in cil_tree_print_node() local
1315 cil_list_for_each(sens, sensorder->sens_list_str) { in cil_tree_print_node()
1316 if (sens->flavor == CIL_LIST) { in cil_tree_print_node()
1319 cil_list_for_each(sub, (struct cil_list*)sens->data) { in cil_tree_print_node()
1324 cil_log(CIL_INFO, " %s", (char*)sens->data); in cil_tree_print_node()
Dcil.c1292 if (strcmp(low->sens->datum.fqn, high->sens->datum.fqn)) { in cil_level_equals()
1328 str_len += strlen(lvl->sens->datum.fqn); in __cil_level_strlen()
1381 buf_pos = sprintf(str_tmp, "%s", lvl->sens->datum.fqn); in __cil_level_to_string()
1854 (*level)->sens = NULL; in cil_level_init()
1869 void cil_sens_init(struct cil_sens **sens) in cil_sens_init() argument
1871 *sens = cil_malloc(sizeof(**sens)); in cil_sens_init()
1873 cil_symtab_datum_init(&(*sens)->datum); in cil_sens_init()
1875 (*sens)->cats_list = NULL; in cil_sens_init()
1877 (*sens)->ordered = CIL_FALSE; in cil_sens_init()
Dcil_build_ast.h152 void cil_destroy_sensitivity(struct cil_sens *sens);
229 int cil_fill_level(struct cil_tree_node *sens, struct cil_level *level);
Dcil_internal.h692 struct cil_sens *sens; member
970 void cil_sens_init(struct cil_sens **sens);
Dcil_resolve_ast.c1245 struct cil_sens *sens = item->data; in __cil_ordered_item_insert() local
1246 if (sens->ordered == CIL_TRUE) { in __cil_ordered_item_insert()
1247 …cil_log(CIL_ERR, "Sensitivity %s has already been merged into the ordered list\n", sens->datum.nam… in __cil_ordered_item_insert()
1250 sens->ordered = CIL_TRUE; in __cil_ordered_item_insert()
1672 struct cil_sens *sens = NULL; in cil_resolve_senscat() local
1685 sens = (struct cil_sens *)sens_datum; in cil_resolve_senscat()
1687 if (sens->cats_list == NULL ) { in cil_resolve_senscat()
1688 cil_list_init(&sens->cats_list, CIL_CAT); in cil_resolve_senscat()
1691 cil_list_append(sens->cats_list, CIL_CAT, senscat->cats); in cil_resolve_senscat()
1710 level->sens = (struct cil_sens *)sens_datum; in cil_resolve_level()
/external/selinux/mcstrans/src/
Dmls_level.c28 l->sens = atoi(scontextp + 1); in mls_level_from_string()
91 len += snprintf(temp, sizeof(temp), "s%d", l->sens); in mls_compute_string_len()
129 p += sprintf(p, "s%d", l->sens); in mls_level_to_string()
Dmcstrans.c121 unsigned int sens; member
232 if (sscanf(raw,"s%u", &mls->sens) != 1) in parse_raw()
234 raw += numdigits(mls->sens) + 1; in parse_raw()
469 if (sscanf(raw,"s%u", &constraint->sens) != 1) { in add_constraint()
530 if (s->sens == l->sens) { in violates_constraints()
1315 int doInverse = l->sens > 0; in compute_trans_from_raw()
1320 if (l->sens == bc->level->sens) { in compute_trans_from_raw()
1323 last->level->sens == bc->level->sens && in compute_trans_from_raw()
/external/selinux/libsepol/cil/test/integration_testing/
Dmls_policy.cil16 (sensitivityalias s3 sens)
21 ;(sensitivitycategory sens (c2))
/external/icu/icu4c/source/data/lang/
Dpt_PT.txt7 colCaseLevel{"Ordenação sensível a maiúsculas e minúsculas"}
139 yes{"Ordenar sensível a maiúsculas/minúsculas"}
/external/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()
4226 uint32_t level_value = levdatum->level->sens - 1; in parse_categories()
4353 usrdatum->dfltlevel.sens = levdatum->level->sens; in define_user()
4378 usrdatum->range.level[l].sens = levdatum->level->sens; in define_user()
4534 c->range.level[l].sens = levdatum->level->sens; in parse_security_context()
4553 c->range.level[1].sens = c->range.level[0].sens; in parse_security_context()
5563 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()
1054 &level->level->sens, &level->level->sens); in require_sens()
/external/selinux/libsepol/tests/
Dtest-common.c125 CU_ASSERT(p->sym_val_to_name[SYM_LEVELS][d->level->sens - 1] == (char *)key); in level_test_index()
/external/kernel-headers/original/uapi/linux/
Dwireless.h907 struct iw_param sens; /* signal level threshold */ member

12