Created attachment 246571 [details] Patch to files/samba_server.in It fails to start samba server in a jail environment with the following error when security.jail.mount_allowed = 1 and security.jail.mount_fdescfs_allowed = 0 > Performing sanity check on Samba configuration: OK > mount: none: Operation not permitted The attached patch fixes this issue.
This also affects the net/samba419 port.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=8a7135132699c731ec53f0f9664d772211eba3b7 commit 8a7135132699c731ec53f0f9664d772211eba3b7 Author: Yoshihiro Takahashi <nyan@FreeBSD.org> AuthorDate: 2024-05-26 12:16:36 +0000 Commit: Yoshihiro Takahashi <nyan@FreeBSD.org> CommitDate: 2024-05-26 12:16:36 +0000 net/samba416: Fix startup script in a jail environment PR: 275343 Approved by: maintainer timeout (6 months) Approved by: mikael (samba419 maintainer, ports committer) net/samba416/Makefile | 2 +- net/samba416/files/samba_server.in | 10 ++++++---- 2 files changed, 7 insertions(+), 5 deletions(-)
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=9e9e06725ba1e9475da8f6e02ae81b32044dee88 commit 9e9e06725ba1e9475da8f6e02ae81b32044dee88 Author: Yoshihiro Takahashi <nyan@FreeBSD.org> AuthorDate: 2024-05-26 12:17:36 +0000 Commit: Yoshihiro Takahashi <nyan@FreeBSD.org> CommitDate: 2024-05-26 12:17:36 +0000 net/samba419: Fix startup script in a jail environment PR: 275343 Approved by: mikael (maintainer, ports committer) net/samba419/Makefile | 1 + net/samba419/files/samba_server.in | 10 ++++++---- 2 files changed, 7 insertions(+), 4 deletions(-)