diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-12 17:14:05 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2002-05-12 17:14:05 +0000 |
commit | 43842e811d5886d3ca1bd9e833b5a327c08c21aa (patch) | |
tree | 9519a9dc2c803a6917ac4d8200808e4b40130bbc | |
parent | 09101e13b4b9b464a686f6fa57d11183bbd60dda (diff) |
These small setuid programs allocate a resvport, and then immediately revoke
privs. Link them static, so that even less code is run before main does that
job.
-rw-r--r-- | sbin/ping/Makefile | 3 | ||||
-rw-r--r-- | sbin/ping6/Makefile | 3 | ||||
-rw-r--r-- | usr.sbin/traceroute/Makefile | 3 | ||||
-rw-r--r-- | usr.sbin/traceroute6/Makefile | 3 |
4 files changed, 8 insertions, 4 deletions
diff --git a/sbin/ping/Makefile b/sbin/ping/Makefile index 540c356f820..764d110881f 100644 --- a/sbin/ping/Makefile +++ b/sbin/ping/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.3 1997/09/21 11:37:55 deraadt Exp $ +# $OpenBSD: Makefile,v 1.4 2002/05/12 17:14:02 deraadt Exp $ PROG= ping MAN= ping.8 BINOWN= root BINMODE=4555 +LDSTATIC=-static .include <bsd.prog.mk> diff --git a/sbin/ping6/Makefile b/sbin/ping6/Makefile index 4f4b63a6031..3de7f2088ab 100644 --- a/sbin/ping6/Makefile +++ b/sbin/ping6/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.4 2000/06/20 20:00:03 itojun Exp $ +# $OpenBSD: Makefile,v 1.5 2002/05/12 17:14:04 deraadt Exp $ PROG= ping6 MAN= ping6.8 @@ -11,6 +11,7 @@ CPPFLAGS+= -DINET6 BINOWN= root BINGRP= bin BINMODE=4555 +LDSTATIC=-static # kame scopeid hack CPPFLAGS+=-DKAME_SCOPEID diff --git a/usr.sbin/traceroute/Makefile b/usr.sbin/traceroute/Makefile index 19bd10b9752..dc11c9d65d2 100644 --- a/usr.sbin/traceroute/Makefile +++ b/usr.sbin/traceroute/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.2 1997/09/21 11:44:32 deraadt Exp $ +# $OpenBSD: Makefile,v 1.3 2002/05/12 17:14:04 deraadt Exp $ PROG= traceroute MAN= traceroute.8 BINOWN= root BINMODE=4555 +LDSTATIC=-static .include <bsd.prog.mk> diff --git a/usr.sbin/traceroute6/Makefile b/usr.sbin/traceroute6/Makefile index db93af76f17..3baed4f776c 100644 --- a/usr.sbin/traceroute6/Makefile +++ b/usr.sbin/traceroute6/Makefile @@ -1,10 +1,11 @@ -# $OpenBSD: Makefile,v 1.3 2000/10/07 21:47:31 itojun Exp $ +# $OpenBSD: Makefile,v 1.4 2002/05/12 17:14:04 deraadt Exp $ PROG= traceroute6 BINOWN= root BINGRP= bin BINMODE=4555 +LDSTATIC=-static CPPFLAGS+=-DINET6 -DHAVE_POLL |