aboutsummaryrefslogtreecommitdiff
path: root/contrib/libpcap/fad-gifc.c
diff options
context:
space:
mode:
authorRick Macklem <rmacklem@FreeBSD.org>2026-01-08 16:27:32 +0000
committerRick Macklem <rmacklem@FreeBSD.org>2026-01-08 16:27:32 +0000
commita6d57f312f18bbeeda8a34e99d0a662b0db9a190 (patch)
treeb908909c330a8468b80f2a77ccf30d2158bdd476 /contrib/libpcap/fad-gifc.c
parent0aaa95ae02803ba0195c5da695ffbb17a79135bc (diff)
nfsd: Fix handling of hidden/system during Open/CreateHEADmain
When an NFSv4.n client specifies settings for the archive, hidden and/or system attributes during a Open/Create, the Open/Create fails for ZFS. This is caused by ZFS doing a secpolicy_xvattr() call, which fails for non-root. If this check is bypassed, ZFS panics. This patch resolves the problem by disabling va_flags for the VOP_CREATE() call in the NFSv4.n server and then setting the flags with a subsequent VOP_SETATTR(). This problem only affects FreeBSD-15 and main, since the archive, system and hidden attributes are not enabled for FreeBSD-14. I think a similar problem exists for the NFSv4.n Open/Create/Exclusive_41, but that will be resolved in a future commit. Note that the Linux, Solaris and FreeBSD clients do not set archive, hidden or system for Open/Create, so the bug does not affect mounts from those clients. PR: 292283 Reported by: Aurelien Couderc <aurelien.couderc2002@gmail.com> Tested by: Aurelien Couderc <aurelien.couderc2002@gmail.com> MFC after: 2 weeks
Diffstat (limited to 'contrib/libpcap/fad-gifc.c')
0 files changed, 0 insertions, 0 deletions