Hi,
Can't compile vmware-module3 in -current without suser(9).
...
# compile linuxrtc/rtc.o
cc -O2 -ffreestanding -fno-strict-aliasing -Wno-pointer-sign -Wall
-Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Wno-sign-compare
-Wno-traditional -Wreturn-type -Wswitch -Wshadow -nostdinc -nostdinc -I.
-I/pkg_comp/obj/pkgsrc/emulators/vmware-module3/default/vmware-netbsd-3.2.1.8/source/linuxrtc
-isystem /usr/src/sys -isystem /usr/src/sys/arch -isystem
/usr/src/sys/../common/include -D_KERNEL -D_LKM -c rtc.c
rtc.c: In function 'rtc_open':
rtc.c:143: warning: implicit declaration of function 'suser'
rtc.c:143: error: 'struct proc' has no member named 'p_ucred'
*** Error code 1
This is the code:
static int
rtc_open(dev_t dev, int flag, int mode, struct ENTRYARG *l)
{
if (rtc_sc.sc_flags & RTC_OPEN)
return EBUSY;
if (suser(LWP2PROC(l)->p_ucred, &LWP2PROC(l)->p_acflag) != 0)
return EPERM;
rtc_sc.sc_flags = RTC_OPEN;
rtc_sc.sc_freq = 1000000 / hz;
return 0;
}
AFAIK, suser(9) is being replaced with kauth(9) framework.
Regards
--
César Catrián Carreño
Attachment:
pgpbF1l7hWTYw.pgp
Description: PGP signature