Date: Mon, 27 Nov 2000 22:29:00 -0700 From: Warner Losh <imp@village.org> To: Robert Watson <rwatson@FreeBSD.org> Cc: Peter Wemm <peter@netplex.com.au>, "Brian F. Feldman" <green@FreeBSD.org>, Alfred Perlstein <bright@wintelcom.net>, obrien@FreeBSD.org, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.sbin/inetd builtins.c Message-ID: <200011280529.WAA07456@harmony.village.org> In-Reply-To: Your message of "Mon, 27 Nov 2000 00:52:29 EST." <Pine.NEB.3.96L.1001127004343.36087A-100000@fledge.watson.org> References: <Pine.NEB.3.96L.1001127004343.36087A-100000@fledge.watson.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <Pine.NEB.3.96L.1001127004343.36087A-100000@fledge.watson.org> Robert Watson writes: : Presumably the only really correct solution here is to: : : 1) Set effective process rights to that of the user in question using : setusercontext() : 2) Open the file using open() : 3) fstat() the file to determine that it is regular and sane : 4) Proceed with operations I'm not sure I understand the need for #3. If the effective process rights are what you want, then the kernel will enforce protections at #2. What's is regular and sane? Warner To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200011280529.WAA07456>