aboutsummaryrefslogtreecommitdiff
path: root/sys/security/audit
diff options
context:
space:
mode:
authorAttilio Rao <attilio@FreeBSD.org>2008-08-28 15:23:18 +0000
committerAttilio Rao <attilio@FreeBSD.org>2008-08-28 15:23:18 +0000
commit0359a12eadcd66a9298e283fc5f3c90a9393322a (patch)
tree61fe2ab5660fec327061e18eda0ed8c65276f262 /sys/security/audit
parent57b00b9998798e15bb18275d710ebb6cb7ed8423 (diff)
Notes
Diffstat (limited to 'sys/security/audit')
-rw-r--r--sys/security/audit/audit_arg.c2
-rw-r--r--sys/security/audit/audit_worker.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/security/audit/audit_arg.c b/sys/security/audit/audit_arg.c
index 338fa1eab479..e142b122f918 100644
--- a/sys/security/audit/audit_arg.c
+++ b/sys/security/audit/audit_arg.c
@@ -762,7 +762,7 @@ audit_arg_vnode(struct vnode *vp, u_int64_t flags)
vnp = &ar->k_ar.ar_arg_vnode2;
}
- error = VOP_GETATTR(vp, &vattr, curthread->td_ucred, curthread);
+ error = VOP_GETATTR(vp, &vattr, curthread->td_ucred);
if (error) {
/* XXX: How to handle this case? */
return;
diff --git a/sys/security/audit/audit_worker.c b/sys/security/audit/audit_worker.c
index 88a45c1c9f78..a10d2b82f35a 100644
--- a/sys/security/audit/audit_worker.c
+++ b/sys/security/audit/audit_worker.c
@@ -128,7 +128,7 @@ audit_record_write(struct vnode *vp, struct ucred *cred, void *data,
if (error)
goto fail;
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
- error = VOP_GETATTR(vp, &vattr, cred, curthread);
+ error = VOP_GETATTR(vp, &vattr, cred);
VOP_UNLOCK(vp, 0);
if (error)
goto fail;