summaryrefslogtreecommitdiff
path: root/sys/dev/vme
diff options
context:
space:
mode:
authorelad <elad@NetBSD.org>2006-05-14 21:42:26 +0000
committerelad <elad@NetBSD.org>2006-05-14 21:42:26 +0000
commit2867b68bc3d7cdb1bb7b9f8367e4aa0b2fa765f4 (patch)
treea0add7b65b60ddf03960733156c82bfb90bc978d /sys/dev/vme
parentfc9422c9d9d5eec5abd0d58ae5fa47aedf2198e3 (diff)
integrate kauth.
Diffstat (limited to 'sys/dev/vme')
-rw-r--r--sys/dev/vme/xd.c7
-rw-r--r--sys/dev/vme/xy.c8
2 files changed, 9 insertions, 6 deletions
diff --git a/sys/dev/vme/xd.c b/sys/dev/vme/xd.c
index c4ad9df8689..a61a54320a0 100644
--- a/sys/dev/vme/xd.c
+++ b/sys/dev/vme/xd.c
@@ -1,4 +1,4 @@
-/* $NetBSD: xd.c,v 1.60 2006/03/28 17:38:38 thorpej Exp $ */
+/* $NetBSD: xd.c,v 1.61 2006/05/14 21:47:00 elad Exp $ */
/*
*
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xd.c,v 1.60 2006/03/28 17:38:38 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xd.c,v 1.61 2006/05/14 21:47:00 elad Exp $");
#undef XDC_DEBUG /* full debug */
#define XDC_DIAG /* extra sanity checks */
@@ -1120,7 +1120,8 @@ xdioctl(dev, command, addr, flag, l)
case DIOSXDCMD:
xio = (struct xd_iocmd *) addr;
- if ((error = suser(l->l_proc->p_ucred, &l->l_proc->p_acflag)) != 0)
+ if ((error = kauth_authorize_generic(l->l_proc->p_cred, KAUTH_GENERIC_ISSUSER,
+ &l->l_proc->p_acflag)) != 0)
return (error);
return (xdc_ioctlcmd(xd, dev, xio));
diff --git a/sys/dev/vme/xy.c b/sys/dev/vme/xy.c
index d6475652757..f400a07b154 100644
--- a/sys/dev/vme/xy.c
+++ b/sys/dev/vme/xy.c
@@ -1,4 +1,4 @@
-/* $NetBSD: xy.c,v 1.63 2006/05/10 06:24:03 skrll Exp $ */
+/* $NetBSD: xy.c,v 1.64 2006/05/14 21:47:00 elad Exp $ */
/*
*
@@ -51,7 +51,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.63 2006/05/10 06:24:03 skrll Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xy.c,v 1.64 2006/05/14 21:47:00 elad Exp $");
#undef XYC_DEBUG /* full debug */
#undef XYC_DIAG /* extra sanity checks */
@@ -1032,7 +1032,9 @@ xyioctl(dev, command, addr, flag, l)
case DIOSXDCMD:
xio = (struct xd_iocmd *) addr;
- if ((error = suser(l->l_proc->p_ucred, &l->l_proc->p_acflag)) != 0)
+ if ((error = kauth_authorize_generic(l->l_proc->p_cred,
+ KAUTH_GENERIC_ISSUSER,
+ &l->l_proc->p_acflag)) != 0)
return (error);
return (xyc_ioctlcmd(xy, dev, xio));