[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Re: svn behavior in chroot-environments

From: Ben Reser <ben_at_reser.org>
Date: 2004-07-09 02:53:00 CEST

On Thu, Jul 08, 2004 at 02:46:05PM -0500, Ben Collins-Sussman wrote:
> On Thu, 2004-07-08 at 14:38, Mathias Gumz wrote:
>
> > +----------------------
> > Authentication realm: 4dae73a5-61d1-0310-b756-82608f2b7470
> > Username:
> > +----------------------
>
> Sure enough, if you look in ra_local's open() function, it's using
> session->uuid as the "realmstring" to the auth system. But why the heck
> is it *ever* calling a prompting function? Is this a bug in our auth
> system?
>
> Maybe not. Looking at the username-provider, it looks like we (1) try
> to get --username, (2) try to get a username from the auth cache, (3)
> run getuid().
>
> Somehow, by running in a chroot environment, our auth system is "rolling
> over" into a prompting provider, which is prompting for a username. I
> guess the behavior is explainable, but not the underlying cause of the
> provider rollover. Perhaps getuid() is failing?

Yup. He probably doesn't have an /etc/passwd file in his chroot.
He needs to make one, it doesn't need passwords in it, but it needs
enough for getpwuid() to succeed.

-- 
Ben Reser <ben@reser.org>
http://ben.reser.org
"Conscience is the inner voice which warns us somebody may be looking."
- H.L. Mencken
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Jul 9 02:53:08 2004

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.