From 228630557e264fa21523fca2b99e3adb69518f69 Mon Sep 17 00:00:00 2001 From: obrien Date: Sat, 8 May 1999 00:46:06 +0000 Subject: Impliment elements of TCP Wrappers's `safe_finger'. * if run by root (or root process) drop privs * ensure output size is not infinate (net finger only) * ensure output lines are not infinate in length (net finger only) * do not allow finger client to run longer than 3 minutes (net finger only) --- usr.bin/finger/finger.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'usr.bin/finger/finger.h') diff --git a/usr.bin/finger/finger.h b/usr.bin/finger/finger.h index b8538fa..a3209cb 100644 --- a/usr.bin/finger/finger.h +++ b/usr.bin/finger/finger.h @@ -34,6 +34,7 @@ * SUCH DAMAGE. * * @(#)finger.h 8.1 (Berkeley) 6/6/93 + * $Id$ */ typedef struct person { @@ -62,4 +63,9 @@ typedef struct where { char host[UT_HOSTSIZE+1]; /* null terminated remote host name */ } WHERE; +#define UNPRIV_NAME "nobody" /* Preferred privilege level */ +#define UNPRIV_UGID 32767 /* Default uid and gid */ +#define OUTPUT_MAX 100000 /* Do not keep listinging forever */ +#define TIME_LIMIT 360 /* Do not keep listinging forever */ + #include "extern.h" -- cgit v1.1