From owner-freebsd-hackers Sun Apr 1 23:25:42 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from dragon.nuxi.com (trang.nuxi.com [209.152.133.57]) by hub.freebsd.org (Postfix) with ESMTP id A069437B719; Sun, 1 Apr 2001 23:25:38 -0700 (PDT) (envelope-from obrien@NUXI.com) Received: (from obrien@localhost) by dragon.nuxi.com (8.11.3/8.11.1) id f326PZ909835; Sun, 1 Apr 2001 23:25:35 -0700 (PDT) (envelope-from obrien) Date: Sun, 1 Apr 2001 23:25:26 -0700 From: "David O'Brien" To: Robert Watson Cc: freebsd-hackers@FreeBSD.ORG, Greg Black , Bill Moran Subject: Re: Security problems with access(2)? Message-ID: <20010401232526.A9586@dragon.nuxi.com> Reply-To: freebsd-hackers@FreeBSD.ORG References: <20010401190458.A4991@dragon.nuxi.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: ; from rwatson@FreeBSD.ORG on Sun, Apr 01, 2001 at 11:02:11PM -0400 X-Operating-System: FreeBSD 5.0-CURRENT Organization: The NUXI BSD group X-Pgp-Rsa-Fingerprint: B7 4D 3E E9 11 39 5F A3 90 76 5D 69 58 D9 98 7A X-Pgp-Rsa-Keyid: 1024/34F9F9D5 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Sun, Apr 01, 2001 at 11:02:11PM -0400, Robert Watson wrote: > eaccess_file(2) - Using effective credentials, check to see if the > requested access is permitted on the file or directory identified by the > provided pathname. Why not stick to existing naming practices? eaccess() > eaccess_fd(2) - Using effective credentials, check to see if the > requested access is permitted on the file or directory associated with > the provided open file descriptor. Nope, faccess(2) (see fstat(2), flock(2), fchdir(2),...) and feaccess(2) > faccess(3) - Using effective credentials, check to see if the requested > access is permitted on the file or directory associated with the > provided open file stream. What's wrong with faccess(fileno(...)) and feaccess(fileno(...))? -- -- David (obrien@FreeBSD.org) To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message