diff options
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); } |
