diff options
| author | elad <elad@NetBSD.org> | 2006-05-14 21:42:26 +0000 |
|---|---|---|
| committer | elad <elad@NetBSD.org> | 2006-05-14 21:42:26 +0000 |
| commit | 2867b68bc3d7cdb1bb7b9f8367e4aa0b2fa765f4 (patch) | |
| tree | a0add7b65b60ddf03960733156c82bfb90bc978d /sys/dev/arcbios | |
| parent | fc9422c9d9d5eec5abd0d58ae5fa47aedf2198e3 (diff) | |
integrate kauth.
Diffstat (limited to 'sys/dev/arcbios')
| -rw-r--r-- | sys/dev/arcbios/arcbios_tty.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/arcbios/arcbios_tty.c b/sys/dev/arcbios/arcbios_tty.c index a33aaa6026c..720240ac5fd 100644 --- a/sys/dev/arcbios/arcbios_tty.c +++ b/sys/dev/arcbios/arcbios_tty.c @@ -1,4 +1,4 @@ -/* $NetBSD: arcbios_tty.c,v 1.11 2005/12/11 12:21:14 christos Exp $ */ +/* $NetBSD: arcbios_tty.c,v 1.12 2006/05/14 21:42:26 elad Exp $ */ /* * Copyright (c) 1994, 1995, 1996 Carnegie-Mellon University. @@ -28,7 +28,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: arcbios_tty.c,v 1.11 2005/12/11 12:21:14 christos Exp $"); +__KERNEL_RCSID(0, "$NetBSD: arcbios_tty.c,v 1.12 2006/05/14 21:42:26 elad Exp $"); #include <sys/param.h> #include <sys/user.h> @@ -102,7 +102,8 @@ arcbios_ttyopen(dev_t dev, int flag, int mode, struct lwp *l) setuptimeout = 1; } 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) { splx(s); return (EBUSY); } |
