HomeFreeBSD

vfs: fixup WANTIOCTLCAPS on open

Description

vfs: fixup WANTIOCTLCAPS on open

In some cases vn_open_cred overwrites cn_flags, effectively nullifying
initialisation done in NDINIT. This will have to be fixed.

In the meantime make sure the flag is passed.

Reported by: jenkins
Noted by: Mathieu <sigsys@gmail.com>
Approved by: re (gjb)

(cherry picked from commit b7262756e2f471f6481070e2473af7853506b150)
(cherry picked from commit 792ebbb1557e290805d84b87653110681c7338a0)

Details

Provenance
mjgAuthored on Apr 2 2022, 6:35 PM
Parents
rGfffe016c8155: vfs: fix memory leak on lookup with fds with ioctl caps
Branches
Unknown
Tags
Unknown