From nobody Mon Mar 9 16:42:52 2026 X-Original-To: freebsd-hackers@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4fV2rp08v1z6TV0P for ; Mon, 09 Mar 2026 16:43:38 +0000 (UTC) (envelope-from roland.mainz@nrubsig.org) Received: from buffalo.tulip.relay.mailchannels.net (buffalo.tulip.relay.mailchannels.net [23.83.218.24]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4fV2rn0xdhz3LQr for ; Mon, 09 Mar 2026 16:43:36 +0000 (UTC) (envelope-from roland.mainz@nrubsig.org) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=nrubsig.org header.s=dreamhost header.b=V1dVwzxb; dmarc=none; arc=pass ("mailchannels.net:s=arc-2022:i=1"); spf=neutral (mx1.freebsd.org: 23.83.218.24 is neither permitted nor denied by domain of roland.mainz@nrubsig.org) smtp.mailfrom=roland.mainz@nrubsig.org X-Sender-Id: dreamhost|x-authsender|gisburn@nrubsig.org Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 27BFB122924 for ; Mon, 09 Mar 2026 16:43:34 +0000 (UTC) Received: from pdx1-sub0-mail-a254.dreamhost.com (100-112-160-52.trex-nlb.outbound.svc.cluster.local [100.112.160.52]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id C7451123210 for ; Mon, 09 Mar 2026 16:43:33 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; d=mailchannels.net; s=arc-2022; cv=none; t=1773074613; b=YR5ODmAOmJMeHN6TPTBzmTbvIdtVNx4X/vc5YhR+uAoSObGM+mR91Li8J12ekbQKKoeViZ MnzibMHLlW42dKfGU1GEKLv9BrJSJAZLUpPkeXUGSsgxt3sZiqJyrU+SlokO7m/yKTPtNI thxS+pH2kFfC6bn1Pd3wVjDPBYL1cwEDferI+DrF4+Dhpu7OttBkNkcqGb1pVUCxb2KP5y yi45jyDpeGtYCYDGzb+DpwloccRw3+Wjtj7CW7gP6t3a02In1UeYczqA/mbeOeg0arBPIs Hdvl//awKIlpYvgdG/+imc/qhM8yeuNLBxEI63qSFWUbve83ajLuk2ef+aWi7Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=mailchannels.net; s=arc-2022; t=1773074613; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:dkim-signature; bh=OG83P6ZcxBoc9N7xzW9SSU+JttciH345PcrRYhmg9c4=; b=ivDj1BsuFhL64wFvAgk7vzjwsugxQozsFMpxmk73p7V/9wBvwkb+z0ASPBM2IiB6whIa0p V7HtJwLeigKq2/x6yfC1iuU83zCZsrpH61+Vp69ITtrTOXNuVQdWmE6uyj/hainy30nhGD I6zlLzLBtbXPjcsmU1YEaqRp9oqDG4km7e+TLzmdcdU+s93SCFwPWbzrhKNb7a77YOu0Fg Gkmldx6EQ3c0jZ823bqlfJk22Ik8cUYRUthmfp7yusSr+XBd7JALF1I6CPm/UOOFmJmaYN iE3r5iP7tpngmH9FtCacff6SJEtM8MlWJ6D5O9cSQb0eKTB6j7K6gMpwho90aw== ARC-Authentication-Results: i=1; rspamd-6f5c445b59-h9h5b; auth=pass smtp.auth=dreamhost smtp.mailfrom=roland.mainz@nrubsig.org X-Sender-Id: dreamhost|x-authsender|gisburn@nrubsig.org X-MC-Relay: Neutral X-MailChannels-SenderId: dreamhost|x-authsender|gisburn@nrubsig.org X-MailChannels-Auth-Id: dreamhost X-Bitter-Bitter: 12d27f9a36ba6de1_1773074614043_2466822120 X-MC-Loop-Signature: 1773074614043:3850224659 X-MC-Ingress-Time: 1773074614043 Received: from pdx1-sub0-mail-a254.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.112.160.52 (trex/7.1.3); Mon, 09 Mar 2026 16:43:34 +0000 Received: from mail-wr1-f53.google.com (mail-wr1-f53.google.com [209.85.221.53]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: gisburn@nrubsig.org) by pdx1-sub0-mail-a254.dreamhost.com (Postfix) with ESMTPSA id 4fV2rj4lJsz107T for ; Mon, 9 Mar 2026 09:43:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nrubsig.org; s=dreamhost; t=1773074613; bh=OG83P6ZcxBoc9N7xzW9SSU+JttciH345PcrRYhmg9c4=; h=From:Date:Subject:To:Content-Type:Content-Transfer-Encoding; b=V1dVwzxbH/uKpogAw6QyhMKLfUXICyD5Cn1mqqzypVS37MzvlGlCBidmN3dKPWScV Wq/GLKqVZTOy2Qe14LGRe4Pkg5U+4tYorURuEeL7/drv7xHKHhvZvX7JFBHo852rsa fWBo+5GkRp+1jSzS897TrNBh++g6Sr6c0j0wTpq7h44EckWxCrDTr1qyInmUAFvYie QyLB/IDMkDWauRIC0avusseY+gyXxH8YWflhMDyDZRqJ1ICk52Asn8x1qWW718ufup mPfmpzTINLTdOkLcGDuf1Fr1fP7DZFcNZppeLC7SU5zo/iyfbtfpmbdQYQx7RcTyCo 0vlC5opU/jWwg== Received: by mail-wr1-f53.google.com with SMTP id ffacd0b85a97d-439b8a3f2bcso6259614f8f.3 for ; Mon, 09 Mar 2026 09:43:33 -0700 (PDT) X-Gm-Message-State: AOJu0Yy7ZGspM/Yq0/eowVG8x5ZDku2RqZIisD6pFs0pkC2R5B+JzQHs gvPxpKqjJSzr/LAeFP755aDInT2b8Ckzk+b4DnF9rsfkVqikDUkqIw41HdMrerzvoiq/mBh5cZH wORhGLkKIFODCD8uYJBHXK6jtJjABigE= X-Received: by 2002:a05:6000:1865:b0:439:bcab:405e with SMTP id ffacd0b85a97d-439da885f29mr20481496f8f.35.1773074611829; Mon, 09 Mar 2026 09:43:31 -0700 (PDT) List-Id: Technical discussions relating to FreeBSD List-Archive: https://lists.freebsd.org/archives/freebsd-hackers List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-hackers@FreeBSD.org MIME-Version: 1.0 References: In-Reply-To: From: Roland Mainz Date: Mon, 9 Mar 2026 17:42:52 +0100 X-Gmail-Original-Message-ID: X-Gm-Features: AaiRm51vbywcKS8cFrcTTOuna5rXXI-1__UAgWtx1iU3iktf75vp9MPOCf2MPD4 Message-ID: Subject: Re: [Ms-nfs41-client-devel] FreeBSD-16.0-CURRENT-amd64-20260224: NFSv4.2 on Windows: mkdir fails, touch works To: freebsd-hackers@freebsd.org, ms-nfs41-client-devel@lists.sourceforge.net Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spamd-Result: default: False [-4.30 / 15.00]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; ARC_ALLOW(-1.00)[mailchannels.net:s=arc-2022:i=1]; NEURAL_HAM_SHORT(-1.00)[-0.997]; R_DKIM_ALLOW(-0.20)[nrubsig.org:s=dreamhost]; MIME_GOOD(-0.10)[text/plain]; R_SPF_NEUTRAL(0.00)[?all]; RCVD_VIA_SMTP_AUTH(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:63213, ipnet:23.83.216.0/22, country:CA]; RWL_MAILSPIKE_POSSIBLE(0.00)[23.83.218.24:from]; MISSING_XM_UA(0.00)[]; FROM_HAS_DN(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; RCVD_IN_DNSWL_NONE(0.00)[23.83.218.24:from,209.85.221.53:received]; TO_DN_NONE(0.00)[]; RCVD_COUNT_FIVE(0.00)[5]; FROM_EQ_ENVFROM(0.00)[]; DMARC_NA(0.00)[nrubsig.org]; RCVD_TLS_LAST(0.00)[]; TO_MATCH_ENVRCPT_SOME(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-hackers@freebsd.org]; MLMMJ_DEST(0.00)[freebsd-hackers@freebsd.org]; DKIM_TRACE(0.00)[nrubsig.org:+] X-Rspamd-Queue-Id: 4fV2rn0xdhz3LQr X-Spamd-Bar: ---- On Sat, Mar 7, 2026 at 10:28=E2=80=AFPM Rick Macklem wrote: > > On Sat, Mar 7, 2026 at 9:27=E2=80=AFAM Dan Shelton wrote: > > > > Hello, > > > > some odd issue with FreeBSD 16.0-CURRENT main-n284403-895a97c875a0 > > (installed from > > FreeBSD-16.0-CURRENT-amd64-20260224-16822dac32ab-284159-disc1.iso) and > > ms-nfs41-client: > > $ /sbin/nfs_mount -o rw 'F:' 'nfs://42.28.16.228//nfsdata' > > Successfully mounted '42.28.16.228@NFS@2049' to drive 'F:' > > $ cd /cygdrive/f/dsheldon/tmp/freebsdtests > > > > $ touch x > > $ mkdir y_dir > > mkdir: cannot create directory =E2=80=98y_dir=E2=80=99: Permission deni= ed > > > > I tried this: > > $ chmod a+rwx . > > $ mkdir y_dir > > mkdir: cannot create directory =E2=80=98y_dir=E2=80=99: Permission deni= ed > > > > > > No ACLs involved. > > The same setup works with FreeBSD 15.0. > > > > How can I debug this, or is this a known issue? > Hmm. I don't think anything has changed for mkdir between > 15.0 and man/16 in the NFS server code. > > - If the mkdir request (actually MKNOD in NFSv4) specifies > an owner or owner_group, the permissions are checked as follows: > - For setting owner to anything other than the uid of the caller in > the RPC request's credentials, the caller must be root and the > file system exported -maproot=3Droot. > - For setting an owner_group, the gid owner_group maps to must > be in the gid list of the RPC's credentials. > > I'd suggest you capture packets when the mkdir fails and then.. > - Either look at them in wireshark yourself and see what attributes > are being set by the operation. In particular, check for any ACL > being specified (I know you said ACLs are not involved, but..) > along with OWNER and OWNER_GROUP. > or > - Make the packet capture available to me and I'll look at it. > > I suspect the NFS4ERR_PERM is being generated because of > the attributes being set by the MKNOD operation and I suspect > there is some difference between how you have 15.0 configured > and main/16 configured. [snip] It seems to be an issue with |FATTR4_ARCHIVE| ... I filed https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293691 ("NFSv4.1 client trying to set |FATTR4_ARCHIVE| gets EPERM for file/dir creation attempts") for this, and added https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D292283 ("Bug 292283 - (JAVA) NFSv4.1 client trying to set FATTR4_SYSTEM or FATTR4_HIDDEN gets EPERM for file and dir creation attemps") as reference since the same kind of workaround seems to work. Next release for ms-nfs41-client includes a workaround (see https://github.com/kofemann/ms-nfs41-client/commit/7156d9f9deb25843e57fd455= d8ec67951b82c737) which should avoid this bug, but I will remove that workaround as soon as a fixed release version of FreeBSD will become available... ---- Bye, Roland --=20 __ . . __ (o.\ \/ /.o) roland.mainz@nrubsig.org \__\/\/__/ MPEG specialist, C&&JAVA&&Sun&&Unix programmer /O /=3D=3D\ O\ TEL +49 641 3992797 (;O/ \/ \O;)