Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys Rename KAUTH_GENERIC_CANSEE to KAUTH_GENERIC_UNUSED1 and...
details: https://anonhg.NetBSD.org/src/rev/3bb925bde20a
branches: trunk
changeset: 750321:3bb925bde20a
user: elad <elad%NetBSD.org@localhost>
date: Thu Dec 24 19:02:07 2009 +0000
description:
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.)
diffstat:
sys/secmodel/suser/secmodel_suser.c | 12 ++----------
sys/sys/kauth.h | 6 +++---
2 files changed, 5 insertions(+), 13 deletions(-)
diffs (53 lines):
diff -r 7c38013a24b8 -r 3bb925bde20a sys/secmodel/suser/secmodel_suser.c
--- a/sys/secmodel/suser/secmodel_suser.c Thu Dec 24 19:01:12 2009 +0000
+++ b/sys/secmodel/suser/secmodel_suser.c Thu Dec 24 19:02:07 2009 +0000
@@ -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@localhost>
* 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 @@
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;
}
diff -r 7c38013a24b8 -r 3bb925bde20a sys/sys/kauth.h
--- a/sys/sys/kauth.h Thu Dec 24 19:01:12 2009 +0000
+++ b/sys/sys/kauth.h Thu Dec 24 19:02:07 2009 +0000
@@ -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@localhost>
@@ -73,8 +73,8 @@
* Generic scope - actions.
*/
enum {
- KAUTH_GENERIC_CANSEE=1,
- KAUTH_GENERIC_ISSUSER
+ KAUTH_GENERIC_UNUSED1=1,
+ KAUTH_GENERIC_ISSUSER,
};
/*
Home |
Main Index |
Thread Index |
Old Index