It seems that the only thing to be done is to add "nosymfollow" to tmpfs_opts[] array here: https://cgit.freebsd.org/src/tree/sys/fs/tmpfs/tmpfs_vfsops.c#n94 Or am I missed something?
Did you tested that?
The tmpfs_updateopts array also should be updated.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=15df90218bb62df96ce27f47ad9953f4c1f37900 commit 15df90218bb62df96ce27f47ad9953f4c1f37900 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-02-23 13:15:17 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-02-23 13:15:17 +0000 tmpfs: support the nosymfollow mount option PR: 269772 Reported by: firk@cantconnect.ru Sponsored by: The FreeBSD Foundation MFC after: 1 week sys/fs/tmpfs/tmpfs_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
I tested that on 12.3 and it works. Now tested on CURRENT and it works too.
A commit in branch stable/13 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=84494004f9258b90f34c535cc5de6a176b0ee2b0 commit 84494004f9258b90f34c535cc5de6a176b0ee2b0 Author: Konstantin Belousov <kib@FreeBSD.org> AuthorDate: 2023-02-23 13:15:17 +0000 Commit: Konstantin Belousov <kib@FreeBSD.org> CommitDate: 2023-03-02 02:30:24 +0000 tmpfs: support the nosymfollow mount option PR: 269772 (cherry picked from commit 15df90218bb62df96ce27f47ad9953f4c1f37900) sys/fs/tmpfs/tmpfs_vfsops.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)