diff options
| author | Rick Macklem <rmacklem@FreeBSD.org> | 2026-01-08 16:27:32 +0000 |
|---|---|---|
| committer | Rick Macklem <rmacklem@FreeBSD.org> | 2026-01-08 16:27:32 +0000 |
| commit | a6d57f312f18bbeeda8a34e99d0a662b0db9a190 (patch) | |
| tree | b908909c330a8468b80f2a77ccf30d2158bdd476 /ld/testsuite/ld-elfvers/(developers-only) | |
| parent | 0aaa95ae02803ba0195c5da695ffbb17a79135bc (diff) | |
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 'ld/testsuite/ld-elfvers/(developers-only)')
0 files changed, 0 insertions, 0 deletions
