audit_arg.c (08a5615cfe61083a4e51e93c2885aa09d852c627) audit_arg.c (ecd764b0ea7a1b7fb5f1e6632f8d8db9233f06ea)
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1999-2005 Apple Inc.
5 * Copyright (c) 2016-2017 Robert N. M. Watson
6 * All rights reserved.
7 *
8 * Portions of this software were developed by BAE Systems, the University of

--- 859 unchanged lines hidden (view full) ---

868static int
869audit_arg_vnode(struct vnode *vp, struct vnode_au_info *vnp)
870{
871 struct vattr vattr;
872 int error;
873
874 ASSERT_VOP_LOCKED(vp, "audit_arg_vnode");
875
1/*-
2 * SPDX-License-Identifier: BSD-3-Clause
3 *
4 * Copyright (c) 1999-2005 Apple Inc.
5 * Copyright (c) 2016-2017 Robert N. M. Watson
6 * All rights reserved.
7 *
8 * Portions of this software were developed by BAE Systems, the University of

--- 859 unchanged lines hidden (view full) ---

868static int
869audit_arg_vnode(struct vnode *vp, struct vnode_au_info *vnp)
870{
871 struct vattr vattr;
872 int error;
873
874 ASSERT_VOP_LOCKED(vp, "audit_arg_vnode");
875
876 VATTR_NULL(&vattr);
876 error = VOP_GETATTR(vp, &vattr, curthread->td_ucred);
877 if (error) {
878 /* XXX: How to handle this case? */
879 return (error);
880 }
881
882 vnp->vn_mode = vattr.va_mode;
883 vnp->vn_uid = vattr.va_uid;

--- 134 unchanged lines hidden ---
877 error = VOP_GETATTR(vp, &vattr, curthread->td_ucred);
878 if (error) {
879 /* XXX: How to handle this case? */
880 return (error);
881 }
882
883 vnp->vn_mode = vattr.va_mode;
884 vnp->vn_uid = vattr.va_uid;

--- 134 unchanged lines hidden ---