You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by "wengzhe (via GitHub)" <gi...@apache.org> on 2023/06/27 09:16:38 UTC
[GitHub] [nuttx] wengzhe commented on pull request #3707: Fix NFS over TCP
wengzhe commented on PR #3707:
URL: https://github.com/apache/nuttx/pull/3707#issuecomment-1609111480
Hi @masayuki2009, we recently found that NFS server on Ubuntu 22.04 still need client to use port under 1024, for both TCP and UDP. When using NuttX's `nfsmount`, we got `ERR_ACCESS (13)` in MNT reply while reverting e1b14271c85f4aa0a23dfa2036afae7d53e9817c may succeed.
We also found that adding `insecure` option in `/etc/exports` may allow port number greater than 1024:
```
/export *(rw,sync,no_root_squash,insecure)
```
After looking into Linux's kernel, we found that nfsd will test `RQ_SECURE` bit in `rqstp->rq_flags`, which is set when port is under 1024, for both TCP and UDP. The only way to skip this check is setting `NFSEXP_INSECURE_PORT` flag, which is exactly `insecure` option in `/etc/exports`.
Is there any reason to remove port binding in TCP mode? If so, shall we add `insecure` option to our NFS guide?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@nuttx.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org