From 504aaad1fc4c8bed42da3d01490fbf6280726901 Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Sun, 16 Feb 1997 00:04:26 +0000 Subject: give up on amd -M until amd gets proper localhost detection --- usr.sbin/amd/amd/amq_subr.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'usr.sbin/amd') diff --git a/usr.sbin/amd/amd/amq_subr.c b/usr.sbin/amd/amd/amq_subr.c index 37e4142fb89..1355f22b201 100644 --- a/usr.sbin/amd/amd/amq_subr.c +++ b/usr.sbin/amd/amd/amq_subr.c @@ -36,7 +36,7 @@ * SUCH DAMAGE. * * from: @(#)amq_subr.c 8.1 (Berkeley) 6/6/93 - * $Id: amq_subr.c,v 1.2 1997/01/31 14:41:57 graichen Exp $ + * $Id: amq_subr.c,v 1.3 1997/02/16 00:04:25 deraadt Exp $ */ /* @@ -201,6 +201,7 @@ struct svc_req *rqstp; char *cp; plog(XLOG_INFO, "amq requested mount of %s", s); +#if 0 /* * Minimalist security check. */ @@ -208,6 +209,16 @@ struct svc_req *rqstp; rc = EACCES; return &rc; } +#else + /* + * Better security check. amd does not allocate a seperate + * socket to distinguish local connects; so the above security + * check is useless + */ + rc = EACCES; + return &rc; +#endif + /* * Find end of key -- cgit v1.2.3