Date: Sat, 31 Mar 2001 22:24:54 +0100 (BST) From: Jan Grant <Jan.Grant@bristol.ac.uk> To: Mike Meyer <mwm@mired.org> Cc: Bill Moran <wmoran@iowna.com>, questions <questions@freebsd.org> Subject: Re: access() system call Message-ID: <Pine.GSO.4.31.0103312223350.11901-100000@mail.ilrt.bris.ac.uk> In-Reply-To: <15046.13882.845275.101113@guru.mired.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Sat, 31 Mar 2001, Mike Meyer wrote: > Bill Moran <wmoran@iowna.com> types: > > This may be a question for -hackers, but I'll try here first. > > > > In the man page for the access(2) syscall, it states "access() is a > > potential security hole and should never be used." > > > > I have 3 questions regarding this: > > > > 1. What should I use instead? > > As others have indicated, stat. Or better yet, drop privs (if appropriate) and just use open(2). -- jan grant, ILRT, University of Bristol. http://www.ilrt.bris.ac.uk/ Tel +44(0)117 9287163 Fax +44 (0)117 9287112 RFC822 jan.grant@bris.ac.uk New Freedom of Information Act: theirs, to yours. Happy now? To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.GSO.4.31.0103312223350.11901-100000>