Rename KAUTH_GENERIC_CANSEE to KAUTH_GENERIC_UNUSED1 and remove handling for

the former.

(I'll remove it from the header next time a kernel version bump happens.)
This commit is contained in:
elad 2009-12-24 19:02:07 +00:00
parent 36ec4b320c
commit dadcd7355c
2 changed files with 5 additions and 13 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: secmodel_suser.c,v 1.32 2009/11/18 09:47:18 stacktic Exp $ */
/* $NetBSD: secmodel_suser.c,v 1.33 2009/12/24 19:02:07 elad 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_suser.c,v 1.32 2009/11/18 09:47:18 stacktic Exp $");
__KERNEL_RCSID(0, "$NetBSD: secmodel_suser.c,v 1.33 2009/12/24 19:02:07 elad Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -237,14 +237,6 @@ secmodel_suser_generic_cb(kauth_cred_t cred, kauth_action_t action,
result = KAUTH_RESULT_ALLOW;
break;
case KAUTH_GENERIC_CANSEE:
if (!secmodel_suser_curtain)
result = KAUTH_RESULT_ALLOW;
else if (isroot || kauth_cred_uidmatch(cred, arg0))
result = KAUTH_RESULT_ALLOW;
break;
default:
break;
}

View File

@ -1,4 +1,4 @@
/* $NetBSD: kauth.h,v 1.63 2009/09/03 04:45:27 elad Exp $ */
/* $NetBSD: kauth.h,v 1.64 2009/12/24 19:02:07 elad Exp $ */
/*-
* Copyright (c) 2005, 2006 Elad Efrat <elad@NetBSD.org>
@ -73,8 +73,8 @@ typedef struct kauth_key *kauth_key_t;
* Generic scope - actions.
*/
enum {
KAUTH_GENERIC_CANSEE=1,
KAUTH_GENERIC_ISSUSER
KAUTH_GENERIC_UNUSED1=1,
KAUTH_GENERIC_ISSUSER,
};
/*