From owner-freebsd-hackers Sun Apr 1 23:38:55 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from maxim.gbch.net (gw.gbch.net [203.24.22.66]) by hub.freebsd.org (Postfix) with SMTP id CDAD237B71C for ; Sun, 1 Apr 2001 23:38:47 -0700 (PDT) (envelope-from gjb@gbch.net) Received: (qmail 6151 invoked by uid 1001); 2 Apr 2001 16:38:43 +1000 Message-ID: X-Posted-By: GJB-Post 2.13 09-Feb-2001 X-Operating-System: FreeBSD 4.2-RELEASE i386 X-Location: Brisbane, Australia; 27.49841S 152.98439E X-URL: http://www.gbch.net/gjb.html X-Image-URL: http://www.gbch.net/gjb/gjb-auug048.gif X-GPG-Fingerprint: EBB2 2A92 A79D 1533 AC00 3C46 5D83 B6FB 4B04 B7D6 X-PGP-Public-Keys: http://www.gbch.net/keys.html Date: Mon, 02 Apr 2001 16:38:43 +1000 From: Greg Black To: freebsd-hackers@FreeBSD.ORG Cc: Robert Watson , Bill Moran , "David O'Brien" Subject: Re: Security problems with access(2)? References: <20010401190458.A4991@dragon.nuxi.com> <20010401232526.A9586@dragon.nuxi.com> In-reply-to: <20010401232526.A9586@dragon.nuxi.com> of Sun, 01 Apr 2001 23:25:26 MST Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG "David O'Brien" wrote: | 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(...))? My earlier agreement was with the concept; I do agree that this is a better naming scheme. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message