Fuzz introspector
For issues and ideas: https://github.com/ossf/fuzz-introspector/issues

Project functions overview

The following table shows data about each function in the project. The functions included in this table correspond to all functions that exist in the executables of the fuzzers. As such, there may be functions that are from third-party libraries.

For further technical details on the meaning of columns in the below table, please see the Glossary .

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Fuzzer details

Fuzzer: selabel_file_text-fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: selabel_file_compiled-fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: binpolicy-fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: checkpolicy-fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The project has no code coverage. Will not display blockers as blockers depend on code coverage.

Fuzzer: secilc-fuzzer

Call tree

The calltree shows the control flow of the fuzzer. This is overlaid with coverage information to display how much of the potential code a fuzzer can reach is in fact covered at runtime. In the following there is a link to a detailed calltree visualisation as well as a bitmap showing a high-level view of the calltree. For further information about these topics please see the glossary for full calltree and calltree overview

Call tree overview bitmap:

The project has no code coverage. Will not display blockers as blockers depend on code coverage.

Analyses and suggestions

Optimal target analysis

Remaining optimal interesting functions

The following table shows a list of functions that are optimal targets. Optimal targets are identified by finding the functions that in combination, yield a high code coverage.

Func name Functions filename Arg count Args Function depth hitcount instr count bb count cyclomatic complexity Reachable functions Incoming references total cyclomatic complexity Unreached complexity
cil_write_policy_conf /src/selinux/libsepol/src/../cil/src/cil.c 2 ['N/A', 'N/A'] 16 0 21 3 2 203 0 896 375
cil_write_post_ast /src/selinux/libsepol/src/../cil/src/cil.c 2 ['N/A', 'N/A'] 19 0 126 16 8 774 0 4812 290
selabel_file_init /src/selinux/libselinux/src/label_file.c 3 ['N/A', 'N/A', 'int'] 6 0 89 8 4 35 0 310 253
selinux_file_context_verify /src/selinux/libselinux/src/matchpathcon.c 2 ['N/A', 'int'] 8 0 162 28 11 52 0 244 212
sepol_get_user_sids /src/selinux/libsepol/src/services.c 4 ['int', 'N/A', 'N/A', 'N/A'] 8 0 357 46 18 50 0 362 209
sepol_check_context /src/selinux/libsepol/src/context.c 1 ['N/A'] 9 0 19 3 2 53 0 328 153
sepol_ppfile_to_module_package /src/selinux/libsepol/src/module_to_cil.c 2 ['N/A', 'N/A'] 11 0 264 38 13 261 0 2161 143

Implementing fuzzers that target the above functions will improve reachability such that it becomes:

Functions statically reachable by fuzzers
81.0%
2018 / 2490
Cyclomatic complexity statically reachable by fuzzers
85.0%
16132 / 18929

All functions overview

If you implement fuzzers for these functions, the status of all functions in the project will be:

Func name Functions filename Args Function call depth Reached by Fuzzers Runtime reached by Fuzzers Combined reached by Fuzzers Fuzzers runtime hit Func lines hit % I Count BB Count Cyclomatic complexity Functions reached Reached by functions Accumulated cyclomatic complexity Undiscovered complexity

Files and Directories in report

This section shows which files and directories are considered in this report. The main reason for showing this is fuzz introspector may include more code in the reasoning than is desired. This section helps identify if too many files/directories are included, e.g. third party code, which may be irrelevant for the threat model. In the event too much is included, fuzz introspector supports a configuration file that can exclude data from the report. See the following link for more information on how to create a config file: link

Files in report

