Date: Sun, 17 Feb 2002 23:44:51 -0800 From: Terry Lambert <tlambert2@mindspring.com> To: Poul-Henning Kamp <phk@critter.freebsd.dk> Cc: Matthew Dillon <dillon@apollo.backplane.com>, Julian Elischer <julian@elischer.org>, Alfred Perlstein <bright@mu.org>, arch@FreeBSD.ORG, jhb@FreeBSD.ORG, peter@wemm.org, jake@locore.ca Subject: Re: gettimeofday() and crhold()/crfree() (was Re: gettimeofday()and copyout(). Is copyout() MPSAFE on non-i386 archs? ) Message-ID: <3C70B0F3.21426E19@mindspring.com> References: <32873.1014013080@critter.freebsd.dk>
next in thread | previous in thread | raw e-mail | index | archive | help
Poul-Henning Kamp wrote: > In message <3C70470E.BD2F048D@mindspring.com>, Terry Lambert writes: > > >I guess this would be read/write? > > Yes. > > >I don't think copyin() access would be the best way to > >do it, if that's the case, since the user could lie to > >the kernel that way. > > ...and consequently coredump... Heh. The "death penalty" for lying to the kernel... I can't say I don't approve. I was more worried about peple rewriting the uid in the reflected copy and getting bogus results. The degenerate case for local mail delivery, SAMBA, and other things that play musical credentials would be bad, though. 8-(. -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-arch" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C70B0F3.21426E19>