Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc/dev Make explicitly clear that we mean raw I/...
details: https://anonhg.NetBSD.org/src/rev/164c444baac1
branches: trunk
changeset: 778415:164c444baac1
user: martin <martin%NetBSD.org@localhost>
date: Sun Mar 25 08:48:40 2012 +0000
description:
Make explicitly clear that we mean raw I/O on device passthru, not just
generic passthru.
diffstat:
sys/arch/sparc/dev/tctrl.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 56db6ff9a5eb -r 164c444baac1 sys/arch/sparc/dev/tctrl.c
--- a/sys/arch/sparc/dev/tctrl.c Sun Mar 25 08:45:02 2012 +0000
+++ b/sys/arch/sparc/dev/tctrl.c Sun Mar 25 08:48:40 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: tctrl.c,v 1.54 2012/03/13 18:40:28 elad Exp $ */
+/* $NetBSD: tctrl.c,v 1.55 2012/03/25 08:48:40 martin Exp $ */
/*-
* Copyright (c) 1998, 2005, 2006 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: tctrl.c,v 1.54 2012/03/13 18:40:28 elad Exp $");
+__KERNEL_RCSID(0, "$NetBSD: tctrl.c,v 1.55 2012/03/25 08:48:40 martin Exp $");
#include <sys/param.h>
#include <sys/systm.h>
@@ -1150,7 +1150,7 @@
case TCTRL_CMD_REQ:
reqn = (struct tctrl_req *)data;
if ((i = kauth_authorize_device_passthru(l->l_cred,
- dev, KAUTH_REQ_DEVICE_PASSTHRU_ALL, data)) != 0 &&
+ dev, KAUTH_REQ_DEVICE_RAWIO_PASSTHRU_ALL, data)) != 0 &&
(reqn->cmdbuf[0] == TS102_OP_CTL_BITPORT ||
(reqn->cmdbuf[0] >= TS102_OP_CTL_WATCHDOG &&
reqn->cmdbuf[0] <= TS102_OP_CTL_SECURITY_KEY) ||
Home |
Main Index |
Thread Index |
Old Index