Correct check for autoloaded modules.
This commit is contained in:
parent
d6b7340a23
commit
ec0326f0cf
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: secmodel_bsd44_suser.c,v 1.60 2008/11/12 12:36:28 ad Exp $ */
|
||||
/* $NetBSD: secmodel_bsd44_suser.c,v 1.61 2008/11/12 13:50:52 ad Exp $ */
|
||||
/*-
|
||||
* Copyright (c) 2006 Elad Efrat <elad@NetBSD.org>
|
||||
* All rights reserved.
|
||||
@ -38,7 +38,7 @@
|
||||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44_suser.c,v 1.60 2008/11/12 12:36:28 ad Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: secmodel_bsd44_suser.c,v 1.61 2008/11/12 13:50:52 ad Exp $");
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/param.h>
|
||||
@ -369,7 +369,7 @@ secmodel_bsd44_suser_system_cb(kauth_cred_t cred, kauth_action_t action,
|
||||
case KAUTH_SYSTEM_MODULE:
|
||||
if (isroot)
|
||||
result = KAUTH_RESULT_ALLOW;
|
||||
if ((uintptr_t)arg1 != 0) /* autoload */
|
||||
if ((uintptr_t)arg2 != 0) /* autoload */
|
||||
result = KAUTH_RESULT_ALLOW;
|
||||
break;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user