Subject: Re: sysutils/aperture and NetBSD 3.99.20
To: None <tech-pkg@netbsd.org>
From: None <joerg@britannica.bec.de>
List: tech-pkg
Date: 05/28/2006 16:31:17
On Sun, May 28, 2006 at 08:27:33AM -0600, John R. Shannon wrote:
> aperture.c does not compile with NetBSD 3.99.20. The following change 
> fixes the compilation problem and allows the aperture driver to work:
> 
> > --- module/aperture.c.orig    2006-05-28 07:56:07.000000000 -0600
> > +++ module/aperture.c
> > @@ -55,6 +55,7 @@
> >  #include <sys/conf.h>
> >  #include <sys/exec.h>
> >  #include <sys/lkm.h>
> > +#include <sys/kauth.h>
> >
> ---
> > -     if (suser(p->p_ucred, &p->p_acflag) != 0) {
> > +     if (kauth_authorize_generic(p->p_cred, KAUTH_GENERIC_ISSUSER, 
> &p->p_acflag) != 0) {
> 
> Should the patch be kernel version dependent?

It *must* be version dependent, since it would break older versions.

Joerg