Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-9]: src/external/cddl/osnet/sys/kern Pull up following revision(s...



details:   https://anonhg.NetBSD.org/src/rev/92d9a8b2c497
branches:  netbsd-9
changeset: 964094:92d9a8b2c497
user:      martin <martin%NetBSD.org@localhost>
date:      Fri Aug 28 18:17:13 2020 +0000

description:
Pull up following revision(s) (requested by hannken in ticket #1066):

        external/cddl/osnet/sys/kern/policy.c: revision 1.9

Glue operation secpolicy_fs_mount() passes wrong arguments to
operation kauth_authorize_system().

KAUTH_SYSTEM_MOUNT / KAUTH_REQ_SYSTEM_MOUNT_NEW wants the to be
covered vnode and the mount flags, not the mount structure.

Fix for PR kern/55602: zpool panic on mounting zfs filesystem

diffstat:

 external/cddl/osnet/sys/kern/policy.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 529be0b2ce46 -r 92d9a8b2c497 external/cddl/osnet/sys/kern/policy.c
--- a/external/cddl/osnet/sys/kern/policy.c     Thu Aug 27 14:16:50 2020 +0000
+++ b/external/cddl/osnet/sys/kern/policy.c     Fri Aug 28 18:17:13 2020 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: policy.c,v 1.7 2018/05/28 21:05:09 chs Exp $   */
+/*     $NetBSD: policy.c,v 1.7.4.1 2020/08/28 18:17:13 martin Exp $    */
 
 /*-
  * Copyright (c) 2009 The NetBSD Foundation, Inc.
@@ -119,7 +119,7 @@
 {
 
        return kauth_authorize_system(cred, KAUTH_SYSTEM_MOUNT,
-           KAUTH_REQ_SYSTEM_MOUNT_NEW, vfsp, NULL, NULL);
+           KAUTH_REQ_SYSTEM_MOUNT_NEW, mvp, KAUTH_ARG(vfsp->mnt_flag), NULL);
 }
 
 int



Home | Main Index | Thread Index | Old Index