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/libapache2-mod-ruid2-0.9.8/debian/patches/mod_ruid2.c
Examining data/libapache2-mod-ruid2-0.9.8/mod_ruid2.c

FINAL RESULTS:

data/libapache2-mod-ruid2-0.9.8/mod_ruid2.c:439:9:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
				if (chroot(".") != 0) {
data/libapache2-mod-ruid2-0.9.8/mod_ruid2.c:593:7:  [3] (misc) chroot:
  chroot can be very helpful, but is hard to use correctly (CWE-250, CWE-22).
  Make sure the program immediately chdir("/"), closes file descriptors, and
  drops root privileges, and that all necessary files (and no more!) are in
  the new root.
		if (chroot(conf->chroot_dir) != 0)
data/libapache2-mod-ruid2-0.9.8/mod_ruid2.c:153:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(conf->groups, child->groups, sizeof(child->groups));
data/libapache2-mod-ruid2-0.9.8/mod_ruid2.c:156:4:  [2] (buffer) memcpy:
  Does not check for buffer overflows when copying to destination (CWE-120).
  Make sure destination can always hold the source data.
			memcpy(conf->groups, parent->groups, sizeof(parent->groups));
data/libapache2-mod-ruid2-0.9.8/mod_ruid2.c:363:22:  [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).
		if ((root_handle = open("/.", O_RDONLY)) < 0) {

ANALYSIS SUMMARY:

Hits = 5
Lines analyzed = 685 in approximately 0.04 seconds (15561 lines/second)
Physical Source Lines of Code (SLOC) = 490
Hits@level = [0]   0 [1]   0 [2]   3 [3]   2 [4]   0 [5]   0
Hits@level+ = [0+]   5 [1+]   5 [2+]   5 [3+]   2 [4+]   0 [5+]   0
Hits/KSLOC@level+ = [0+] 10.2041 [1+] 10.2041 [2+] 10.2041 [3+] 4.08163 [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.