Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern PR/46973: Dr. Wolfgang Stukenbrock: kauth_authorize...



details:   https://anonhg.NetBSD.org/src/rev/901cd227c14a
branches:  trunk
changeset: 781581:901cd227c14a
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Sep 16 14:35:26 2012 +0000

description:
PR/46973: Dr. Wolfgang Stukenbrock: kauth_authorize_action_internal() returns
non-macro value as it should do

diffstat:

 sys/kern/kern_auth.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r a2678215d2af -r 901cd227c14a sys/kern/kern_auth.c
--- a/sys/kern/kern_auth.c      Sun Sep 16 14:14:56 2012 +0000
+++ b/sys/kern/kern_auth.c      Sun Sep 16 14:35:26 2012 +0000
@@ -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 <elad%NetBSD.org@localhost>
@@ -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 @@
 
        /* Short-circuit requests coming from the kernel. */
        if (cred == NOCRED || cred == FSCRED)
-               return (0);
+               return KAUTH_RESULT_ALLOW;
 
        KASSERT(scope != NULL);
 



Home | Main Index | Thread Index | Old Index