summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornonaka <nonaka@NetBSD.org>2012-03-14 13:41:07 +0000
committernonaka <nonaka@NetBSD.org>2012-03-14 13:41:07 +0000
commitf1aa030b97bfcf899559acdf017cefe8fd29020a (patch)
tree7c6e9d99623c8cac7bf1430f6f1d56410b1b2a31
parent8e0fe2e0d7a3a7b233b9f1f6dd5cdcc916b3b744 (diff)
lynxfb too.
> Replace the remaining KAUTH_GENERIC_ISSUSER authorization calls with > something meaningful. All relevant documentation has been updated or > written.
-rw-r--r--sys/dev/pci/lynxfb.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sys/dev/pci/lynxfb.c b/sys/dev/pci/lynxfb.c
index e82bdbd8ffa..f844b10d016 100644
--- a/sys/dev/pci/lynxfb.c
+++ b/sys/dev/pci/lynxfb.c
@@ -1,4 +1,4 @@
-/* $NetBSD: lynxfb.c,v 1.3 2012/03/11 15:58:56 nonaka Exp $ */
+/* $NetBSD: lynxfb.c,v 1.4 2012/03/14 13:41:07 nonaka Exp $ */
/* $OpenBSD: smfb.c,v 1.13 2011/07/21 20:36:12 miod Exp $ */
/*
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: lynxfb.c,v 1.3 2012/03/11 15:58:56 nonaka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: lynxfb.c,v 1.4 2012/03/14 13:41:07 nonaka Exp $");
#include "opt_wsemul.h"
@@ -478,8 +478,8 @@ lynxfb_mmap(void *v, void *vs, off_t offset, int prot)
* restrict all other mappings to processes with superuser privileges
* or the kernel itself
*/
- if (kauth_authorize_generic(kauth_cred_get(), KAUTH_GENERIC_ISSUSER,
- NULL) != 0) {
+ if (kauth_authorize_machdep(kauth_cred_get(),
+ KAUTH_MACHDEP_UNMANAGEDMEM, NULL, NULL, NULL, NULL) != 0) {
aprint_normal_dev(sc->sc_dev, "mmap() rejected.\n");
return (-1);
}