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/libpam-net-0.3/pam_net_checkgroup.c
Examining data/libpam-net-0.3/pam_net_checkgroup.h
Examining data/libpam-net-0.3/pam_newnet.c
Examining data/libpam-net-0.3/pam_usernet.c

FINAL RESULTS:

data/libpam-net-0.3/pam_usernet.c:101:2:  [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 etc_netns_path[sizeof(NETNS_ETC_DIR) + NAME_MAX];
data/libpam-net-0.3/pam_usernet.c:102:2:  [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 netns_name[PATH_MAX];
data/libpam-net-0.3/pam_usernet.c:103:2:  [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 etc_name[PATH_MAX];
data/libpam-net-0.3/pam_usernet.c:251:9:  [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).
	nsfd = open(ns_path, O_RDONLY|O_CREAT|O_EXCL, 0);
data/libpam-net-0.3/pam_usernet.c:287:9:  [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).
	nsfd = open(ns_path, O_RDONLY);
data/libpam-net-0.3/pam_usernet.c:316:2:  [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 ns_path[PATH_MAX];

ANALYSIS SUMMARY:

Hits = 6
Lines analyzed = 559 in approximately 0.03 seconds (20697 lines/second)
Physical Source Lines of Code (SLOC) = 345
Hits@level = [0]  27 [1]   0 [2]   6 [3]   0 [4]   0 [5]   0
Hits@level+ = [0+]  33 [1+]   6 [2+]   6 [3+]   0 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 95.6522 [1+] 17.3913 [2+] 17.3913 [3+]   0 [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.