HomeFreeBSD

vfs: Use file_cred for VOP_DEALLOCATE in vn_deallocate if non-NULL

Description

vfs: Use file_cred for VOP_DEALLOCATE in vn_deallocate if non-NULL

This changes vn_deallocate() to match the behavior of vn_rdwr() when
picking which ucred to use. That is, vn_deallocate() uses file_cred for
making VOP call if it is non-NULL, or use active_cred otherwise.

Sponsored by: The FreeBSD Foundation
Reviewed by: kib
Differential Revision: https://reviews.freebsd.org/D31712

Details

Provenance
khngAuthored on Sep 1 2021, 12:18 PM
Reviewer
kib
Differential Revision
D31712: vfs: Use file_cred for VOP_DEALLOCATE in vn_deallocate if non-NULL
Parents
rGf0c393f781f0: if_cdce: Add support for setting RX filtering
Branches
Unknown
Tags
Unknown