Audit additional vnode information in the implementation of the
ftruncate(2) system call. This was not required by the Common Criteria, which needed only open-time audit. MFC after: 2 weeks Sponsored by: DARPA, AFRL
This commit is contained in:
parent
2382c29e5f
commit
c3c0088bb0
@ -1302,6 +1302,7 @@ vn_truncate(struct file *fp, off_t length, struct ucred *active_cred,
|
||||
if (error)
|
||||
goto out1;
|
||||
vn_lock(vp, LK_EXCLUSIVE | LK_RETRY);
|
||||
AUDIT_ARG_VNODE1(vp);
|
||||
if (vp->v_type == VDIR) {
|
||||
error = EISDIR;
|
||||
goto out;
|
||||
|
Loading…
Reference in New Issue
Block a user