cnupm is an IPv4/IPv6 traffic collector daemon; it listens on a network interface for IPv4/IPv6 packets that match the boolean expression (see tcpdump(8) for more information) and collects the following statistics: o address family (INET/INET6) o IPv4/IPv6 protocol number o source IPv4/IPv6 address o source TCP/UDP port o destination IPv4/IPv6 address o destination TCP/UDP port o total number of bytes transferred Based on the port from the cnupm author Oleg Safiullin <form@pdp-11.org.ru>. Help and ok pval@ naddy@.
13 lines
530 B
Plaintext
13 lines
530 B
Plaintext
$OpenBSD: patch-libcnupm_cnupm_restrict_c,v 1.1.1.1 2004/05/13 06:52:36 grange Exp $
|
|
--- libcnupm/cnupm_restrict.c.orig 2004-04-22 10:17:58.000000000 +0700
|
|
+++ libcnupm/cnupm_restrict.c 2004-04-26 20:28:27.000000000 +0700
|
|
@@ -55,7 +55,7 @@ cnupm_restrict(struct passwd *pw)
|
|
#endif /* HAVE_INITGROUPS */
|
|
#endif /* HAVE_LOGIN_CAP */
|
|
return (-1);
|
|
- if (chroot(pw->pw_dir) < 0 || chdir("/") < 0 || setuid(pw->pw_uid) < 0)
|
|
+ if (chroot(pw->pw_dir) < 0 || setuid(pw->pw_uid) < 0 || chdir("/") < 0)
|
|
return (-1);
|
|
return (0);
|
|
}
|