Home
last modified time | relevance | path

Searched refs:cats (Results 1 – 25 of 45) sorted by relevance

12

/external/selinux/python/chcat/
Dchcat84 cats = []
89 cats.append(top[1])
90 cats = expandCats(cats)
93 if i not in cats:
94 cats.append(i)
96 if len(cats) > 0:
97 new_serange = "%s-%s:%s" % (serange[0], top[0], ",".join(cats))
136 cats = clist[1:]
137 cats.sort()
138 cat_string = cats[0]
[all …]
/external/selinux/libsepol/cil/src/
Dcil_reset_ast.c222 static inline void cil_reset_cats(struct cil_cats *cats) in cil_reset_cats() argument
224 if (cats != NULL) { in cil_reset_cats()
225 cats->evaluated = CIL_FALSE; in cil_reset_cats()
226 cil_list_destroy(&cats->datum_expr, CIL_FALSE); in cil_reset_cats()
233 cil_reset_cats(senscat->cats); in cil_reset_senscat()
238 cil_reset_cats(catset->cats); in cil_reset_catset()
243 cil_reset_cats(level->cats); in cil_reset_level()
Dcil.c1262 static int cil_cats_to_ebitmap(struct cil_cats *cats, struct ebitmap* cats_ebitmap) in cil_cats_to_ebitmap() argument
1271 if (cats == NULL) { in cil_cats_to_ebitmap()
1276 cil_list_for_each(i, cats->datum_expr) { in cil_cats_to_ebitmap()
1280 cil_list_for_each(j, cs->cats->datum_expr) { in cil_cats_to_ebitmap()
1316 rc = cil_cats_to_ebitmap(low->cats, &elow); in cil_level_equals()
1321 rc = cil_cats_to_ebitmap(high->cats, &ehigh); in cil_level_equals()
1337 struct cil_cats *cats = lvl->cats; in __cil_level_strlen() local
1346 if (cats && cats->datum_expr != NULL) { in __cil_level_strlen()
1348 cil_list_for_each(item, cats->datum_expr) { in __cil_level_strlen()
1389 struct cil_cats *cats = lvl->cats; in __cil_level_to_string() local
[all …]
Dcil_write_ast.c264 static int cil_unfill_cats(struct cil_cats *cats, char **out_str) { in cil_unfill_cats() argument
265 return cil_unfill_expr(cats->str_expr, out_str, 0); in cil_unfill_cats()
271 char *sens, *cats = NULL; in cil_unfill_level() local
274 if (lvl->cats != NULL) { in cil_unfill_level()
275 rc = cil_unfill_cats(lvl->cats, &cats); in cil_unfill_level()
278 len += strlen(cats) + 1; in cil_unfill_level()
281 if (cats == NULL) { in cil_unfill_level()
288 if (sprintf(*out_str, "(%s %s)", sens, cats) < 0) { in cil_unfill_level()
296 free(cats); in cil_unfill_level()
883 char *cats = NULL; in cil_write_senscat() local
[all …]
Dcil_post.c87 if (a->cats != b->cats) { in level_compare()
88 return cats_compare(a->cats, b->cats); in level_compare()
1082 static int __evaluate_cat_expression(struct cil_cats *cats, struct cil_db *db) in __evaluate_cat_expression() argument
1089 if (cats->evaluated == CIL_TRUE) { in __evaluate_cat_expression()
1093 if (cil_verify_is_list(cats->datum_expr, CIL_CAT)) { in __evaluate_cat_expression()
1098 rc = __cil_expr_to_bitmap(cats->datum_expr, &bitmap, db->num_cats, db); in __evaluate_cat_expression()
1115 cil_list_destroy(&cats->datum_expr, CIL_FALSE); in __evaluate_cat_expression()
1116 cats->datum_expr = new; in __evaluate_cat_expression()
1118 cats->evaluated = CIL_TRUE; in __evaluate_cat_expression()
1136 if (catset->cats->evaluated == CIL_FALSE) { in __cil_cat_to_bitmap()
[all …]
Dcil_verify.c447 int __cil_is_cat_in_cats(struct cil_cat *cat, struct cil_cats *cats) in __cil_is_cat_in_cats() argument
451 cil_list_for_each(i, cats->datum_expr) { in __cil_is_cat_in_cats()
462 int __cil_verify_cat_in_cats(struct cil_cat *cat, struct cil_cats *cats) in __cil_verify_cat_in_cats() argument
464 if (__cil_is_cat_in_cats(cat, cats) != CIL_TRUE) { in __cil_verify_cat_in_cats()
472 int __cil_verify_cats_associated_with_sens(struct cil_sens *sens, struct cil_cats *cats) in __cil_verify_cats_associated_with_sens() argument
477 if (!cats) { in __cil_verify_cats_associated_with_sens()
486 cil_list_for_each(i, cats->datum_expr) { in __cil_verify_cats_associated_with_sens()
572 rc = __cil_verify_levelrange_cats(lr->low->cats, lr->high->cats); in __cil_verify_levelrange()
577 rc = __cil_verify_cats_associated_with_sens(lr->low->sens, lr->low->cats); in __cil_verify_levelrange()
583 rc = __cil_verify_cats_associated_with_sens(lr->high->sens, lr->high->cats); in __cil_verify_levelrange()
Dcil_internal.h683 struct cil_cats *cats; member
692 struct cil_cats *cats; member
699 struct cil_cats *cats; member
1028 void cil_cats_init(struct cil_cats **cats);
Dcil_tree.c534 void cil_tree_print_cats(struct cil_cats *cats) in cil_tree_print_cats() argument
536 cil_tree_print_expr(cats->datum_expr, cats->str_expr); in cil_tree_print_cats()
602 cil_tree_print_cats(level->cats); in cil_tree_print_level()
1273 cil_tree_print_cats(catset->cats); in cil_tree_print_node()
1304 cil_tree_print_cats(senscat->cats); in cil_tree_print_node()
Dcil_copy_ast.c941 cil_copy_cats(db, orig->cats, &new->cats); in cil_copy_catset()
957 cil_copy_cats(db, orig->cats, &new->cats); in cil_copy_senscat()
1000 if (orig->cats != NULL) { in cil_copy_fill_level()
1001 cil_copy_cats(db, orig->cats, &(*new)->cats); in cil_copy_fill_level()
Dcil_build_ast.h227 int cil_fill_cats(struct cil_tree_node *curr, struct cil_cats **cats);
228 void cil_destroy_cats(struct cil_cats *cats);
Dcil_policy.c195 static void cil_cats_to_policy(FILE *out, struct cil_cats *cats) in cil_cats_to_policy() argument
201 cil_list_for_each(i1, cats->datum_expr) { in cil_cats_to_policy()
244 if (level->cats != NULL) { in cil_level_to_policy()
246 cil_cats_to_policy(out, level->cats); in cil_level_to_policy()
256 if (l1->sens == l2->sens && (l1->cats == NULL && l2->cats == NULL)) in cil_levels_simple_and_equal()
Dcil_resolve_ast.c1630 int cil_resolve_cats(struct cil_tree_node *current, struct cil_cats *cats, void *extra_args) in cil_resolve_cats() argument
1634 rc = cil_resolve_expr(CIL_CATSET, cats->str_expr, &cats->datum_expr, current, extra_args); in cil_resolve_cats()
1650 rc = cil_resolve_cats(current, catset->cats, extra_args); in cil_resolve_catset()
1655 rc = cil_verify_no_self_reference((struct cil_symtab_datum *)catset, catset->cats->datum_expr); in cil_resolve_catset()
1657 cil_list_destroy(&catset->cats->datum_expr, CIL_FALSE); in cil_resolve_catset()
1678 rc = cil_resolve_cats(current, senscat->cats, extra_args); in cil_resolve_senscat()
1689 cil_list_append(sens->cats_list, CIL_CAT, senscat->cats); in cil_resolve_senscat()
1710 if (level->cats != NULL) { in cil_resolve_level()
1711 rc = cil_resolve_cats(current, level->cats, extra_args); in cil_resolve_level()
2853 rc = cil_fill_cats(pc, &catset->cats); in cil_resolve_call1()
Dcil_build_ast.c3616 rc = cil_fill_cats(parse_current->next->next, &catset->cats); in cil_gen_catset()
3638 cil_destroy_cats(catset->cats); in cil_destroy_catset()
3788 rc = cil_fill_cats(parse_current->next->next, &senscat->cats); in cil_gen_senscat()
3810 cil_destroy_cats(senscat->cats); in cil_destroy_senscat()
3868 cil_destroy_cats(level->cats); in cil_destroy_level()
5719 rc = cil_fill_cats(curr->next, &level->cats); in cil_fill_level()
5732 int cil_fill_cats(struct cil_tree_node *curr, struct cil_cats **cats) in cil_fill_cats() argument
5736 cil_cats_init(cats); in cil_fill_cats()
5738 rc = cil_gen_expr(curr, CIL_CAT, &(*cats)->str_expr); in cil_fill_cats()
5740 cil_destroy_cats(*cats); in cil_fill_cats()
[all …]
/external/python/cpython2/Tools/unicode/
Dmkstringprep.py6 def gen_category(cats): argument
8 if unicodedata.category(unichr(i)) in cats:
11 def gen_bidirectional(cats): argument
13 if unicodedata.bidirectional(unichr(i)) in cats:
/external/python/cpython3/Tools/unicode/
Dmkstringprep.py7 def gen_category(cats): argument
9 if unicodedata.category(chr(i)) in cats:
12 def gen_bidirectional(cats): argument
14 if unicodedata.bidirectional(chr(i)) in cats:
/external/libmojo/third_party/jinja2/
D_stringdefs.py81 cats = ['Cc', 'Cf', 'Cn', 'Co', 'Cs', 'Ll', 'Lm', 'Lo', 'Lt', 'Lu', 'Mc', 'Me', 'Mn', 'Nd', 'Nl', '… variable
91 newcats = cats[:]
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/tests/yui/out/
Dbug2527974.out1 body{yo:cats}ul[id$=foo] label:hover{yo:yo}
Dbug2527974.out.b1 …LastChangedDate: 2009-05-27 17:41:02 +0100 (Wed, 27 May 2009) $ */body{yo:cats}ul[id$=foo] label:h…
/external/chromium-trace/catapult/common/py_vulcanize/third_party/rcssmin/tests/yui/
Dbug2527974.css.min1 …LastChangedDate: 2009-05-27 17:41:02 +0100 (Wed, 27 May 2009) $ */body{yo:cats}ul[id$=foo] label:h…
Dbug2527974.css8 yo: cats;
/external/selinux/libsepol/src/
Dkernel_to_conf.c957 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
964 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_len()
965 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_len()
973 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_len()
987 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
996 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1006 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_to_str()
1007 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_to_str()
1015 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_to_str()
1049 char *name, *cats; in write_level_rules_to_conf() local
[all …]
Dkernel_to_cil.c972 static size_t cats_ebitmap_len(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_len() argument
979 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_len()
980 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_len()
988 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_len()
1010 static char *cats_ebitmap_to_str(struct ebitmap *cats, char **val_to_name) in cats_ebitmap_to_str() argument
1018 remaining = (int)cats_ebitmap_len(cats, val_to_name); in cats_ebitmap_to_str()
1030 ebitmap_for_each_bit(cats, node, i) { in cats_ebitmap_to_str()
1031 if (!ebitmap_get_bit(cats, i)) in cats_ebitmap_to_str()
1039 if (ebitmap_get_bit(cats, i+1)) in cats_ebitmap_to_str()
1071 char *name, *cats; in write_sensitivitycategory_rules_to_cil() local
[all …]
/external/llvm/lib/Support/
Dregcomp.c1298 cat_t *cats = g->categories; in categorize() local
1308 if (cats[c] == 0 && isinsets(g, c)) { in categorize()
1310 cats[c] = cat; in categorize()
1312 if (cats[c2] == 0 && samesets(g, c, c2)) in categorize()
1313 cats[c2] = cat; in categorize()
/external/swiftshader/third_party/llvm-subzero/lib/Support/
Dregcomp.c1298 cat_t *cats = g->categories; in categorize() local
1308 if (cats[c] == 0 && isinsets(g, c)) { in categorize()
1310 cats[c] = cat; in categorize()
1312 if (cats[c2] == 0 && samesets(g, c, c2)) in categorize()
1313 cats[c2] = cat; in categorize()
/external/swiftshader/third_party/LLVM/lib/Support/
Dregcomp.c1260 cat_t *cats = g->categories; in categorize() local
1270 if (cats[c] == 0 && isinsets(g, c)) { in categorize()
1272 cats[c] = cat; in categorize()
1274 if (cats[c2] == 0 && samesets(g, c, c2)) in categorize()
1275 cats[c2] = cat; in categorize()

12