From: deraadt Date: Sun, 16 Feb 1997 00:04:25 +0000 (+0000) Subject: give up on amd -M until amd gets proper localhost detection X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=abb6b5f5599696b1e0496c00a1b8bc1066d9904a;p=openbsd give up on amd -M until amd gets proper localhost detection --- 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