From owner-cvs-all Fri Nov 24 20:13: 8 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id D8B1137B479; Fri, 24 Nov 2000 20:13:05 -0800 (PST) Received: (from green@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id UAA16251; Fri, 24 Nov 2000 20:13:05 -0800 (PST) (envelope-from green@FreeBSD.org) Message-Id: <200011250413.UAA16251@freefall.freebsd.org> From: Brian Feldman Date: Fri, 24 Nov 2000 20:13:05 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.sbin/inetd builtins.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG green 2000/11/24 20:13:05 PST Modified files: usr.sbin/inetd builtins.c Log: Security fix: correctly set groups according to the user. Previously, root's groups' permissions were being used, so a user could read up to 16 (excluding initial whitespace) bytes of e.g. a wheel-accessible file. Also, don't allow blocking on the opening of ~/.fakeid, so replace a fopen() with open() and fdopen(). I knew I'd be going to hell for using C file streams instead of POSIX syscalls... Revision Changes Path 1.26 +16 -7 src/usr.sbin/inetd/builtins.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message