privsep patch, Please test

Tim Rice tim at multitalents.net
Thu May 30 14:03:43 EST 2002


On Wed, 29 May 2002, Ben Lindstrom wrote:

> > > I need to know what mmap is setting errno to.  Otherwise I'm making a
> > > guess in the dark (which is 2.2 Linux mmap is fucked, or you have a
> > > version of glibc that has a bad mmap).
> >
> > strace tells the story
> > open("/dev/zero", O_RDWR|O_LARGEFILE)   = 8
> > mmap(NULL, 65536, PROT_READ|PROT_WRITE, MAP_SHARED, 8, 0) = -1 EINVAL (Invalid a
> > rgument)
> >
> > The man page says
> >     EINVAL We don't like start or length  or  offset.   (E.g.,
> >            they  are  too  large, or not aligned on a PAGESIZE
> >            boundary.)
> >
> > I don't understand why it's happy with MAP_PRIVATE but doesn't like
> > MAP_SHARED.
> >
>
> What does getpagesize() say?  It should be 4096.

It's 4096 on my Caldera eDesktop 2.4 box (2.2.14).


-- 
Tim Rice				Multitalents	(707) 887-1469
tim at multitalents.net





More information about the openssh-unix-dev mailing list