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/resolvconf-admin-0.3/resolvconf-admin.c
Examining data/resolvconf-admin-0.3/tests/getifname.c

FINAL RESULTS:

data/resolvconf-admin-0.3/resolvconf-admin.c:290:7:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
  if (access(SBINRESOLVCONF, X_OK)) {
data/resolvconf-admin-0.3/resolvconf-admin.c:302:5:  [4] (format) snprintf:
  If format strings can be influenced by an attacker, they can be exploited,
  and note that sprintf variations do not always \0-terminate (CWE-134). Use
  a constant for the format specification.
    snprintf(label, sizeof(label)-1, "%s.%d." PROGNAME, ifname, getuid());
data/resolvconf-admin-0.3/resolvconf-admin.c:309:7:  [4] (shell) execle:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
      execle(SBINRESOLVCONF, "resolvconf", "-d", label, NULL, envp);
data/resolvconf-admin-0.3/resolvconf-admin.c:322:13:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (access(BACKUPNAME, F_OK) == 0) {
data/resolvconf-admin-0.3/resolvconf-admin.c:364:5:  [4] (shell) execle:
  This causes a new program to execute and is difficult to use safely
  (CWE-78). try using a library call that implements the same functionality
  if available.
    execle(SBINRESOLVCONF, "resolvconf", "-a", label, NULL, envp);
data/resolvconf-admin-0.3/resolvconf-admin.c:392:14:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
    if (0 == access(ETCRESOLVCONF, F_OK)) {
data/resolvconf-admin-0.3/resolvconf-admin.c:394:18:  [4] (race) access:
  This usually indicates a security flaw. If an attacker can change anything
  along the path between the call to access() and the file's actual use
  (e.g., by moving files), the attacker can exploit the race condition
  (CWE-362/CWE-367!). Set up the correct permissions (e.g., using setuid())
  and try to open the file directly.
        if (0 == access(BACKUPNAME, F_OK)) {
data/resolvconf-admin-0.3/resolvconf-admin.c:50:18:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
typedef struct { char data[INET_ADDRSTRLEN]; } addrstr;
data/resolvconf-admin-0.3/resolvconf-admin.c:221:15:  [2] (misc) open:
  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).
  int oldfd = open(ETCRESOLVCONF, O_RDONLY);
data/resolvconf-admin-0.3/resolvconf-admin.c:257:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char label[1024];
data/resolvconf-admin-0.3/resolvconf-admin.c:258:3:  [2] (buffer) char:
  Statically-sized arrays can be improperly restricted, leading to potential
  overflows or other issues (CWE-119!/CWE-120). Perform bounds checking, use
  functions that limit length, or ensure that the size is larger than the
  maximum possible length.
  char preamble[1024];
data/resolvconf-admin-0.3/resolvconf-admin.c:315:18:  [2] (tmpfile) mkstemp:
  Potential for temporary file vulnerability in some circumstances. Some
  older Unix-like systems create temp files with permission to write by all
  by default, so be sure to set the umask to override this. Also, some older
  Unix systems might fail to use O_EXCL when opening the file, so make sure
  that O_EXCL is used by the library (CWE-377).
      pipes[1] = mkstemp(tmpname);
data/resolvconf-admin-0.3/resolvconf-admin.c:226:17:  [1] (buffer) strlen:
  Does not handle strings that are not \0-terminated; if given one it may
  perform an over-read (it could cause a crash if unprotected) (CWE-126).
    size_t sz = strlen(preamble);

ANALYSIS SUMMARY:

Hits = 13
Lines analyzed = 436 in approximately 0.03 seconds (12476 lines/second)
Physical Source Lines of Code (SLOC) = 337
Hits@level = [0]  22 [1]   1 [2]   5 [3]   0 [4]   7 [5]   0
Hits@level+ = [0+]  35 [1+]  13 [2+]  12 [3+]   7 [4+]   7 [5+]   0
Hits/KSLOC@level+ = [0+] 103.858 [1+] 38.5757 [2+] 35.6083 [3+] 20.7715 [4+] 20.7715 [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.