diff options
author | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-04 13:57:33 +0000 |
---|---|---|
committer | Edwin Groothuis <edwin@FreeBSD.org> | 2003-09-04 13:57:33 +0000 |
commit | b45d036f4c06c5704df0b3a26b12911d6a376df8 (patch) | |
tree | 0cf45bc542c562c4d918d6526018dcff037218b3 /security/dcetest/files | |
parent | irc.d script for security/snort (diff) |
new port: dump MSRPC information
One-file-port, from @stake. This dumps information from
remote RPC. Much like "rpcinfo -p host" on unix hosts.
Please check my patches: I removed an unused function so
this wouldn't be marked as a security sensitive port, and
I'm not sure my Makefile change respects CFLAGS.
PR: ports/46991
Submitted by: Yonatan@xpert.com <Yonatan@xpert.com>
Notes
Notes:
svn path=/head/; revision=88535
Diffstat (limited to 'security/dcetest/files')
-rw-r--r-- | security/dcetest/files/patch-Makefile | 10 | ||||
-rw-r--r-- | security/dcetest/files/patch-tcpstuff.c | 32 | ||||
-rw-r--r-- | security/dcetest/files/patch-tcpstuff.h | 10 |
3 files changed, 52 insertions, 0 deletions
diff --git a/security/dcetest/files/patch-Makefile b/security/dcetest/files/patch-Makefile new file mode 100644 index 000000000000..9a12138dcf38 --- /dev/null +++ b/security/dcetest/files/patch-Makefile @@ -0,0 +1,10 @@ +--- Makefile.orig Sat Jan 11 06:22:46 2003 ++++ Makefile Sat Jan 11 06:23:10 2003 +@@ -1,6 +1,6 @@ + .SUFFIXES: .a .o .c + CC = gcc +-CFLAGS = -Wall -funsigned-char -c -fPIC -ggdb ++CFLAGS += -Wall -funsigned-char -c -fPIC -ggdb + + BINS = dcetest + ALL = $(BINS) diff --git a/security/dcetest/files/patch-tcpstuff.c b/security/dcetest/files/patch-tcpstuff.c new file mode 100644 index 000000000000..d05de6c8575b --- /dev/null +++ b/security/dcetest/files/patch-tcpstuff.c @@ -0,0 +1,32 @@ +--- tcpstuff.c.orig Sat Jan 11 06:46:08 2003 ++++ tcpstuff.c Sat Jan 11 06:50:59 2003 +@@ -229,6 +229,7 @@ + + + /* this function takes in a listenFd and returns an acceptedFd */ ++/* This is not used and gives a security warning in FreeBSD ports + int + tcp_accept(int listenFd) + { +@@ -242,12 +243,14 @@ + (struct sockaddr *)&clientAddr, + &addrLen)) < 0) + { ++*/ + /* This is always an error, looping or not */ ++/* + return -1; + } +- ++*/ + /* Set the "don't linger on close" option */ +- ++/* + lingerVal.l_onoff = 0; + lingerVal.l_linger = 0; + if (setsockopt(clientFd, SOL_SOCKET, SO_LINGER, +@@ -260,3 +263,4 @@ + return(clientFd); + + } ++*/ diff --git a/security/dcetest/files/patch-tcpstuff.h b/security/dcetest/files/patch-tcpstuff.h new file mode 100644 index 000000000000..165719123746 --- /dev/null +++ b/security/dcetest/files/patch-tcpstuff.h @@ -0,0 +1,10 @@ +--- tcpstuff.h.orig Sat Jan 11 06:48:15 2003 ++++ tcpstuff.h Sat Jan 11 06:48:54 2003 +@@ -42,5 +42,7 @@ + int + write_uint32(int fd,uint32 data); + ++/* This is not used and gives a warning in FreeBSD's ports system + int + tcp_accept(int listenFd); ++*/ |