Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/external/cddl/osnet/sys Add omitted secpolicy_vnode_utime_mo...
details: https://anonhg.NetBSD.org/src/rev/521e35260ea4
branches: trunk
changeset: 782179:521e35260ea4
user: riastradh <riastradh%NetBSD.org@localhost>
date: Fri Oct 19 19:58:33 2012 +0000
description:
Add omitted secpolicy_vnode_utime_modify, for zfs.
diffstat:
external/cddl/osnet/sys/kern/policy.c | 9 ++++++++-
external/cddl/osnet/sys/sys/policy.h | 3 ++-
2 files changed, 10 insertions(+), 2 deletions(-)
diffs (40 lines):
diff -r 4649ce1af8ce -r 521e35260ea4 external/cddl/osnet/sys/kern/policy.c
--- a/external/cddl/osnet/sys/kern/policy.c Fri Oct 19 19:50:19 2012 +0000
+++ b/external/cddl/osnet/sys/kern/policy.c Fri Oct 19 19:58:33 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: policy.c,v 1.4 2012/10/18 14:22:58 riastradh Exp $ */
+/* $NetBSD: policy.c,v 1.5 2012/10/19 19:58:33 riastradh Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -205,6 +205,13 @@
return kauth_authorize_generic(cred, KAUTH_GENERIC_ISSUSER, NULL);
}
+static int
+secpolicy_vnode_utime_modify(kauth_cred_t cred)
+{
+
+ return kauth_authorize_generic(cred, KAUTH_GENERIC_ISSUSER, NULL);
+}
+
int
secpolicy_vnode_setdac(kauth_cred_t cred, uid_t owner)
{
diff -r 4649ce1af8ce -r 521e35260ea4 external/cddl/osnet/sys/sys/policy.h
--- a/external/cddl/osnet/sys/sys/policy.h Fri Oct 19 19:50:19 2012 +0000
+++ b/external/cddl/osnet/sys/sys/policy.h Fri Oct 19 19:58:33 2012 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: policy.h,v 1.6 2012/10/18 14:22:58 riastradh Exp $ */
+/* $NetBSD: policy.h,v 1.7 2012/10/19 19:58:33 riastradh Exp $ */
/*-
* Copyright (c) 2007 Pawel Jakub Dawidek <pjd%FreeBSD.org@localhost>
@@ -60,6 +60,7 @@
struct vattr *vap, const struct vattr *ovap, int flags,
int unlocked_access(void *, int, kauth_cred_t), void *node);
int secpolicy_vnode_create_gid(kauth_cred_t cred);
+int secpolicy_vnode_utime_modify(kauth_cred_t cred);
int secpolicy_vnode_setids_setgids(kauth_cred_t cred, gid_t gid);
int secpolicy_vnode_setid_retain(kauth_cred_t cred, boolean_t issuidroot);
void secpolicy_setid_clear(struct vattr *vap, kauth_cred_t cred);
Home |
Main Index |
Thread Index |
Old Index