Unified getcwd() implementation

Marc Olzheim marcolz at stack.nl
Mon May 10 09:40:09 PDT 2004


On Sun, May 09, 2004 at 01:14:12AM +1000, Tim Robbins wrote:
> > - getcwd() having elevated permission to actually be able to find the
> >   real cwd.
> 
> >From what I can see, it still uses the caller's credentials in calls
> to VOP_GETATTR(), VOP_LOOKUP() and VOP_READDIR().

Erhm yes, you're right. That will be in the next patch. Perhaps yet
another sysctl to allow for per machine setting of allowing getcwd() to
resolv unreadable paths ?
That would be necessary for the linuxulator anyhow...

Marc


More information about the freebsd-current mailing list