Flawfinder version 2.0.10, (C) 2001-2019 David A. Wheeler. Number of rules (primarily dangerous function names) in C/C++ ruleset: 223 Examining data/secilc-3.1/secil2conf.c Examining data/secilc-3.1/secilc.c FINAL RESULTS: data/secilc-3.1/secil2conf.c:85:14: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. opt_char = getopt_long(argc, argv, "o:hvM:P", long_opts, &opt_index); data/secilc-3.1/secilc.c:128:14: [3] (buffer) getopt_long: Some older implementations do not protect against internal buffer overflows (CWE-120, CWE-20). Check implementation on installation, or limit the size of all string inputs. opt_char = getopt_long(argc, argv, "o:f:U:hvt:M:PDmNOc:GX:n", long_opts, &opt_index); data/secilc-3.1/secil2conf.c:131:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(argv[i], "r"); data/secilc-3.1/secil2conf.c:170:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen("policy.conf", "w"); data/secilc-3.1/secil2conf.c:172:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(output, "w"); data/secilc-3.1/secilc.c:257:10: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file = fopen(argv[i], "r"); data/secilc-3.1/secilc.c:326:11: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). binary = fopen(output, "w"); data/secilc-3.1/secilc.c:357:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file_contexts = fopen("file_contexts", "w+"); data/secilc-3.1/secilc.c:359:19: [2] (misc) fopen: Check when opening files - can an attacker redirect it (via symlinks), force the opening of special file type (e.g., device files), move things around to create a race condition, control its ancestors, or change its contents? (CWE-362). file_contexts = fopen(filecontexts, "w+"); ANALYSIS SUMMARY: Hits = 9 Lines analyzed = 588 in approximately 0.04 seconds (16514 lines/second) Physical Source Lines of Code (SLOC) = 487 Hits@level = [0] 73 [1] 0 [2] 7 [3] 2 [4] 0 [5] 0 Hits@level+ = [0+] 82 [1+] 9 [2+] 9 [3+] 2 [4+] 0 [5+] 0 Hits/KSLOC@level+ = [0+] 168.378 [1+] 18.4805 [2+] 18.4805 [3+] 4.10678 [4+] 0 [5+] 0 Dot directories skipped = 1 (--followdotdir overrides) Minimum risk level = 1 Not every hit is necessarily a security vulnerability. There may be other security vulnerabilities; review your code! See 'Secure Programming HOWTO' (https://dwheeler.com/secure-programs) for more information.