summaryrefslogtreecommitdiff
path: root/sys/dev/dec/dz.c
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/dec/dz.c
parentfc9422c9d9d5eec5abd0d58ae5fa47aedf2198e3 (diff)
integrate kauth.
Diffstat (limited to 'sys/dev/dec/dz.c')
-rw-r--r--sys/dev/dec/dz.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/dec/dz.c b/sys/dev/dec/dz.c
index 67300b946c2..642ebe3700c 100644
--- a/sys/dev/dec/dz.c
+++ b/sys/dev/dec/dz.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dz.c,v 1.18 2005/12/11 12:21:20 christos Exp $ */
+/* $NetBSD: dz.c,v 1.19 2006/05/14 21:42:27 elad Exp $ */
/*
* Copyright (c) 1992, 1993
* The Regents of the University of California. All rights reserved.
@@ -67,7 +67,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.18 2005/12/11 12:21:20 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dz.c,v 1.19 2006/05/14 21:42:27 elad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -359,7 +359,7 @@ dzopen(dev_t dev, int flag, int mode, struct lwp *l)
(void) dzparam(tp, &tp->t_termios);
ttsetwater(tp);
} else if ((tp->t_state & TS_XCLUDE) &&
- suser(p->p_ucred, &p->p_acflag) != 0)
+ kauth_authorize_generic(p->p_cred, KAUTH_GENERIC_ISSUSER, &p->p_acflag) != 0)
return (EBUSY);
/* Use DMBIS and *not* DMSET or else we clobber incoming bits */
if (dzmctl(sc, line, DML_DTR, DMBIS) & DML_DCD)