/external/selinux/libsepol/cil/src/ |
D | cil_tree.c | 132 cil_log(lvl, " at %s:%d", path, node->line); in cil_tree_log() 138 cil_log(lvl," from %s:%d", path, hll_line); in cil_tree_log() 145 cil_log(lvl,"\n"); in cil_tree_log() 407 cil_log(CIL_ERR, "Unknown operator in expression\n"); in cil_expr_to_string() 480 cil_log(CIL_ERR, "Unknown operand in expression\n"); in cil_expr_to_string() 489 cil_log(CIL_ERR, "Unknown flavor in expression\n"); in cil_expr_to_string() 507 cil_log(CIL_INFO, "("); in cil_tree_print_expr() 515 cil_log(CIL_INFO, "%s)", expr_str); in cil_tree_print_expr() 523 cil_log(CIL_INFO, " %s", ((struct cil_perm *)current_perm->data)->datum.name); in cil_tree_print_perms_list() 525 cil_log(CIL_INFO, " %s", ((struct cil_perm*)current_perm->data)->datum.name); in cil_tree_print_perms_list() [all …]
|
D | cil_verify.c | 57 cil_log(CIL_ERR, "Name is NULL\n"); in __cil_verify_name() 63 cil_log(CIL_ERR, "Name length greater than max name length of %d", in __cil_verify_name() 70 cil_log(CIL_ERR, "First character in %s is not a letter\n", name); in __cil_verify_name() 76 cil_log(CIL_ERR, "Invalid character \"%c\" in %s\n", name[i], name); in __cil_verify_name() 83 cil_log(CIL_ERR, "Invalid name\n"); in __cil_verify_name() 149 cil_log(CIL_ERR, "Invalid syntax\n"); in __cil_verify_syntax() 176 cil_log(CIL_ERR,"Invalid operator (%s) for set expression\n", (char*)current->data); in cil_verify_expr_syntax() 182 …cil_log(CIL_ERR,"Invalid operator (%s) for boolean or tunable expression\n", (char*)current->data); in cil_verify_expr_syntax() 190 …cil_log(CIL_ERR,"Operator (%s) only valid for catset and permissionx expression\n", (char*)current… in cil_verify_expr_syntax() 202 cil_log(CIL_ERR,"Unexpected value (%s) for expression operator\n", (char*)current->data); in cil_verify_expr_syntax() [all …]
|
D | cil_parser.c | 113 cil_log(CIL_ERR, "Line mark end without start\n"); in add_hll_linemark() 134 cil_log(CIL_ERR, "Invalid line mark syntax\n"); in add_hll_linemark() 140 cil_log(CIL_ERR, "Invalid line mark syntax\n"); in add_hll_linemark() 145 cil_log(CIL_ERR, "Problem parsing line number for line mark\n"); in add_hll_linemark() 153 cil_log(CIL_ERR, "Invalid line mark syntax\n"); in add_hll_linemark() 170 cil_log(CIL_ERR, "Invalid line mark syntax\n"); in add_hll_linemark() 177 cil_log(CIL_ERR, "Problem with high-level line mark at line %d of %s\n", tok.line, path); in add_hll_linemark() 246 cil_log(CIL_ERR, "Close parenthesis without matching open at line %d of %s\n", tok.line, path); in cil_parser() 257 cil_log(CIL_ERR, "Symbol not inside parenthesis at line %d of %s\n", tok.line, path); in cil_parser() 283 cil_log(CIL_ERR, "Open parenthesis without matching close at line %d of %s\n", tok.line, path); in cil_parser() [all …]
|
D | android.c | 87 cil_log(CIL_ERR, "%s unsupported statement in attributee policy (line %d)\n", in __extract_attributees_helper() 112 cil_log(CIL_ERR, "%s unsupported statement in attributee policy (line %d)\n", in __extract_attributees_helper() 117 cil_log(CIL_ERR, "%s unsupported statement in attributee policy (line %d)\n", in __extract_attributees_helper() 123 cil_log(CIL_ERR, "%s unsupported statement in attributee policy (line %d)\n", in __extract_attributees_helper() 294 cil_log(CIL_ERR, "AST already resolved. Not yet supported.\n"); in cil_attrib_type_expr() 314 cil_log(CIL_ERR, "AST already resolved. Not yet supported.\n"); in cil_attrib_check_context() 365 cil_log(CIL_ERR, "AST already resolved. !!! Not yet supported.\n"); in cil_attrib_roletype() 385 cil_log(CIL_ERR, "AST already resolved. !!! Not yet supported.\n"); in cil_attrib_type() 406 cil_log(CIL_ERR, "AST already resolved. ### Not yet supported.\n"); in cil_attrib_typepermissive() 420 cil_log(CIL_ERR, "AST already resolved. Not yet supported (line %d).\n", in cil_attrib_typeattribute() [all …]
|
D | cil_post.c | 867 cil_log(CIL_ERR, "Failed to expand type attribute to bitmap\n"); in __evaluate_type_expression() 893 cil_log(CIL_ERR, "Failed to set type bit\n"); in __cil_type_to_bitmap() 900 cil_log(CIL_ERR, "Failed to set type bit\n"); in __cil_type_to_bitmap() 919 cil_log(CIL_ERR, "Failed to expand user attribute to bitmap\n"); in __evaluate_user_expression() 948 cil_log(CIL_ERR, "Failed to set user bit\n"); in __cil_user_to_bitmap() 967 cil_log(CIL_ERR, "Failed to expand role attribute to bitmap\n"); in __evaluate_role_expression() 992 cil_log(CIL_ERR, "Failed to set role bit\n"); in __cil_role_to_bitmap() 1013 cil_log(CIL_ERR, "Failed to expand permissionx expression\n"); in __evaluate_permissionx_expression() 1028 cil_log(CIL_ERR, "permissionx value %s not valid number\n", permx_str); in __cil_permx_str_to_int() 1032 cil_log(CIL_ERR, "permissionx value %s must be between 0x0000 and 0xFFFF\n", permx_str); in __cil_permx_str_to_int() [all …]
|
D | cil_write_ast.c | 69 cil_log(CIL_ERR, "OOM. Unable to copy string.\n"); in __cil_unfill_expr_helper() 79 cil_log(CIL_ERR, "OOM. Unable to copy string.\n"); in __cil_unfill_expr_helper() 125 cil_log(CIL_ERR, "Unknown operator in expression: %d\n", op_flavor); in __cil_unfill_expr_helper() 204 cil_log(CIL_ERR, "Unknown operand in expression\n"); in __cil_unfill_expr_helper() 210 cil_log(CIL_ERR, "OOM. Unable to copy string.\n"); in __cil_unfill_expr_helper() 219 cil_log(CIL_ERR, "Unknown flavor in expression\n"); in __cil_unfill_expr_helper() 283 cil_log(CIL_ERR, "Error unpacking and writing level\n"); in cil_unfill_level() 289 cil_log(CIL_ERR, "Error unpacking and writing level\n"); in cil_unfill_level() 307 cil_log(CIL_ERR, "OOM. Unable to copy level string.\n"); in cil_unfill_levelrange() 319 cil_log(CIL_ERR, "OOM. Unable to copy level string.\n"); in cil_unfill_levelrange() [all …]
|
D | cil_binary.c | 88 cil_log(CIL_INFO, "Failed to find user %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_user_datum() 99 cil_log(CIL_INFO, "Failed to find role %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_role_datum() 110 cil_log(CIL_INFO, "Failed to find type %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_type_datum() 121 cil_log(CIL_INFO, "Failed to find class %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_class_datum() 132 cil_log(CIL_INFO, "Failed to find category %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_cat_datum() 143 cil_log(CIL_INFO, "Failed to find level %s in sepol hashtab\n", datum->fqn); in __cil_get_sepol_level_datum() 159 cil_log(CIL_ERR, "Failed to copy user bits\n"); in __cil_expand_user() 166 cil_log(CIL_ERR, "Failed to set user bit\n"); in __cil_expand_user() 185 cil_log(CIL_ERR, "Failed to copy role bits\n"); in __cil_expand_role() 192 cil_log(CIL_ERR, "Failed to set role bit\n"); in __cil_expand_role() [all …]
|
D | cil_resolve_ast.c | 121 cil_log(CIL_ERR, "Failed to resolve permission list\n"); in __cil_resolve_perms() 136 cil_log(CIL_ERR, "Failed to resolve permission %s for map class\n", (char*)curr->data); in __cil_resolve_perms() 139 cil_log(CIL_WARN, "Failed to resolve permission %s\n", (char*)curr->data); in __cil_resolve_perms() 281 cil_log(CIL_WARN, "Conflicting use of expandtypeattribute. " in cil_type_used() 404 cil_log(CIL_ERR, "Type rule result must be a type [%d]\n",result_node->flavor); in cil_resolve_type_rule() 433 cil_log(CIL_ERR, "Attribute type not an attribute\n"); in cil_resolve_typeattributeset() 482 cil_log(CIL_ERR, "Attribute type not an attribute\n"); in cil_resolve_expandtypeattribute() 514 cil_log(CIL_ERR, "%s is not an alias\n",alias_datum->name); in cil_resolve_aliasactual() 525 …cil_log(CIL_ERR, "%s is a %s, but aliases a %s\n", alias_datum->name, cil_node_to_string(NODE(alia… in cil_resolve_aliasactual() 533 …cil_log(CIL_ERR, "%s %s cannot bind more than one value\n", cil_node_to_string(NODE(alias_datum)),… in cil_resolve_aliasactual() [all …]
|
D | cil_build_ast.c | 134 cil_log(CIL_ERR, "Re-declaration of %s %s\n", in cil_gen_node() 160 …cil_log(CIL_ERR, "%s %s shadows a macro parameter in macro declaration\n", cil_node_to_string(ast_… in cil_gen_node() 172 cil_log(CIL_ERR, "Failed to create node\n"); in cil_gen_node() 398 cil_log(CIL_ERR, "'unordered' keyword is reserved and not a valid class name.\n"); in cil_gen_class() 475 cil_log(CIL_ERR, "Classorder 'unordered' keyword must be followed by one or more class.\n"); in cil_gen_classorder() 479 … cil_log(CIL_ERR, "Classorder can only use 'unordered' keyword as the first item in the list.\n"); in cil_gen_classorder() 520 cil_log(CIL_ERR, "Bad permission\n"); in cil_gen_perm() 587 cil_log(CIL_ERR, "Bad permissions\n"); in cil_gen_perm_nodes() 615 cil_log(CIL_ERR, "Bad permission list or expression\n"); in cil_fill_perms() 647 cil_log(CIL_ERR, "Bad class-permissions\n"); in cil_fill_classperms() [all …]
|
D | cil.c | 361 cil_log(CIL_INFO, "Parsing %s\n", name); in cil_add_file() 369 cil_log(CIL_INFO, "Failed to parse %s\n", name); in cil_add_file() 396 cil_log(CIL_INFO, "Building AST from Parse Tree\n"); in cil_compile() 399 cil_log(CIL_INFO, "Failed to build ast\n"); in cil_compile() 403 cil_log(CIL_INFO, "Destroying Parse Tree\n"); in cil_compile() 406 cil_log(CIL_INFO, "Resolving AST\n"); in cil_compile() 409 cil_log(CIL_INFO, "Failed to resolve ast\n"); in cil_compile() 413 cil_log(CIL_INFO, "Qualifying Names\n"); in cil_compile() 416 cil_log(CIL_INFO, "Failed to qualify names\n"); in cil_compile() 420 cil_log(CIL_INFO, "Compile post process\n"); in cil_compile() [all …]
|
D | cil_fqn.c | 59 cil_log(CIL_INFO, "Fully qualified name for %s is too long\n", datum->name); in __cil_fqn_qualify_decls() 87 cil_log(CIL_INFO, "Fully qualified name for block %s is too long\n", datum->name); in __cil_fqn_qualify_blocks()
|
D | cil_copy_ast.c | 242 cil_log(CIL_INFO, "cil_copy_class: class cannot be redefined\n"); in cil_copy_class() 280 cil_log(CIL_INFO, "classpermission cannot be redefined\n"); in cil_copy_classpermission() 683 cil_log(CIL_INFO, "cil_copy_alias: alias cannot be redefined\n"); in cil_copy_alias() 777 cil_log(CIL_INFO, "cil_copy_bool: boolean cannot be redefined\n"); in cil_copy_bool() 797 cil_log(CIL_INFO, "cil_copy_tunable: tunable cannot be redefined\n"); in cil_copy_tunable() 853 cil_log(CIL_INFO, "cil_copy_permissionx: permissionx cannot be redefined\n"); in cil_copy_permissionx() 935 cil_log(CIL_INFO, "cil_copy_catset: categoryset cannot be redefined\n"); in cil_copy_catset() 1015 cil_log(CIL_INFO, "cil_copy_level: level cannot be redefined\n"); in cil_copy_level() 1052 cil_log(CIL_INFO, "cil_copy_levelrange: levelrange cannot be redefined\n"); in cil_copy_levelrange() 1089 cil_log(CIL_INFO, "cil_copy_context: context cannot be redefined\n"); in cil_copy_context() [all …]
|
D | cil_log.h | 39 __attribute__ ((format(printf, 2, 3))) void cil_log(enum cil_log_level lvl, const char *msg, ...);
|
D | cil_log.c | 61 __attribute__ ((format (printf, 2, 3))) void cil_log(enum cil_log_level lvl, const char *msg, ...) in cil_log() function
|
D | cil_mem.c | 39 cil_log(CIL_ERR, "Failed to allocate memory\n"); in cil_default_mem_error_handler()
|
D | cil_reset_ast.c | 587 cil_log(CIL_ERR, "Failed to reset AST\n"); in cil_reset_ast()
|
D | cil_find.c | 386 cil_log(CIL_ERR, "An error occurred while searching for avrule in AST\n"); in cil_find_matching_avrule_in_ast()
|
/external/selinux/libsepol/cil/include/cil/ |
D | cil.h | 75 extern void cil_log(enum cil_log_level lvl, const char *msg, ...);
|
/external/selinux/libsepol/ |
D | Android.bp | 68 "cil/src/cil_log.c",
|