HomeSort by relevance Sort by last modified time
    Searched refs:cil_list (Results 1 - 25 of 25) sorted by null

  /external/selinux/libsepol/cil/src/
cil_find.h 32 #include "cil_list.h"
37 int cil_find_matching_avrule_in_ast(struct cil_tree_node *current, enum cil_flavor flavor, void *target, struct cil_list *matching, int match_self);
38 struct cil_list *cil_expand_class(struct cil_class *class);
cil_list.h 35 struct cil_list { struct
51 void cil_list_init(struct cil_list **list, enum cil_flavor flavor);
52 void cil_list_destroy (struct cil_list **list, unsigned destroy_data);
55 void cil_list_append(struct cil_list *list, enum cil_flavor flavor, void *data);
56 void cil_list_prepend(struct cil_list *list, enum cil_flavor flavor, void *data);
57 void cil_list_remove(struct cil_list *list, enum cil_flavor flavor, void *data, unsigned destroy_data);
58 struct cil_list_item *cil_list_insert(struct cil_list *list, struct cil_list_item *curr, enum cil_flavor flavor, void *data);
59 void cil_list_append_item(struct cil_list *list, struct cil_list_item *item);
60 void cil_list_prepend_item(struct cil_list *list, struct cil_list_item *item);
61 int cil_list_contains(struct cil_list *list, void *data)
    [all...]
cil_internal.h 274 struct cil_list *sidorder;
275 struct cil_list *classorder;
276 struct cil_list *catorder;
277 struct cil_list *sensitivityorder;
289 struct cil_list *userprefixes;
290 struct cil_list *selinuxusers;
291 struct cil_list *names;
325 struct cil_list *bi_nodes;
350 struct cil_list *classperms; /* Only used for map perms */
362 struct cil_list *class_list_str
    [all...]
cil_policy.h 34 #include "cil_list.h"
39 struct cil_list *values;
cil_list.c 47 void cil_list_init(struct cil_list **list, enum cil_flavor flavor)
49 struct cil_list *new_list = cil_malloc(sizeof(*new_list));
56 void cil_list_destroy(struct cil_list **list, unsigned destroy_data)
67 if (item->flavor == CIL_LIST) {
68 cil_list_destroy((struct cil_list**)&(item->data), destroy_data);
98 void cil_list_append(struct cil_list *list, enum cil_flavor flavor, void *data)
120 void cil_list_prepend(struct cil_list *list, enum cil_flavor flavor, void *data)
142 struct cil_list_item *cil_list_insert(struct cil_list *list, struct cil_list_item *curr, enum cil_flavor flavor, void *data)
171 void cil_list_append_item(struct cil_list *list, struct cil_list_item *item)
198 void cil_list_prepend_item(struct cil_list *list, struct cil_list_item *item
    [all...]
cil_verify.h 38 #include "cil_list.h"
64 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list);
65 int __cil_verify_ranges(struct cil_list *list);
68 int __cil_verify_initsids(struct cil_list *sids);
cil_resolve_ast.h 41 int cil_resolve_classperms_list(struct cil_tree_node *current, struct cil_list *cp_list, void *extra_args);
68 int cil_resolve_cat_list(struct cil_tree_node *current, struct cil_list *cat_list, struct cil_list *res_cat_list, void *extra_args);
93 int cil_resolve_expr(enum cil_flavor expr_type, struct cil_list *str_expr, struct cil_list **datum_expr, struct cil_tree_node *parent, void *extra_args);
95 int cil_evaluate_expr(struct cil_list *datum_expr, uint16_t *result);
cil_find.c 34 #include "cil_list.h"
41 struct cil_list *matching;
159 static int __cil_classperms_list_match_any(struct cil_classperms *cp1, struct cil_list *cpl2)
188 static int cil_classperms_list_match_any(struct cil_list *cpl1, struct cil_list *cpl2)
217 static void __add_classes_from_classperms_list(struct cil_list *classperms, struct cil_list *class_list)
243 struct cil_list *class_list = args;
251 struct cil_list *cil_expand_class(struct cil_class *class)
253 struct cil_list *class_list
    [all...]
cil_copy_ast.h 37 void cil_copy_list(struct cil_list *orig, struct cil_list **copy);
38 int cil_copy_expr(struct cil_db *db, struct cil_list *orig, struct cil_list **new);
51 void cil_copy_classperms_list(struct cil_list *orig, struct cil_list **new);
108 int cil_copy_exrp(struct cil_db *db, struct cil_list *orig, struct cil_list **new);
cil_symtab.h 39 struct cil_list *nodes;
cil_policy.c 45 #include "cil_list.h"
73 struct cil_list *users;
74 struct cil_list *sens;
75 struct cil_list *cats;
85 int cil_expr_to_policy(FILE **file_arr, uint32_t file_index, struct cil_list *expr);
299 int cil_multimap_insert(struct cil_list *list, struct cil_symtab_datum *key, struct cil_symtab_datum *value, uint32_t key_flavor, uint32_t val_flavor)
337 int cil_userrole_to_policy(FILE **file_arr, struct cil_list *userroles)
365 int cil_cat_to_policy(FILE **file_arr, struct cil_list *cats)
391 int cil_sens_to_policy(FILE **file_arr, struct cil_list *sens)
454 void cil_perms_to_policy(FILE **file_arr, uint32_t file_index, struct cil_list *list
    [all...]
cil_build_ast.h 38 #include "cil_list.h"
41 int cil_parse_to_list(struct cil_tree_node *parse_cl_head, struct cil_list *ast_cl, enum cil_flavor flavor);
58 int cil_fill_perms(struct cil_tree_node *start_perm, struct cil_list **perm_strs);
63 int cil_fill_classperms_list(struct cil_tree_node *parse_current, struct cil_list **expr_list);
64 void cil_destroy_classperms_list(struct cil_list **cp_list);
127 int cil_gen_constrain_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **stack);
128 int cil_gen_expr(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **stack);
153 int cil_set_to_list(struct cil_tree_node *parse_current, struct cil_list *ast_cl);
cil_resolve_ast.c 41 #include "cil_list.h"
59 struct cil_list *sidorder_lists;
60 struct cil_list *classorder_lists;
61 struct cil_list *unordered_classorder_lists;
62 struct cil_list *catorder_lists;
63 struct cil_list *sensitivityorder_lists;
64 struct cil_list *in_list;
109 static int __cil_resolve_perms(symtab_t *class_symtab, symtab_t *common_symtab, struct cil_list *perm_strs, struct cil_list **perm_datums)
117 if (curr->flavor == CIL_LIST) {
    [all...]
cil_binary.c 64 struct cil_list *neverallows;
1062 struct cil_list *class_list;
1122 struct cil_list *class_list;
    [all...]
cil_copy_ast.c 38 #include "cil_list.h"
49 void cil_copy_list(struct cil_list *data, struct cil_list **copy)
51 struct cil_list *new;
61 case CIL_LIST: {
62 struct cil_list *new_sub = NULL;
63 cil_copy_list((struct cil_list*)orig_item->data, &new_sub);
64 cil_list_append(new, CIL_LIST, new_sub);
194 void cil_copy_classperms_list(struct cil_list *orig, struct cil_list **new
    [all...]
cil_post.c 44 #include "cil_list.h"
50 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db);
51 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct cil_db *db);
53 static int cil_verify_is_list(struct cil_list *list, enum cil_flavor flavor)
59 case CIL_LIST:
835 struct cil_list *new;
1023 } else if (curr->flavor == CIL_LIST) {
1024 struct cil_list *l = curr->data;
1039 static int __cil_expr_to_bitmap(struct cil_list *expr, ebitmap_t *out, int max, struct cil_db *db)
1158 static int __cil_expr_list_to_bitmap(struct cil_list *expr_list, ebitmap_t *out, int max, struct cil_db *db
    [all...]
cil_verify.c 45 #include "cil_list.h"
213 if (r_flavor == CIL_STRING || r_flavor == CIL_LIST) {
318 int cil_verify_no_self_reference(struct cil_symtab_datum *datum, struct cil_list *datum_list)
329 } else if (i->flavor == CIL_LIST) {
340 int __cil_verify_ranges(struct cil_list *list)
352 if (curr->flavor == CIL_LIST) {
353 range = ((struct cil_list*)curr->data)->head;
419 int __cil_verify_initsids(struct cil_list *sids)
736 struct cil_list *sensitivityorder = db->sensitivityorder;
1233 struct cil_list *classes = NULL
    [all...]
cil_reset_ast.c 4 #include "cil_list.h"
7 static inline void cil_reset_classperms_list(struct cil_list *cp_list);
63 static inline void cil_reset_classperms_list(struct cil_list *cp_list)
111 /* we don't want to destroy the expression stacks (cil_list) inside
147 /* we don't want to destroy the expression stacks (cil_list) inside
176 /* we don't want to destroy the expression stacks (cil_list) inside
cil_tree.c 40 #include "cil_list.h"
248 static int cil_expr_to_string(struct cil_list *expr, char **out)
261 case CIL_LIST:
417 void cil_tree_print_expr(struct cil_list *datum_expr, struct cil_list *str_expr)
453 void cil_tree_print_perm_strs(struct cil_list *perm_strs)
491 void cil_tree_print_classperms_list(struct cil_list *cp_list)
1219 if (sens->flavor == CIL_LIST) {
1222 cil_list_for_each(sub, (struct cil_list*)sens->data) {
    [all...]
cil_build_ast.c 42 #include "cil_list.h"
58 int cil_fill_list(struct cil_tree_node *current, enum cil_flavor flavor, struct cil_list **list)
121 struct cil_list *param_list = ((struct cil_macro*)ast_node->parent->data)->params;
554 int cil_fill_perms(struct cil_tree_node *start_perm, struct cil_list **perms)
640 int cil_fill_classperms_list(struct cil_tree_node *parse_current, struct cil_list **cp_list)
689 void cil_destroy_classperms_list(struct cil_list **cp_list)
1285 /* we don't want to destroy the expression stacks (cil_list) inside
    [all...]
  /external/selinux/libsepol/cil/test/unit/
test_cil_list.c 63 struct cil_list *test_class_list;
91 struct cil_list *test_class_list;
127 struct cil_list *test_class_list;
169 struct cil_list *test_class_list = NULL;
196 struct cil_list *test_class_list;
220 struct cil_list *test_class_list;
248 struct cil_list *test_class_list;
277 struct cil_list *test_class_list;
311 struct cil_list *test_class_list = NULL;
338 struct cil_list *test_class_list
    [all...]
test_cil_copy_ast.c 60 struct cil_list *cil_l;
67 struct cil_list *copy_list;
82 struct cil_list *cil_l;
89 struct cil_list *copy_list;
96 CuAssertStrEquals(tc, ((struct cil_list *)copy_list->head->next->next->data)->head->data, ((struct cil_list *)cil_l->head->next->next->data)->head->data);
99 CuAssertIntEquals(tc, ((struct cil_list *)copy_list->head->next->next->data)->head->flavor, ((struct cil_list *)cil_l->head->next->next->data)->head->flavor);
106 struct cil_list *cil_l;
113 struct cil_list *copy_list
    [all...]
test_cil_resolve_ast.c 616 struct cil_list *test_cat_list;
642 struct cil_list *test_cat_list;
669 struct cil_list *test_cat_list = NULL;
698 struct cil_list *test_cat_list;
725 struct cil_list *test_cat_list;
759 struct cil_list *test_cat_list;
    [all...]
test_cil_build_ast.c 158 struct cil_list *cil_l = NULL;
159 struct cil_list *sub_list = NULL;
165 sub_list = (struct cil_list *)cil_l->head->next->next->data;
174 struct cil_list *cil_l = NULL;
183 struct cil_list *cil_l;
    [all...]
  /external/selinux/libsepol/
Android.mk 52 cil/src/cil_list.c \

Completed in 423 milliseconds