Subject: sysutils/aperture and NetBSD 3.99.20
To: None <tech-pkg@netbsd.org>
From: John R. Shannon <john@johnrshannon.com>
List: tech-pkg
Date: 05/28/2006 08:27:33
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?

OK to commit the change?

-- 
John R. Shannon, CISSP
john@johnrshannon.com
jshannon@dsci-usa.com
john.r.shannon@us.army.mil
shannonjr@NetBSD.org