Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 26 Nov 2000 23:50:11 -0500
From:      "Brian F. Feldman" <green@FreeBSD.org>
To:        "Brian F. Feldman" <green@FreeBSD.org>
Cc:        Peter Wemm <peter@netplex.com.au>, Alfred Perlstein <bright@wintelcom.net>, cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   Re: cvs commit: src/usr.sbin/inetd builtins.c 
Message-ID:  <200011270450.eAR4oG579042@green.dyndns.org>
In-Reply-To: Message from "Brian F. Feldman" <green@FreeBSD.org>  of "Sun, 26 Nov 2000 23:05:15 EST." <200011270405.eAR45H578642@green.dyndns.org> 

next in thread | previous in thread | raw e-mail | index | archive | help
"Brian F. Feldman" <green@FreeBSD.org> wrote:
> Peter Wemm <peter@netplex.com.au> wrote:
> > How about the O_NOFOLLOW flag?  It avoids the worst of the races because you
> > can open and lstat and be immune to symlink races.
> 
> I've decided the comment needed to be changed because the race condition to 
> be worried about is stat(), "okay, it's VREG", open() -> "Hey, it's not!".
> Whether it's a symlink or not doesn't matter since the user's credentials 
> are being used in the permission checks.  Now, the problem with this, is 
> that if the user is allowed to access a file (device?  weird file system?) 
> that does not correctly respect O_NONBLOCK, it can be still made to block.

And to mostly answer my own question :) what I'm looking for is mostly the 
filehandle stuff!  The only thing missing is the ability to set my effective 
permissions and have getfh() respect my current effective credentials while 
letting me use it because I'm "really" root.  It would be perfect. *hints at 
alfred*

--
 Brian Fundakowski Feldman           \  FreeBSD: The Power to Serve!  /
 green@FreeBSD.org                    `------------------------------'




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?200011270450.eAR4oG579042>