Re: news 2009-11-30

2009-12-03 Thread Arne Babenhauserheide
Am Donnerstag, 3. Dezember 2009 13:37:53 schrieb Arne Babenhauserheide:
> The first part grew a bit too large, I think. I would keep "explore" out of
>  the news. The Hurd also explored L4, but it can't be used. IMHO the
>  exploration part would have a better home on a seperate wikipage about
>  pcnet32 in userspace (which then should have a link in the news).

Rather: "This great first step opens up many interesting [options][] for 
cleaner device driver management." 

[options]: link/to/pcnet32-userspace#options

Best wishes, 
Arne


signature.asc
Description: This is a digitally signed message part.


Re: news 2009-11-30

2009-12-03 Thread Arne Babenhauserheide
Am Donnerstag, 3. Dezember 2009 13:06:36 schrieb Thomas Schwinge:
> On Wed, Dec 02, 2009 at 12:00:10AM +0100, Arne Babenhauserheide wrote:
> > I just wrote and pushed the news entry for 2009-11-30 (sorry for being
> > late).
> 
> Thanks.  I applied my usual amount of extensions and modifications, had a
> few people proof-read it, and made the result of all that official.

They are quite extensive - many thanks! 

The first part grew a bit too large, I think. I would keep "explore" out of the 
news. The Hurd also explored L4, but it can't be used. IMHO the exploration 
part would have a better home on a seperate wikipage about pcnet32 in 
userspace (which then should have a link in the news). 

Same information but more focussed on "this is what we accomplished last 
month". 

Best wishes, 
Arne


signature.asc
Description: This is a digitally signed message part.


Re: news 2009-11-30

2009-12-03 Thread Thomas Schwinge
Hello!

On Wed, Dec 02, 2009 at 12:00:10AM +0100, Arne Babenhauserheide wrote:
> I just wrote and pushed the news entry for 2009-11-30 (sorry for being late). 

Thanks.  I applied my usual amount of extensions and modifications, had a
few people proof-read it, and made the result of all that official.


> (had my exams and celebrated them...)

:-)


Regards,
 Thomas


signature.asc
Description: Digital signature


Re: [PATCH 2/3] Implement mountee startup.

2009-12-03 Thread Carl Fredrik Hammar
Hi,

On Sat, Nov 28, 2009 at 12:36:07AM +0100, olafbuddenha...@gmx.net wrote:
> On Wed, Nov 25, 2009 at 07:59:33PM +0100, Carl Fredrik Hammar wrote:
> > On Sun, Nov 22, 2009 at 09:05:16PM +0100, olafbuddenha...@gmx.net wrote:
> > > On Thu, Nov 19, 2009 at 10:28:37AM +0200, Sergiu Ivanov wrote:
> 
> > > > +  /* Fetch the effective UIDs of the unionfs process.  */
> > > > +  nuids = geteuids (0, 0);
> > > > +  if (nuids < 0)
> > > > +return EPERM;
> > > > +  uids = alloca (nuids * sizeof (uid_t));
> > > > +
> > > > +  nuids = geteuids (nuids, uids);
> > > > +  assert (nuids > 0);
> > > 
> > > Hrmph, I didn't spot this before: I don't think the assert() is right --
> > > "nuids" (or "ngids") being exactly 0, is probably a perfectly valid
> > > case... And even if it is not, the test in the assert should be
> > > equivalent to the EPERM test above, to avoid confusion.
> > 
> > geteuids() actual error (in errno) should be returned instead of EPERM.
> 
> Does geteuids() actually set errno?

Yes, it calls __hurd_fail() which sets it.

> > which becomes a problem if the number of UIDs grows between the calls
> > to geteuid().
> 
> Not sure this is really a problem. If the credentials change in the
> middle of things, we can't rely on the set being current anyways; so
> it's probably fine if it's truncated to the old size...

But then you are using credentials that are neither the old ones nor the
new ones.  This could only cause confusion.  Aborting with ``setauth not
supported'' (or some such) when (new_len > old_len) is better then this.

This seems appropriate since setauth is probably not handled right after
this setup anyway.  The only way to do this currently is by using file
descriptors instead of ports for directories.  I don't know the code
well enough to tell whether this is appropriate in this case...

There is also a _hurd_reauth_hook but it, and the macros used to
manipulate it, is private to glibc.  It could probably be used but it'd
be really ugly.

Regards,
  Fredrik