Source file Reached by Covered by
[] []
/src/selinux/libsepol/src/services.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/context_record.c [] []
/src/selinux/libsepol/src/../cil/src/cil_resolve_ast.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_build_ast.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/avrule_block.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libselinux/src/policyvers.c [] []
/src/selinux/checkpolicy/queue.c ['checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_lexer.c ['secilc-fuzzer'] []
/src/selinux/libselinux/src/regex.c ['selabel_file_text-fuzzer', 'selabel_file_compiled-fuzzer'] []
/src/selinux/libselinux/fuzz/selabel_file_text-fuzzer.c ['selabel_file_text-fuzzer'] []
/src/selinux/libselinux/fuzz/selabel_file_compiled-fuzzer.c ['selabel_file_compiled-fuzzer'] []
/src/selinux/libsepol/fuzz/secilc-fuzzer.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/module_to_cil.c ['checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_log.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_symtab.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/mls.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/DESTDIR/usr/include/sepol/policydb/context.h ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libselinux/src/callbacks.c ['selabel_file_text-fuzzer', 'selabel_file_compiled-fuzzer'] []
/src/selinux/libselinux/src/./selinux_internal.h [] []
/src/selinux/libselinux/src/canonicalize_context.c [] []
/src/selinux/libselinux/src/label.c ['selabel_file_text-fuzzer'] []
/src/selinux/libselinux/src/label_media.c [] []
/src/selinux/DESTDIR/usr/include/sepol/policydb/ebitmap.h ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libselinux/src/lsetfilecon.c [] []
/src/selinux/checkpolicy/policy_define.c ['checkpolicy-fuzzer'] []
/src/selinux/libselinux/src/label_x.c [] []
/src/selinux/libselinux/src/lgetfilecon.c [] []
/src/selinux/libsepol/src/../cil/src/cil_fqn.c ['secilc-fuzzer'] []
/src/selinux/libselinux/src/check_context.c [] []
/src/selinux/libselinux/src/freecon.c [] []
/src/selinux/libselinux/src/sha1.c [] []
/src/selinux/libselinux/src/enabled.c [] []
/src/selinux/libsepol/src/../cil/src/cil_verify.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/polcaps.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/hierarchy.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/fuzz/binpolicy-fuzzer.c ['binpolicy-fuzzer'] []
/src/selinux/libsepol/src/symtab.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/checkpolicy/fuzz/checkpolicy-fuzzer.c ['checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/kernel_to_common.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/checkpolicy/policy_scan.l ['checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/debug.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/libselinux/src/label_support.c ['selabel_file_text-fuzzer'] []
/src/selinux/libsepol/src/ebitmap.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libselinux/src/setrans_client.c [] []
/src/selinux/libsepol/src/optimize.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libselinux/src/label_file.c ['selabel_file_text-fuzzer', 'selabel_file_compiled-fuzzer'] []
/src/selinux/libsepol/src/conditional.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/policydb_convert.c [] []
/src/selinux/libselinux/src/label_db.c [] []
/src/selinux/libsepol/src/../cil/src/cil_post.c ['secilc-fuzzer'] []
/usr/include/x86_64-linux-gnu/bits/uintn-identity.h [] []
/src/selinux/DESTDIR/usr/include/sepol/policydb/mls_types.h ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_binary.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/avtab.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_tree.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_lexer.l ['secilc-fuzzer'] []
/src/selinux/libselinux/src/selinux_config.c [] []
/src/selinux/libselinux/src/seusers.c [] []
/usr/include/x86_64-linux-gnu/bits/byteswap.h ['selabel_file_compiled-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_deny.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/sidtab.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/expand.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_policy.c [] []
/src/selinux/libsepol/src/context.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/checkpolicy/lex.yy.c ['checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/policydb_public.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/link.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/checkpolicy/parse_util.c [] []
/src/selinux/libsepol/src/../cil/src/cil_reset_ast.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_parser.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/./private.h ['binpolicy-fuzzer'] []
/src/selinux/libsepol/src/hashtab.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/write.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/assertion.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_find.c ['secilc-fuzzer'] []
/src/selinux/libselinux/src/selinux_internal.c [] []
/src/selinux/libsepol/src/util.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_copy_ast.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_write_ast.c [] []
/src/selinux/libsepol/src/policydb_validate.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/module.c [] []
/src/selinux/libsepol/src/constraint.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_list.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_stack.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/policydb.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer', 'secilc-fuzzer'] []
/src/selinux/checkpolicy/y.tab.c ['checkpolicy-fuzzer'] []
/src/selinux/checkpolicy/module_compiler.c ['checkpolicy-fuzzer'] []
/src/selinux/libselinux/src/./label_file.h ['selabel_file_text-fuzzer', 'selabel_file_compiled-fuzzer'] []
/src/selinux/libsepol/src/kernel_to_conf.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/libselinux/src/init.c [] []
/src/selinux/libselinux/src/matchpathcon.c ['selabel_file_text-fuzzer'] []
/src/selinux/libsepol/src/kernel_to_cil.c ['binpolicy-fuzzer', 'checkpolicy-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_strpool.c ['secilc-fuzzer'] []
/src/selinux/libsepol/src/../cil/src/cil_mem.c ['secilc-fuzzer'] []

Directories in report

Directory
/usr/include/x86_64-linux-gnu/bits/
/src/selinux/libsepol/src/../cil/src/
/src/selinux/checkpolicy/
/src/selinux/DESTDIR/usr/include/sepol/policydb/
/src/selinux/checkpolicy/fuzz/
/src/selinux/libsepol/src/./
/src/selinux/libselinux/src/
/src/selinux/libselinux/fuzz/
/src/selinux/libsepol/src/
/src/selinux/libselinux/src/./
/src/selinux/libsepol/fuzz/