/external/sepolicy/tools/sepolicy-analyze/ |
H A D | neverallow.c | 193 class_perm_node_t *classperms = NULL, *node = NULL; local 261 node->next = classperms; 262 classperms = node; 269 if (warn && !classperms) 329 for (node = classperms; node; node = node->next) 334 for (node = classperms; node; node = node->next) { 353 for (node = classperms; node; node = node->next) 358 for (node = classperms; node; node = node->next) 363 *perms = classperms;
|
/external/selinux/libsepol/cil/src/ |
H A D | cil_reset_ast.c | 37 cil_reset_classperms_list(perm->classperms); 55 cil_reset_classperms_list(cp->classperms); 82 cil_reset_classperms_list(cps->classperms); 87 cil_reset_classperms_list(cm->classperms); 173 cil_reset_classperms_list(rule->classperms); 349 cil_reset_classperms_list(con->classperms);
|
H A D | cil_internal.h | 336 struct cil_list *classperms; /* Only used for map perms */ member in struct:cil_perm 365 struct cil_list *classperms; member in struct:cil_classpermission 370 struct cil_list *classperms; member in struct:cil_classpermissionset 376 struct cil_list *classperms; member in struct:cil_classmapping 552 struct cil_list *classperms; member in struct:cil_avrule 769 struct cil_list *classperms; member in struct:cil_constrain
|
H A D | cil_copy_ast.c | 226 cil_copy_classperms_list(orig->classperms, &new->classperms); 285 cil_copy_classperms_list(orig->classperms, &new->classperms); 299 cil_copy_classperms_list(orig->classperms, &new->classperms); 756 cil_copy_classperms_list(orig->classperms, &new->classperms); 1304 cil_copy_classperms_list(orig->classperms, &new->classperms); [all...] |
H A D | cil_policy.c | 505 void cil_constrain_to_policy_helper(FILE **file_arr, char *kind, struct cil_list *classperms, struct cil_list *expr) argument 509 cil_list_for_each(curr, classperms) { 522 cil_constrain_to_policy_helper(file_arr, kind, cmp->classperms, expr); 528 cil_constrain_to_policy_helper(file_arr, kind, cp->classperms, expr); 543 cil_constrain_to_policy_helper(file_arr, kind, cons->classperms, cons->datum_expr); 546 void cil_avrule_to_policy_helper(FILE **file_arr, uint32_t file_index, const char *kind, const char *src, const char *tgt, struct cil_list *classperms) argument 550 cil_list_for_each(i, classperms) { 561 cil_avrule_to_policy_helper(file_arr, file_index, kind, src, tgt, cmp->classperms); 568 cil_list_for_each(j, cp->classperms) { 601 cil_avrule_to_policy_helper(file_arr, file_index, kind_str, src_str, tgt_str, rule->classperms); [all...] |
H A D | cil_verify.c | 1437 static int __cil_verify_classperms(struct cil_list *classperms, struct cil_symtab_datum *orig) argument 1442 cil_list_for_each(curr, classperms) { 1455 rc = __cil_verify_classperms(cmp->classperms, orig); 1468 rc = __cil_verify_classperms(cp->classperms, orig); 1486 rc = __cil_verify_classperms(cp->classperms, &cp->datum); 1507 rc = __cil_verify_classperms(cmp->classperms, &cmp->datum);
|
H A D | cil_binary.c | 236 static void __add_classes_from_classperms_list(struct cil_list *classperms, struct cil_list *class_list) argument 240 cil_list_for_each(curr, classperms) { 249 __add_classes_from_classperms_list(cmp->classperms, class_list); 255 __add_classes_from_classperms_list(cp->classperms, class_list); 265 __add_classes_from_classperms_list(cmp->classperms, class_list); 1459 int __cil_avrule_expand(policydb_t *pdb, uint16_t kind, struct cil_symtab_datum *src, struct cil_symtab_datum *tgt, struct cil_list *classperms, struct cil_list *neverallows, cond_node_t *cond_node, enum cil_flavor cond_flavor) argument 1464 cil_list_for_each(curr, classperms) { 1476 rc = __cil_avrule_expand(pdb, kind, src, tgt, cmp->classperms, neverallows, cond_node, cond_flavor); 1485 rc = __cil_avrule_expand(pdb, kind, src, tgt, cp->classperms, neverallows, cond_node, cond_flavor); 1504 struct cil_list *classperms local 2325 cil_constrain_expand(policydb_t *pdb, const struct cil_db *db, struct cil_list *classperms, struct cil_list *expr) argument [all...] |
H A D | cil_post.c | 1449 static int __evaluate_classperms_list(struct cil_list *classperms, struct cil_db *db) argument 1454 cil_list_for_each(curr, classperms) { 1466 rc = __evaluate_classperms_list(cmp->classperms, db); 1475 rc = __evaluate_classperms_list(cp->classperms, db); 1498 int rc = __evaluate_classperms_list(cmp->classperms, map_args->db); 1543 rc = __evaluate_classperms_list(cp->classperms, db); 1551 rc = __evaluate_classperms_list(avrule->classperms, db); 1560 rc = __evaluate_classperms_list(constrain->classperms, db);
|
H A D | cil_resolve_ast.c | 191 rc = cil_resolve_classperms_list(current, cp_set->set->classperms, extra_args); 241 rc = cil_resolve_classperms_list(current, cps->classperms, extra_args); 248 if (cp->classperms == NULL) { 249 cil_list_init(&cp->classperms, CIL_CLASSPERMS); 252 cil_list_for_each(curr, cps->classperms) { 253 cil_list_append(cp->classperms, curr->flavor, curr->data); 310 rc = cil_resolve_classperms_list(current, rule->classperms, extra_args); 714 rc = cil_resolve_classperms_list(current, mapping->classperms, extra_args); 719 if (mp->classperms == NULL) { 720 cil_list_init(&mp->classperms, CIL_CLASSPERM [all...] |
H A D | cil_tree.c | 576 cil_tree_print_classperms_list(cons->classperms); 853 cil_tree_print_classperms_list(cps->classperms); 874 if (cmp->classperms == NULL) { 881 cil_tree_print_classperms_list(cmp->classperms); 894 cil_tree_print_classperms_list(mapping->classperms); 1076 cil_tree_print_classperms_list(rule->classperms);
|
H A D | cil.c | 2078 (*avrule)->classperms = NULL; 2246 (*constrain)->classperms = NULL; 2275 (*perm)->classperms = NULL; 2283 (*cp)->classperms = NULL; 2291 (*cps)->classperms = NULL; 2316 (*mapping)->classperms = NULL;
|
H A D | cil_build_ast.c | 488 cil_list_destroy(&perm->classperms, CIL_FALSE); 732 cil_list_destroy(&cp->classperms, CIL_FALSE); 735 cil_destroy_classperms_list(&cp->classperms); 769 rc = cil_fill_classperms_list(parse_current->next->next, &cps->classperms); 792 cil_destroy_classperms_list(&cps->classperms); 866 rc = cil_fill_classperms_list(parse_current->next->next->next, &mapping->classperms); 889 cil_destroy_classperms_list(&mapping->classperms); 1878 rc = cil_fill_classperms_list(parse_current->next->next->next, &rule->classperms); 1901 cil_destroy_classperms_list(&rule->classperms); 3613 rc = cil_fill_classperms_list(parse_current->next, &cons->classperms); [all...] |
/external/selinux/libsepol/src/ |
H A D | module_to_cil.c | 541 static int avrule_to_cil(int indent, struct policydb *pdb, uint32_t type, const char *src, const char *tgt, const struct class_perm_node *classperms) argument 579 for (classperm = classperms; classperm != NULL; classperm = classperm->next) {
|