diff options
author | Bill Fenner <fenner@FreeBSD.org> | 1996-10-01 23:14:35 +0000 |
---|---|---|
committer | Bill Fenner <fenner@FreeBSD.org> | 1996-10-01 23:14:35 +0000 |
commit | 7dae516d8596864a1b6e3a9219e4561d2b24dc3b (patch) | |
tree | 5f918dd1d092d1a7ae36f00e49095a8cc8f24101 /usr.sbin/mrouted/main.c | |
parent | 7b00f0e0d53d2fb882b3d69fcbd37a2774ffcd89 (diff) | |
download | src-7dae516d8596864a1b6e3a9219e4561d2b24dc3b.tar.gz src-7dae516d8596864a1b6e3a9219e4561d2b24dc3b.zip |
Release setuid immediately after initializing; this minimizes the
possibility of security holes allowing root penetration.
Inspired by: Mark Handley <M.Handley@cs.ucl.ac.uk> and
Theo de Raadt <deraadt@theos.com> independently
Submitted by: Theo de Raadt <deraadt@theos.com>
Notes
Notes:
svn path=/head/; revision=18628
Diffstat (limited to 'usr.sbin/mrouted/main.c')
-rw-r--r-- | usr.sbin/mrouted/main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.sbin/mrouted/main.c b/usr.sbin/mrouted/main.c index b5ef723bcb73..21ae32150a50 100644 --- a/usr.sbin/mrouted/main.c +++ b/usr.sbin/mrouted/main.c @@ -7,7 +7,7 @@ * Leland Stanford Junior University. * * - * $Id: main.c,v 3.8 1995/11/29 22:36:34 fenner Rel $ + * $Id: main.c,v 1.7 1996/01/06 21:09:51 peter Exp $ */ /* @@ -34,7 +34,7 @@ #ifndef lint static char rcsid[] = - "@(#) $Id: main.c,v 3.8 1995/11/29 22:36:34 fenner Rel $"; + "@(#) $Id: main.c,v 1.7 1996/01/06 21:09:51 peter Exp $"; #endif extern char *configfilename; @@ -116,7 +116,7 @@ main(argc, argv) setlinebuf(stderr); if (geteuid() != 0) { - fprintf(stderr, "must be root\n"); + fprintf(stderr, "mrouted: must be root\n"); exit(1); } |