input
stringlengths
16
454k
output
stringlengths
13
350k
function_name
stringlengths
1
100
repo_name
stringlengths
6
43
category
stringclasses
76 values
sample_id
stringlengths
22
88
decompiler
stringclasses
1 value
opt_level
stringclasses
1 value
check_result *check_file_context_types_exist(const check_data *data, const policy_node *node) { const fc_entry *entry; if (node->flavor != node_flavor_NODE_FC_ENTRY) return alloc_internal_error( "File context type check called on non file context entry"); ...
struct check_result * check_file_context_types_exist(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { SETUP_FOR_FC_CHECK(node) const char *type_decl_filename = look_up_in_decl_map(entry->context->type, DECL...
check_file_context_types_exist
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_file_context_types_in_mod(const check_data *data, const policy_node *node) { size_t v3; char *filename; const char *v5; const char *v6; const fc_entry *entry; const char *type_decl_mod_name; if (node->flavor != node_flavor_NODE_FC_ENTRY) ...
struct check_result * check_file_context_types_in_mod(const struct check_data *data, const struct policy_node *node) { SETUP_FOR_FC_CHECK(node) if (data->config_check_data->skip_checking_generated_fcs) { static bool notified = false; if (0 == strcmp("base.fc", data->filena...
check_file_context_types_in_mod
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_file_context_users(const check_data *data, const policy_node *node) { const fc_entry *entry; if (node->flavor != node_flavor_NODE_FC_ENTRY) return alloc_internal_error( "File context type check called on non file context entry"); entry = node...
struct check_result *check_file_context_users(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { SETUP_FOR_FC_CHECK(node) const char *user_decl_filename = look_up_in_decl_map(ent...
check_file_context_users
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
bool check_for_fc_macro(const char *line, const string_list *custom_fc_macros) { const string_list *custom_fc_macrosa; size_t line_len; size_t custom_fc_len; custom_fc_macrosa = custom_fc_macros; if (!custom_fc_macros) return 0; line_len = strlen(line); while (custom_fc_macrosa) { custom_fc_len =...
bool check_for_fc_macro(const char *line, const struct string_list *custom_fc_macros) { if (!custom_fc_macros) { return false; } size_t line_len = strlen(line); for (; custom_fc_macros; custom_fc_macros = custom_fc_macros->next) { size_t custom_fc_len = strlen(custom_fc_macros->s...
check_for_fc_macro
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_gen_context_no_range(const check_data *data, const policy_node *node) { const fc_entry *entry; if (node->flavor != node_flavor_NODE_FC_ENTRY) return alloc_internal_error( "File context type check called on non file context entry"); entry = ...
struct check_result * check_gen_context_no_range(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { SETUP_FOR_FC_CHECK(node) if (entry->context->has_gen_context && !entry->context->range) { return make_check_result('S',...
check_gen_context_no_range
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_if_calls_template(const check_data *data, const policy_node *node) { policy_node *parent; const char *call_name; if (data->flavor != file_flavor_FILE_IF_FILE) return 0; for (parent = node->parent; parent && parent->flavor != node_flavor_NODE_...
struct check_result *check_if_calls_template(const struct check_data *data, const struct policy_node *node) { if (data->flavor != FILE_IF_FILE) { return NULL; } const struct policy_node *parent = node->parent; while (parent && (parent->flavor != NODE_INTERFACE_D...
check_if_calls_template
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result * check_interface_definitions_have_comment(const check_data *data, const policy_node *node) { if (node->flavor != node_flavor_NODE_INTERFACE_DEF && node->flavor != node_flavor_NODE_TEMP_DEF) return alloc_internal_error( "Interface comment check c...
struct check_result * check_interface_definitions_have_comment(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { if (node->flavor != NODE_INTERFACE_DEF && node->flavor != NODE_TEMP_DEF) { retur...
check_interface_definitions_have_comment
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_module_file_name_mismatch(const check_data *data, const policy_node *node) { size_t file_name_len; char *mod_name; size_t mod_name_len; char *file_name; char *file_name_ext; mod_name = node->data.h_data->module_name; mod_name_len = strlen(...
struct check_result * check_module_file_name_mismatch(const struct check_data *data, const struct policy_node *node) { const char *mod_name = node->data.h_data->module_name; size_t mod_name_len = strlen(mod_name); const char *file_name = data->filename; size_t file_name_len = str...
check_module_file_name_mismatch
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_module_if_call_in_optional(const check_data *data, const policy_node *node) { const policy_node *tmp; const if_call_data *if_data; const char *if_mod_name; const char *mod_type; if_data = node->data.ic_data; if_mod_name = look_up_in_ifs_map...
struct check_result * check_module_if_call_in_optional(const struct check_data *data, const struct policy_node *node) { const struct if_call_data *if_data = node->data.ic_data; const char *if_mod_name = look_up_in_ifs_map(if_data->name); if (!if_mod_name) { return NULL; ...
check_module_if_call_in_optional
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_name_required_but_not_used_in_if(const check_data *data, const policy_node *node) { size_t v3; int depth; const char *flavor; const policy_node *cur; const policy_node *cura; const policy_node *req_block_node; string_list *sl_end; ...
struct check_result * check_name_required_but_not_used_in_if(const struct check_data *data, const struct policy_node *node) { if (data->flavor != FILE_IF_FILE) { return NULL; } struct declaration_data *dd = node->data.d_data; const char *flavor = ""; if (dd->flavo...
check_name_required_but_not_used_in_if
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_name_used_but_not_required_in_if(const check_data *data, const policy_node *node) { check_result *v3; const policy_node *cur; policy_node *cura; string_list *names_required; string_list *names_required_tail; const string_list *name_nod...
struct check_result * check_name_used_but_not_required_in_if(const struct check_data *data, const struct policy_node *node) { if (data->flavor != FILE_IF_FILE) { return NULL; } const struct policy_node *cur = node; struct string_list *names_in_current_node = get_name...
check_name_used_but_not_required_in_if
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_no_explicit_declaration(const check_data *data, const policy_node *node) { decl_flavor flavor; const string_list *name; const char *mod_name; string_list *names; check_result *to_ret; if (data->flavor) return 0; names = get_names_in_node...
struct check_result * check_no_explicit_declaration(const struct check_data *data, const struct policy_node *node) { if (data->flavor != FILE_TE_FILE) { return NULL; } struct string_list *names = get_names_in_node(node); for (const struct string_list *name = names; name; name...
check_no_explicit_declaration
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_no_self(const check_data *data, const policy_node *node) { size_t v3; av_rule_data *av_data; if (node->flavor != node_flavor_NODE_AV_RULE && node->flavor != node_flavor_NODE_XAV_RULE) return alloc_internal_error("Bad node type given to check C-007"); av_data = node->data.av_data; ...
struct check_result *check_no_self(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { if (node->flavor != NODE_AV_RULE && node->flavor != NODE_XAV_RULE) { return alloc_internal_error("Bad node type given to...
check_no_self
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_perm_macro_available(const check_data *data, const policy_node *node) { size_t v3; char *module_name; char *check_str; check_result *res; if (node->data.h_data->flavor) return 0; module_name = node->data.h_data[1].module_name; if (*((_QWORD...
struct check_result * check_perm_macro_available(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { if (node->data.av_data->flavor != AV_RULE_ALLOW) { return NULL; } const struct string_list *class = node->data.av_da...
check_perm_macro_available
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_perm_macro_class_mismatch(const check_data *data, const policy_node *node) { size_t v2; size_t v4; const char *string; bool is_file_class; bool is_netlink_socket_class; bool is_socket_class; const string_list *perms; size_t i; const str...
struct check_result * check_perm_macro_class_mismatch(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { static const char *const file_suffix_classes[] = { "lnk_file", "chr_file", "blk_file", "sock_file", "fifo...
check_perm_macro_class_mismatch
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_require_block(const check_data *data, const policy_node *node) { policy_node *cur; if (data->flavor) return 0; cur = node->first_child; while (cur) { if (cur->flavor == node_flavor_NODE_DECL) { if (cur->data.h_data->flavor != 5 && cur->data.h_...
struct check_result *check_require_block(const struct check_data *data, const struct policy_node *node) { if (data->flavor != FILE_TE_FILE) { return NULL; } struct policy_node *cur = node->first_child; while (cur) { if (cur->flavor != NODE_DECL) { cur = cu...
check_require_block
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_required_declaration_own(const check_data *data, const policy_node *node) { const char *v3; const char *v4; decl_flavor flavor; char *name; const char *modname_orig_decl; if (data->flavor != file_flavor_FILE_IF_FILE) return 0; name = no...
struct check_result * check_required_declaration_own(const struct check_data *data, const struct policy_node *node) { if (data->flavor != FILE_IF_FILE) { return NULL; } const char *name = node->data.d_data->name; const enum decl_flavor flavor = node->data.d_data->flavor; i...
check_required_declaration_own
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_risky_allow_perm(const check_data *data, const policy_node *node) { const string_list *perms; if (node->data.h_data->flavor) return 0; for (perms = *(const string_list **)&node->data.h_data[2].flavor; perms; perms = perms->next) { if (!strcm...
struct check_result *check_risky_allow_perm(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { if (node->data.av_data->flavor != AV_RULE_ALLOW) { return NULL; } const struct string_l...
check_risky_allow_perm
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_space_if_call_arg(const check_data *data, const policy_node *node) { unsigned short i; const string_list *prev; char *args; prev = 0; args = node->data.h_data->module_name; i = 1; while (args) { if (*((_DWORD *)args + 4)) { if (prev && ...
struct check_result *check_space_if_call_arg(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { const struct string_list *prev = NULL, *args = node->data.ic_data->args; unsigned short i = ...
check_space_if_call_arg
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_stray_word(const check_data *data, const policy_node *node) { int position; int positiona; const policy_node *cur; const char *macro_name; const policy_node *ifelse_arument; macro_name = node->data.str; if (str_in_sl(macro_name, data->config_check_data->...
struct check_result *check_stray_word(const struct check_data *data, const struct policy_node *node) { const char *macro_name = node->data.str; if (str_in_sl(macro_name, data->config_check_data->custom_te_simple_macros)) { return NULL; } const struct policy_node *ifel...
check_stray_word
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_te_order(const check_data *data, const policy_node *node) { node_flavor flavor; order_conf order_conf; unsigned int i; char *reason_str; check_result *to_ret; if (!data || !data->config_check_data) return alloc_internal_error("Uninitialized data given to C-001"); if (data->flavor)...
struct check_result *check_te_order(const struct check_data *data, const struct policy_node *node) { if (!data || !data->config_check_data) { return alloc_internal_error("Uninitialized data given to C-001"); } if (data->flavor != FILE_TE_FILE) { return NULL; } stat...
check_te_order
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_unknown_class(const check_data *data, const policy_node *node) { node_flavor flavor; size_t v4; char *object_classes; const string_list *cur; flavor = node->flavor; if (flavor == node_flavor_NODE_RT_RULE) { object_classes = *(char **)&node->data.h_d...
struct check_result *check_unknown_class(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { const struct string_list *object_classes; switch (node->flavor) { case NODE_AV_RULE: object_classe...
check_unknown_class
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
bool check_unknown_class_condition() { const char *v0; const char *v1; if (decl_map_count(decl_flavor_DECL_CLASS)) return 1; v0 = color_reset(); v1 = color_note(); printf("%sNote%s: Check E-008 is not performed because no class has been " "parsed.\n", v1, v0); return 0; }
bool check_unknown_class_condition() { if (decl_map_count(DECL_CLASS) == 0) { printf("%sNote%s: Check E-008 is not performed because no class has been " "parsed.\n", color_note(), color_reset()); return false; } return true; }
check_unknown_class_condition
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_unknown_interface_call(const check_data *data, const policy_node *node) { size_t i; const char *if_name; if_name = *(const char **)node->data.h_data; for (i = 0; i <= 1; ++i) { if (!strcmp(if_name, RefPol_macros_with_module_prefix_8[i])) ...
struct check_result * check_unknown_interface_call(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { const char *if_name = node->data.ic_data->name; for (size_t i = 0; i < (sizeof RefPol_macros_with_module_prefix / ...
check_unknown_interface_call
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_unknown_permission(const check_data *data, const policy_node *node) { size_t v2; const string_list *cur; for (cur = *(const string_list **)&node->data.h_data[2].flavor; cur; cur = cur->next) { if (strcmp(cur->string, "*")) { if (strcmp(c...
struct check_result *check_unknown_permission(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { for (const struct string_list *cur = node->data.av_data->perms; cur; cur = cur->next...
check_unknown_permission
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
bool check_unknown_permission_condition() { const char *v0; const char *v1; const char *v3; const char *v4; if (permmacros_map_count()) { if (decl_map_count(decl_flavor_DECL_PERM)) { return 1; } else { v3 = color_reset(); v4 = color_note(); printf("%sNote%s: Check E-007 is not...
bool check_unknown_permission_condition() { if (permmacros_map_count() == 0) { printf("%sNote%s: Check E-007 is not performed because no permission macro " "has been parsed.\n", color_note(), color_reset()); return false; } if (decl_map_count(DECL_PERM) == 0) { printf("%sNote%s:...
check_unknown_permission_condition
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_unordered_declaration_in_require(const check_data *data, const policy_node *node) { const char *name; const char *v4; const char *v5; const char *v6; const char *v7; const char *v8; int compare; const declaration_data *prev_decl_da...
struct check_result * check_unordered_declaration_in_require(const struct check_data *data, const struct policy_node *node) { if (node->flavor != NODE_REQUIRE && node->flavor != NODE_GEN_REQ) { return alloc_internal_error( "Unordered declaration in require check call...
check_unordered_declaration_in_require
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_unordered_perms(const check_data *data, const policy_node *node) { int compare; const string_list *prev; const string_list *cur; const char *flavor; prev = 0; if (node->flavor == node_flavor_NODE_AV_RULE) { cur = *(const string_list **)&node->data...
struct check_result *check_unordered_perms(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { const struct string_list *prev = NULL, *cur = NULL; const char *flavor; if (node->flavor == NODE...
check_unordered_perms
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_unquoted_gen_require_block(const check_data *data, const policy_node *node) { if (*node->data.str) return make_check_result(83, 8u, "Gen require block unquoted"); else return 0; }
struct check_result * check_unquoted_gen_require_block(__attribute__((unused)) const struct check_data *data, const struct policy_node *node) { if (node->data.gr_data->unquoted) { return make_check_result('S', S_ID_UNQUOTE_GENREQ, ...
check_unquoted_gen_require_block
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
check_result *check_useless_semicolon(const check_data *data, const policy_node *node) { return make_check_result(83, 3u, "Unnecessary semicolon"); }
struct check_result *check_useless_semicolon(__attribute__((unused)) const struct check_data *data, __attribute__((unused)) const struct policy_node *node) { return make_check_result(...
check_useless_semicolon
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void cleanup_parsing() { if (module_name) { free(module_name); module_name = 0; } free_permmacros(); free_all_maps(); }
void cleanup_parsing() { if (module_name) { free(module_name); module_name = NULL; } free_permmacros(); free_all_maps(); }
cleanup_parsing
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void color_enable() { enabled = 1; }
1m " #define EMPTY_STR "" void color_enable() { enabled = 1; }
color_enable
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
const char *color_error() { if (enabled) return "\x1B[31;1m"; else return (const char *)&unk_41C84; }
const char *color_error() { if (!enabled) { return EMPTY_STR; } return COLOR_RED; }
color_error
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
const char *color_note() { if (enabled) return "\x1B[35;1m"; else return (const char *)&unk_41C84; }
const char *color_note() { if (!enabled) { return EMPTY_STR; } return COLOR_MAGENTA; }
color_note
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
const char *color_ok() { if (enabled) return "\x1B[32;1m"; else return (const char *)&unk_41C84; }
const char *color_ok() { if (!enabled) { return EMPTY_STR; } return COLOR_GREEN; }
color_ok
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
const char *color_reset() { if (enabled) return "\x1B[0m"; else return (const char *)&unk_41C84; }
const char *color_reset() { if (!enabled) { return EMPTY_STR; } return COLOR_RESET; }
color_reset
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
const char *color_severity(char severity) { if (!enabled) return (const char *)&unk_41C84; if (severity == 87) return "\x1B[33;1m"; if (severity <= 87) { if (severity == 83) return "\x1B[35;1m"; if (severity <= 83) { if (severity == 67) return "\x1B[34;1m"; if (severity =...
const char *color_severity(char severity) { if (!enabled) { return EMPTY_STR; } switch (severity) { case 'E': return COLOR_RED; case 'W': return COLOR_YELLOW; case 'S': return COLOR_MAGENTA; case 'C': return COLOR_BLUE; } return COLOR_BOLD; }
color_severity
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
const char *color_warning() { if (enabled) return "\x1B[33;1m"; else return (const char *)&unk_41C84; }
const char *color_warning() { if (!enabled) { return EMPTY_STR; } return COLOR_YELLOW; }
color_warning
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
int comp_check_nodes(const void *n1, const void *n2) { int v2; int node1_id; int node2_id; const check_node *node1; const check_node *node2; node1 = *(const check_node **)n1; node2 = *(const check_node **)n2; node1_id = atoi((const char *)(*(_QWORD *)(*(_QWORD *)n1 + 8LL) + 2LL)); node2_id = atoi((co...
static int comp_check_nodes(const void *n1, const void *n2) { const struct check_node *node1 = *(const struct check_node *const *)n1; const struct check_node *node2 = *(const struct check_node *const *)n2; int node1_id = atoi(node1->check_id + 2); int node2_id = atoi(node2->check_id + 2); switch (node1->che...
comp_check_nodes
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
int compare_declaration_flavors(decl_flavor a, decl_flavor b, const config_check_data *config) { unsigned short i; if (a == b) return 0; for (i = 0; i <= 5u; ++i) { if (a == config->order_requires[i]) return -1; if (b == config->order_requires[i]) return 1;...
static int compare_declaration_flavors(enum decl_flavor a, enum decl_flavor b, const struct config_check_data *config) { if (a == b) { return 0; } for (unsigned short i = 0; i < (sizeof config->order_requires / sizeof *config->order_requires); ++i) { i...
compare_declaration_flavors
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
int compare_declarations(const declaration_data *a, const declaration_data *b, const config_check_data *config) { int r; char *a_ptr; char *b_ptr; r = compare_declaration_flavors(a->flavor, b->flavor, config); if (r) return r; if (!config->ordering_requires_same_flavor) ret...
static int compare_declarations(const struct declaration_data *a, const struct declaration_data *b, const struct config_check_data *config) { int r = compare_declaration_flavors(a->flavor, b->flavor, config); if (r != 0) { return r; } if (!con...
compare_declarations
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
order_difference_reason compare_nodes_refpolicy(const ordering_metadata *ordering_data, const policy_node *first, const policy_node *second) { return compare_nodes_refpolicy_generic(ordering_data, first, second, order_conf_ORDER_REF); }
enum order_difference_reason compare_nodes_refpolicy(const struct ordering_metadata *ordering_data, const struct policy_node *first, const struct policy_node *second) { return compare_nodes_refpolicy_generic(ordering_data, first, second, ...
compare_nodes_refpolicy
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
order_difference_reason compare_nodes_refpolicy_generic(const ordering_metadata *ordering_data, const policy_node *first, const policy_node *second, order_conf variant) { __m128i v4; local_subsection lss_first; local_subsection lss_second; int comp...
#define CHECK_FLAVOR_ORDERING(data_flavor, comp, ret) \ CHECK_ORDERING(first->data.data_flavor->flavor, \ second->data.data_flavor->flavor, comp, ret) enum order_difference_reason compare_nodes_refpolicy_generic(const struct ordering_metadata *or...
compare_nodes_refpolicy_generic
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
order_difference_reason compare_nodes_refpolicy_lax(const ordering_metadata *ordering_data, const policy_node *first, const policy_node *second) { return compare_nodes_refpolicy_generic(ordering_data, first, second, order...
enum order_difference_reason compare_nodes_refpolicy_lax(const struct ordering_metadata *ordering_data, const struct policy_node *first, const struct policy_node *second) { return compare_nodes_refpolicy_generic(ordering_data, first, second, ...
compare_nodes_refpolicy_lax
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
order_difference_reason compare_nodes_refpolicy_light(const ordering_metadata *ordering_data, const policy_node *first, const policy_node *second) { return compare_nodes_refpolicy_generic(ordering_data, first, second, ...
enum order_difference_reason compare_nodes_refpolicy_light(const struct ordering_metadata *ordering_data, const struct policy_node *first, const struct policy_node *second) { return compare_nodes_refpolicy_generic(ordering_data, first, second, ...
compare_nodes_refpolicy_light
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void compute_perm_mask(const string_list *permissions, mask_t *mask_raw, mask_t *mask_extended) { while (permissions) { str_to_mask(permissions->string, mask_raw, mask_extended); permissions = permissions->next; } }
void compute_perm_mask(const struct string_list *permissions, mask_t *mask_raw, mask_t *mask_extended) { for (; permissions; permissions = permissions->next) { str_to_mask(permissions->string, mask_raw, mask_extended); } }
compute_perm_mask
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
string_list *concat_string_lists(string_list *head, string_list *tail) { string_list *cur; if (!head) return tail; if (!tail) return head; for (cur = head; cur->next; cur = cur->next) ; cur->next = tail; return head; }
struct string_list *concat_string_lists(struct string_list *head, struct string_list *tail) { if (!head) { return tail; } if (!tail) { return head; } struct string_list *cur = head; while (cur->next) { cur = cur->next; } cur->next = tail; return h...
concat_string_lists
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
string_list *copy_string_list(const string_list *sl) { const string_list *sla; string_list *cur; string_list *ret; sla = sl; if (!sl) return 0; ret = (string_list *)malloc(0x18u); cur = ret; while (sla) { cur->string = strdup(sla->string); cur->has_incorrect_space = sla->has_incorrect_space...
struct string_list *copy_string_list(const struct string_list *sl) { if (!sl) { return NULL; } struct string_list *ret = malloc(sizeof(struct string_list)); struct string_list *cur = ret; while (sl) { cur->string = strdup(sl->string); cur->has_incorrect_space = sl->has_incorrect_space; if (s...
copy_string_list
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
unsigned int count_check_nodes(const checks *ck) { unsigned int count; int i; check_node *cur; count = 0; for (i = 0; i <= 38; ++i) { if (ck->check_nodes[i]) { for (cur = ck->check_nodes[i]; cur; cur = cur->next) ++count; } } return count; }
static unsigned int count_check_nodes(const struct checks *ck) { unsigned int count = 0; for (int i = 0; i <= NODE_ERROR; i++) { if (ck->check_nodes[i]) { struct check_node *cur = ck->check_nodes[i]; while (cur) { count++; cur = cur->next; } } } return count; }
count_check_nodes
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
const char *decl_flavor_to_string(decl_flavor flavor) { const char *result; switch (flavor) { case decl_flavor_DECL_TYPE: result = "type"; break; case decl_flavor_DECL_ATTRIBUTE: result = "attribute"; break; case decl_flavor_DECL_ATTRIBUTE_ROLE: result = "attribute role"; break; cas...
const char *decl_flavor_to_string(enum decl_flavor flavor) { switch (flavor) { case DECL_TYPE: return "type"; case DECL_ATTRIBUTE: return "attribute"; case DECL_ATTRIBUTE_ROLE: return "attribute role"; case DECL_ROLE: return "role"; case DECL_USER: return "user"; case DECL_CLASS: r...
decl_flavor_to_string
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
unsigned int decl_map_count(decl_flavor flavor) { unsigned int result; switch (flavor) { case decl_flavor_DECL_TYPE: if (type_map) result = type_map->hh_type.tbl->num_items; else result = 0; break; case decl_flavor_DECL_ATTRIBUTE: if (attr_type_map) result = attr_type_map->hh_...
unsigned int decl_map_count(enum decl_flavor flavor) { switch (flavor) { case DECL_TYPE: return HASH_CNT(hh_type, type_map); case DECL_ATTRIBUTE: return HASH_CNT(hh_attr_type, attr_type_map); case DECL_ATTRIBUTE_ROLE: return HASH_CNT(hh_attr_role, attr_role_map); case DECL_ROLE: return HASH_CN...
decl_map_count
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
policy_node *dfs_next(const policy_node *node) { const policy_node *nodea; nodea = node; if (node->first_child) return node->first_child; if (node->next) return node->next; while (nodea->parent && !nodea->parent->next) nodea = nodea->parent; if (nodea->parent) return nodea->parent->next; ...
struct policy_node *dfs_next(const struct policy_node *node) { if (node->first_child) { return node->first_child; } else if (node->next) { return node->next; } else { while (node->parent && !node->parent->next) { node = node->parent; } if (node->parent) { return node->parent->next;...
dfs_next
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void display_check_issue_counts(const checks *ck) { const char *v1; const char *v2; const char *v3; const char *v4; const char *v5; const char *v6; unsigned int printed_something; unsigned int node_arr_index; int i; unsigned int issue_count; unsigned int i_0; check_node *cur; char *old_issue_n...
void display_check_issue_counts(const struct checks *ck) { size_t num_nodes = count_check_nodes(ck); unsigned int printed_something = 0; struct check_node **node_arr = calloc(num_nodes, sizeof(struct check_node *)); unsigned int node_arr_index = 0; for (int i = 0; i <= NODE_ERROR; i++) { if (ck->check_no...
display_check_issue_counts
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void display_check_result(const check_result *res, const check_data *data) { unsigned int check_id; long severity; char *message; const char *v5; unsigned int v6; const char *v7; unsigned int padding; size_t len; len = strlen(data->filename); if (len <= FILENAME_PADDING_0) padding = FILENAME_PA...
void display_check_result(const struct check_result *res, const struct check_data *data) { static const size_t FILENAME_PADDING = 22; const size_t len = strlen(data->filename); unsigned int padding; if (FILENAME_PADDING < len) { padding = 0; } else { padding = (unsigned)(FI...
display_check_result
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void display_run_summary(const checks *ck) { puts("Found the following issue counts:"); display_check_issue_counts(ck); }
void display_run_summary(const struct checks *ck) { printf("Found the following issue counts:\n"); display_check_issue_counts(ck); }
display_run_summary
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_block(policy_node **cur, node_flavor block_type) { if (!(*cur)->parent || block_type != (*cur)->parent->flavor) return selint_error_SELINT_NOT_IN_BLOCK; *cur = (*cur)->parent; return selint_error_SELINT_SUCCESS; }
static enum selint_error end_block(struct policy_node **cur, enum node_flavor block_type) { if ((*cur)->parent == NULL || (*cur)->parent->flavor != block_type) { return SELINT_NOT_IN_BLOCK; } *cur = (*cur)->parent; return SELINT_SUCCESS; }
end_block
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_boolean_policy(policy_node **cur) { return end_block(cur, node_flavor_NODE_BOOLEAN_POLICY); }
enum selint_error end_boolean_policy(struct policy_node **cur) { return end_block(cur, NODE_BOOLEAN_POLICY); }
end_boolean_policy
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_gen_require(policy_node **cur, unsigned char unquoted) { if ((*cur)->parent && (*cur)->parent->flavor == node_flavor_NODE_GEN_REQ) *(*cur)->parent->data.str = unquoted; return end_block(cur, node_flavor_NODE_GEN_REQ); }
enum selint_error end_gen_require(struct policy_node **cur, unsigned char unquoted) { if ((*cur)->parent && (*cur)->parent->flavor == NODE_GEN_REQ) { (*cur)->parent->data.gr_data->unquoted = unquoted; } return end_block(cur, NODE_GEN_REQ); }
end_gen_require
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_ifdef(policy_node **cur) { return end_block(cur, node_flavor_NODE_IFDEF); }
enum selint_error end_ifdef(struct policy_node **cur) { return end_block(cur, NODE_IFDEF); }
end_ifdef
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_ifelse(policy_node **cur) { return end_block(cur, node_flavor_NODE_IFELSE); }
enum selint_error end_ifelse(struct policy_node **cur) { return end_block(cur, NODE_IFELSE); }
end_ifelse
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_interface_def(policy_node **cur) { if (end_block(cur, node_flavor_NODE_INTERFACE_DEF) == selint_error_SELINT_NOT_IN_BLOCK) return end_block(cur, node_flavor_NODE_TEMP_DEF); else return selint_error_SELINT_SUCCESS; }
enum selint_error end_interface_def(struct policy_node **cur) { if (end_block(cur, NODE_INTERFACE_DEF) == SELINT_NOT_IN_BLOCK) { return end_block(cur, NODE_TEMP_DEF); } else { return SELINT_SUCCESS; } }
end_interface_def
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_m4_argument(policy_node **cur) { return end_block(cur, node_flavor_NODE_M4_ARG); }
enum selint_error end_m4_argument(struct policy_node **cur) { return end_block(cur, NODE_M4_ARG); }
end_m4_argument
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_optional_else(policy_node **cur) { return end_block(cur, node_flavor_NODE_OPTIONAL_ELSE); }
enum selint_error end_optional_else(struct policy_node **cur) { return end_block(cur, NODE_OPTIONAL_ELSE); }
end_optional_else
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_optional_policy(policy_node **cur) { return end_block(cur, node_flavor_NODE_OPTIONAL_POLICY); }
enum selint_error end_optional_policy(struct policy_node **cur) { return end_block(cur, NODE_OPTIONAL_POLICY); }
end_optional_policy
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_require(policy_node **cur) { return end_block(cur, node_flavor_NODE_REQUIRE); }
enum selint_error end_require(struct policy_node **cur) { return end_block(cur, NODE_REQUIRE); }
end_require
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error end_tunable_policy(policy_node **cur) { return end_block(cur, node_flavor_NODE_TUNABLE_POLICY); }
enum selint_error end_tunable_policy(struct policy_node **cur) { return end_block(cur, NODE_TUNABLE_POLICY); }
end_tunable_policy
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
bool ends_with(const char *str, size_t str_len, const char *suffix, size_t suffix_len) { return str_len >= suffix_len && strncmp(&str[str_len - suffix_len], suffix, suffix_len) == 0; }
bool ends_with(const char *str, size_t str_len, const char *suffix, size_t suffix_len) { if (str_len < suffix_len) { return 0; } return (0 == strncmp(str + str_len - suffix_len, suffix, suffix_len)); }
ends_with
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
bool ends_with_all_suffix_perms(const char *str, size_t str_len, const string_list *classes) { size_t v3; size_t v4; const char *class_alias; size_t i; while (classes) { v3 = strlen(classes->string); if (!ends_with_suffix_perms(str, str_len, classes->string, v3)) { ...
static bool ends_with_all_suffix_perms(const char *str, size_t str_len, const struct string_list *classes) { for (; classes; classes = classes->next) { if (!ends_with_suffix_perms(str, str_len, classes->string, strlen(classes->string))) { ...
ends_with_all_suffix_perms
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
bool ends_with_suffix_perms(const char *str, size_t str_len, const char *suffix, size_t suffix_len) { return str_len >= suffix_len + 6 && strncmp(&str[str_len - suffix_len - 6], suffix, suffix_len) == 0; }
static bool ends_with_suffix_perms(const char *str, size_t str_len, const char *suffix, size_t suffix_len) { if (str_len < (suffix_len + strlen("_perms"))) { return 0; } return (0 == strncmp(str + str_len - (suffix_len + strlen("_perms")), suffix, suf...
ends_with_suffix_perms
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void file_list_push_back(policy_file_list *list, policy_file *file) { policy_file_node *tail; if (list->tail) { tail = list->tail; tail->next = (policy_file_node *)malloc(0x10u); list->tail = list->tail->next; } else { list->tail = (policy_file_node *)malloc(0x10u); list->head = list->tail; ...
void file_list_push_back(struct policy_file_list *list, struct policy_file *file) { if (list->tail) { list->tail->next = malloc(sizeof(struct policy_file_node)); list->tail = list->tail->next; } else { list->head = list->tail = malloc(sizeof(struct policy_file_node)); } lis...
file_list_push_back
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
int file_name_in_file_list(const char *filename, const policy_file_list *list) { policy_file_node *node; for (node = list->head; node; node = node->next) { if (node->file && !strcmp(filename, node->file->filename)) return 1; } return 0; }
int file_name_in_file_list(const char *filename, const struct policy_file_list *list) { const struct policy_file_node *node = list->head; while (node) { if (node->file && 0 == strcmp(filename, node->file->filename)) { return 1; } node = node->next; } return 0; }
file_name_in_file_list
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_all_maps() { hash_elem *next; hash_elem *v1; hash_elem *v2; hash_elem *v3; hash_elem *v4; hash_elem *v5; hash_elem *v6; hash_elem *v7; hash_elem *v8; hash_elem *v9; hash_elem *v10; hash_elem *v11; hash_elem *v12; hash_elem *v13; hash_elem *v14; hash_elem *v15; hash_elem *v16;...
void free_all_maps() { struct hash_elem *cur_decl, *tmp_decl; FREE_MAP(type); FREE_MAP(role); FREE_MAP(user); FREE_MAP(attr_type); FREE_MAP(attr_role); FREE_MAP(bool); FREE_MAP(class); FREE_MAP(perm); FREE_MAP(mods); FREE_MAP(mod_layers); FREE_MAP(ifs); struct bool_hash_elem *cur_...
free_all_maps
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_attribute_data(attribute_data *to_free) { if (to_free->type) free(to_free->type); if (to_free->attrs) free_string_list(to_free->attrs); free(to_free); }
void free_attribute_data(struct attribute_data *to_free) { if (to_free->type) { free(to_free->type); } if (to_free->attrs) { free_string_list(to_free->attrs); } free(to_free); }
free_attribute_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_av_rule_data(av_rule_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free_string_list(to_free->perms); free(to_free); return selint_error_SELINT_SUCCE...
enum selint_error free_av_rule_data(struct av_rule_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free_string_list(to_free->perms); free(to_free); return SELINT_SU...
free_av_rule_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_check_node(check_node *to_free) { check_node *tmp; while (to_free) { tmp = to_free; to_free = to_free->next; free(tmp->check_id); free(tmp); } }
void free_check_node(struct check_node *to_free) { while (to_free) { struct check_node *tmp = to_free; to_free = to_free->next; free(tmp->check_id); free(tmp); } }
free_check_node
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_check_result(check_result *res) { if (res) free(res->message); free(res); }
void free_check_result(struct check_result *res) { if (res) { free(res->message); } free(res); }
free_check_result
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_checks(checks *to_free) { int i; if (to_free) { for (i = 0; i <= 38; ++i) free_check_node(to_free->check_nodes[i]); free(to_free); } }
void free_checks(struct checks *to_free) { if (to_free == NULL) { return; } for (int i = 0; i < NODE_ERROR + 1; i++) { free_check_node(to_free->check_nodes[i]); } free(to_free); }
free_checks
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_decl_list(decl_list *to_free) { decl_list *tmp; while (to_free) { free_declaration_data(to_free->decl); tmp = to_free; to_free = to_free->next; free(tmp); } return selint_error_SELINT_SUCCESS; }
enum selint_error free_decl_list(struct decl_list *to_free) { while (to_free) { free_declaration_data(to_free->decl); struct decl_list *tmp = to_free; to_free = to_free->next; free(tmp); } return SELINT_SUCCESS; }
free_decl_list
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_declaration_data(declaration_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free_string_list(to_free->attrs); free(to_free->name); free(to_free); return selint_error_SELINT_SUCCESS; }
enum selint_error free_declaration_data(struct declaration_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free_string_list(to_free->attrs); free(to_free->name); free(to_free); return SELINT_SUCCESS; }
free_declaration_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_fc_entry(fc_entry *to_free) { if (to_free->path) free(to_free->path); if (to_free->context) free_sel_context(to_free->context); free(to_free); }
void free_fc_entry(struct fc_entry *to_free) { if (to_free->path) { free(to_free->path); } if (to_free->context) { free_sel_context(to_free->context); } free(to_free); }
free_fc_entry
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_file_list(policy_file_list *to_free) { policy_file_node *cur; policy_file_node *tmp; cur = to_free->head; while (cur) { free(cur->file->filename); free_policy_node(cur->file->ast); free(cur->file); tmp = cur; cur = cur->next; free(tmp); } free(to_free); }
void free_file_list(struct policy_file_list *to_free) { struct policy_file_node *cur = to_free->head; while (cur) { free(cur->file->filename); free_policy_node(cur->file->ast); free(cur->file); struct policy_file_node *tmp = cur; cur = cur->next; free(tmp); } free(to_free); }
free_file_list
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_gen_require_data(gen_require_data *to_free) { free(to_free); }
void free_gen_require_data(struct gen_require_data *to_free) { free(to_free); }
free_gen_require_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_header_data(header_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free(to_free->module_name); free(to_free); return selint_error_SELINT_SUCCESS; }
enum selint_error free_header_data(struct header_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free(to_free->module_name); free(to_free); return SELINT_SUCCESS; }
free_header_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_if_call_data(if_call_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free(to_free->name); free_string_list(to_free->args); free(to_free); return selint_error_SELINT_SUCCESS; }
enum selint_error free_if_call_data(struct if_call_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free(to_free->name); free_string_list(to_free->args); free(to_free); return SELINT_SUCCESS; }
free_if_call_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_if_call_list(if_call_list *to_free) { if_call_list *tmp; while (to_free) { tmp = to_free; to_free = to_free->next; free(tmp); } return selint_error_SELINT_SUCCESS; }
enum selint_error free_if_call_list(struct if_call_list *to_free) { while (to_free) { struct if_call_list *tmp = to_free; to_free = to_free->next; free(tmp); } return SELINT_SUCCESS; }
free_if_call_list
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_ordering_metadata(ordering_metadata *to_free) { if (to_free) { free_section_data(to_free->sections); free(to_free); } }
void free_ordering_metadata(struct ordering_metadata *to_free) { if (to_free == NULL) { return; } free_section_data(to_free->sections); free(to_free); }
free_ordering_metadata
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_perm_macro(perm_macro *to_free) { perm_macro *tmp; while (to_free) { tmp = to_free->next; free(to_free->name); free(to_free); to_free = tmp; } }
static void free_perm_macro(struct perm_macro *to_free) { while (to_free) { struct perm_macro *tmp = to_free->next; free(to_free->name); free(to_free); to_free = tmp; } }
free_perm_macro
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_permmacros() { initialized = 0; free_perm_macro(dir_macros); free_perm_macro(file_macros); free_perm_macro(lnk_file_macros); free_perm_macro(chr_file_macros); free_perm_macro(blk_file_macros); free_perm_macro(sock_file_macros); free_perm_macro(fifo_file_macros); dir_macros = 0; file_macros...
void free_permmacros() { initialized = false; free_perm_macro(dir_macros); free_perm_macro(file_macros); free_perm_macro(lnk_file_macros); free_perm_macro(chr_file_macros); free_perm_macro(blk_file_macros); free_perm_macro(sock_file_macros); free_perm_macro(fifo_file_macros); dir_macros = NULL; fi...
free_permmacros
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_policy_node(policy_node *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; switch (to_free->flavor) { case node_flavor_NODE_AV_RULE: free_av_rule_data(to_free->data.av_data); break; case node_flavor_NODE_XAV_RULE: free_xav_rule_data(to_free->data.xav_data); break...
enum selint_error free_policy_node(struct policy_node *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } switch (to_free->flavor) { case NODE_HEADER: free_header_data(to_free->data.h_data); break; case NODE_AV_RULE: free_av_rule_data(to_free->data.av_data); break; case NODE_XAV...
free_policy_node
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_ra_data(role_allow_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free_string_list(to_free->from); free_string_list(to_free->to); free(to_free); return selint_error_SELINT_SUCCESS; }
enum selint_error free_ra_data(struct role_allow_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free_string_list(to_free->from); free_string_list(to_free->to); free(to_free); return SELINT_SUCCESS; }
free_ra_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_role_transition_data(role_transition_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free(to_free->default_role); free(to_free); return selint_error_S...
enum selint_error free_role_transition_data(struct role_transition_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free(to_free->default_role); free(to_free); return...
free_role_transition_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_rtyp_data(role_types_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free(to_free->role); free_string_list(to_free->types); free(to_free); return selint_error_SELINT_SUCCESS; }
enum selint_error free_rtyp_data(struct role_types_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free(to_free->role); free_string_list(to_free->types); free(to_free); return SELINT_SUCCESS; }
free_rtyp_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_section_data(section_data *to_free) { if (to_free) { free(to_free->section_name); free_section_data(to_free->next); free(to_free); } }
void free_section_data(struct section_data *to_free) { if (to_free == NULL) { return; } free(to_free->section_name); free_section_data(to_free->next); free(to_free); }
free_section_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_sel_context(sel_context *to_free) { if (to_free->user) free(to_free->user); if (to_free->role) free(to_free->role); if (to_free->type) free(to_free->type); if (to_free->range) free(to_free->range); free(to_free); }
void free_sel_context(struct sel_context *to_free) { if (to_free->user) { free(to_free->user); } if (to_free->role) { free(to_free->role); } if (to_free->type) { free(to_free->type); } if (to_free->range) { free(to_free->range); } free(to_free); }
free_sel_context
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_selint_config(config_check_data *config_check_data) { if (config_check_data) free_string_list(config_check_data->custom_te_simple_macros); }
void free_selint_config(struct config_check_data *config_check_data) { if (!config_check_data) { return; } free_string_list(config_check_data->custom_te_simple_macros); }
free_selint_config
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
void free_string_list(string_list *list) { string_list *cur; string_list *to_free; if (list) { cur = list; while (cur) { to_free = cur; cur = cur->next; free(to_free->string); free(to_free); } } }
void free_string_list(struct string_list *list) { if (list == NULL) { return; } struct string_list *cur = list; while (cur) { struct string_list *to_free = cur; cur = cur->next; free(to_free->string); free(to_free); } }
free_string_list
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_type_transition_data(type_transition_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free(to_free->default_type); free(to_free->name); free(to_free); ...
enum selint_error free_type_transition_data(struct type_transition_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free(to_free->default_type); free(to_free->name); ...
free_type_transition_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
selint_error free_xav_rule_data(xav_rule_data *to_free) { if (!to_free) return selint_error_SELINT_BAD_ARG; free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free(to_free->operation); free_string_list(to_free->perms); free(to_free); re...
enum selint_error free_xav_rule_data(struct xav_rule_data *to_free) { if (to_free == NULL) { return SELINT_BAD_ARG; } free_string_list(to_free->sources); free_string_list(to_free->targets); free_string_list(to_free->object_classes); free(to_free->operation); free_string_list(to_free->perms); free...
free_xav_rule_data
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
float get_avg_line_by_name(const char *section_name, const section_data *sections) { while (strcmp(sections->section_name, section_name)) { sections = sections->next; if (!sections) return -1.0; } return sections->avg_line; }
float get_avg_line_by_name(const char *section_name, const struct section_data *sections) { while (0 != strcmp(sections->section_name, section_name)) { sections = sections->next; if (!sections) { return -1; } } return sections->avg_line; }
get_avg_line_by_name
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0
char *get_current_module_name() { return module_name; }
char *get_current_module_name() { return module_name; }
get_current_module_name
selint-1.2.0
app-admin
O0/app-admin/selint-1.2.0/selint
ida
O0