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/kern Add link our policy.
details: https://anonhg.NetBSD.org/src/rev/ad9e6ad51676
branches: trunk
changeset: 364583:ad9e6ad51676
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 30 16:34:27 2022 +0000
description:
Add link our policy.
diffstat:
external/cddl/osnet/sys/kern/policy.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (19 lines):
diff -r 221687a21900 -r ad9e6ad51676 external/cddl/osnet/sys/kern/policy.c
--- a/external/cddl/osnet/sys/kern/policy.c Wed Mar 30 14:54:29 2022 +0000
+++ b/external/cddl/osnet/sys/kern/policy.c Wed Mar 30 16:34:27 2022 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: policy.c,v 1.9 2020/08/28 16:13:48 hannken Exp $ */
+/* $NetBSD: policy.c,v 1.10 2022/03/30 16:34:27 christos Exp $ */
/*-
* Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -144,7 +144,8 @@
secpolicy_basic_link(vnode_t *vp, cred_t *cred)
{
- return kauth_authorize_generic(cred, KAUTH_GENERIC_ISSUSER, NULL);
+ return kauth_authorize_vnode(cred, KAUTH_VNODE_ADD_LINK, vp,
+ /* XXX dvp, currently unused */ NULL, 0);
}
int
Home |
Main Index |
Thread Index |
Old Index