Module Name: src
Committed By: christos
Date: Sun Sep 16 14:35:26 UTC 2012
Modified Files:
src/sys/kern: kern_auth.c
Log Message:
PR/46973: Dr. Wolfgang Stukenbrock: kauth_authorize_action_internal() returns
non-macro value as it should do
To generate a diff of this commit:
cvs rdiff -u -r1.71 -r1.72 src/sys/kern/kern_auth.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/kern/kern_auth.c
diff -u src/sys/kern/kern_auth.c:1.71 src/sys/kern/kern_auth.c:1.72
--- src/sys/kern/kern_auth.c:1.71 Wed Jun 27 08:28:28 2012
+++ src/sys/kern/kern_auth.c Sun Sep 16 10:35:26 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: kern_auth.c,v 1.71 2012/06/27 12:28:28 cheusov Exp $ */
+/* $NetBSD: kern_auth.c,v 1.72 2012/09/16 14:35:26 christos Exp $ */
/*-
* Copyright (c) 2005, 2006 Elad Efrat <[email protected]>
@@ -28,7 +28,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.71 2012/06/27 12:28:28 cheusov Exp $");
+__KERNEL_RCSID(0, "$NetBSD: kern_auth.c,v 1.72 2012/09/16 14:35:26 christos Exp $");
#include <sys/types.h>
#include <sys/param.h>
@@ -930,7 +930,7 @@ kauth_authorize_action_internal(kauth_sc
/* Short-circuit requests coming from the kernel. */
if (cred == NOCRED || cred == FSCRED)
- return (0);
+ return KAUTH_RESULT_ALLOW;
KASSERT(scope != NULL);