From 4ecba574db80c80f1994f6efc2305b221eb98fa0 Mon Sep 17 00:00:00 2001 From: kiyohara Date: Mon, 12 Mar 2007 14:12:13 +0000 Subject: [PATCH] Not KAUTH_DEVICE_TTY_OPEN but KAUTH_GENERIC_ISSUSER is used. --- sys/dev/bluetooth/btuart.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/dev/bluetooth/btuart.c b/sys/dev/bluetooth/btuart.c index 7244b970d90c..623179904dcc 100644 --- a/sys/dev/bluetooth/btuart.c +++ b/sys/dev/bluetooth/btuart.c @@ -1,4 +1,4 @@ -/* $NetBSD: btuart.c,v 1.3 2007/03/06 19:50:28 plunky Exp $ */ +/* $NetBSD: btuart.c,v 1.4 2007/03/12 14:12:13 kiyohara Exp $ */ /* * Copyright (c) 2006, 2007 KIYOHARA Takashi * All rights reserved. @@ -26,7 +26,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: btuart.c,v 1.3 2007/03/06 19:50:28 plunky Exp $"); +__KERNEL_RCSID(0, "$NetBSD: btuart.c,v 1.4 2007/03/12 14:12:13 kiyohara Exp $"); #include #include @@ -1066,7 +1066,7 @@ bth4open(dev_t device __unused, struct tty *tp) static char name[] = "btuart"; if ((error = kauth_authorize_device_tty(l->l_cred, - KAUTH_DEVICE_TTY_OPEN, tp)) != 0) + KAUTH_GENERIC_ISSUSER, tp)) != 0) return error; s = spltty();