summaryrefslogtreecommitdiff
path: root/sys/dev/qbus
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/qbus
parentfc9422c9d9d5eec5abd0d58ae5fa47aedf2198e3 (diff)
integrate kauth.
Diffstat (limited to 'sys/dev/qbus')
-rw-r--r--sys/dev/qbus/dhu.c6
-rw-r--r--sys/dev/qbus/dl.c6
-rw-r--r--sys/dev/qbus/dz_uba.c4
-rw-r--r--sys/dev/qbus/ts.c4
4 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/qbus/dhu.c b/sys/dev/qbus/dhu.c
index 75edd285324..6280f225e9f 100644
--- a/sys/dev/qbus/dhu.c
+++ b/sys/dev/qbus/dhu.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dhu.c,v 1.42 2006/03/29 18:17:36 thorpej Exp $ */
+/* $NetBSD: dhu.c,v 1.43 2006/05/14 21:45:00 elad Exp $ */
/*
* Copyright (c) 2003, Hugh Graham.
* Copyright (c) 1992, 1993
@@ -68,7 +68,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dhu.c,v 1.42 2006/03/29 18:17:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dhu.c,v 1.43 2006/05/14 21:45:00 elad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -467,7 +467,7 @@ dhuopen(dev, flag, mode, l)
(void) dhuparam(tp, &tp->t_termios);
ttsetwater(tp);
} else if ((tp->t_state & TS_XCLUDE) &&
- suser(l->l_proc->p_ucred, &l->l_proc->p_acflag) != 0)
+ kauth_authorize_generic(l->l_proc->p_cred, KAUTH_GENERIC_ISSUSER, &l->l_proc->p_acflag) != 0)
return (EBUSY);
/* Use DMBIS and *not* DMSET or else we clobber incoming bits */
if (dhumctl(sc, line, DML_DTR|DML_RTS, DMBIS) & DML_DCD)
diff --git a/sys/dev/qbus/dl.c b/sys/dev/qbus/dl.c
index 65460844873..7abe5cb3ac6 100644
--- a/sys/dev/qbus/dl.c
+++ b/sys/dev/qbus/dl.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dl.c,v 1.32 2006/03/29 18:17:36 thorpej Exp $ */
+/* $NetBSD: dl.c,v 1.33 2006/05/14 21:45:00 elad Exp $ */
/*-
* Copyright (c) 1996, 1997 The NetBSD Foundation, Inc.
@@ -111,7 +111,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dl.c,v 1.32 2006/03/29 18:17:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dl.c,v 1.33 2006/05/14 21:45:00 elad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -356,7 +356,7 @@ dlopen(dev_t dev, int flag, int mode, struct lwp *l)
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;
return ((*tp->t_linesw->l_open)(dev, tp));
diff --git a/sys/dev/qbus/dz_uba.c b/sys/dev/qbus/dz_uba.c
index e45f005a987..39cc892a9be 100644
--- a/sys/dev/qbus/dz_uba.c
+++ b/sys/dev/qbus/dz_uba.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dz_uba.c,v 1.24 2006/03/29 18:17:36 thorpej Exp $ */
+/* $NetBSD: dz_uba.c,v 1.25 2006/05/14 21:45:00 elad Exp $ */
/*
* Copyright (c) 1998 Ludd, University of Lule}, Sweden. All rights reserved.
* Copyright (c) 1996 Ken C. Wellsch. All rights reserved.
@@ -31,7 +31,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: dz_uba.c,v 1.24 2006/03/29 18:17:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: dz_uba.c,v 1.25 2006/05/14 21:45:00 elad Exp $");
#include <sys/param.h>
#include <sys/systm.h>
diff --git a/sys/dev/qbus/ts.c b/sys/dev/qbus/ts.c
index 7e4e800c232..a7c0d167d9c 100644
--- a/sys/dev/qbus/ts.c
+++ b/sys/dev/qbus/ts.c
@@ -1,4 +1,4 @@
-/* $NetBSD: ts.c,v 1.17 2006/03/29 18:17:36 thorpej Exp $ */
+/* $NetBSD: ts.c,v 1.18 2006/05/14 21:45:00 elad Exp $ */
/*-
* Copyright (c) 1991 The Regents of the University of California.
@@ -66,7 +66,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ts.c,v 1.17 2006/03/29 18:17:36 thorpej Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ts.c,v 1.18 2006/05/14 21:45:00 elad Exp $");
#undef TSDEBUG