Bug 275343 - net/samba416: Fix startup script in a jail environment
Summary: net/samba416: Fix startup script in a jail environment
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Some People
Assignee: Timur I. Bakeyev
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-11-26 04:16 UTC by Yoshihiro Takahashi
Modified: 2024-05-26 12:28 UTC (History)
7 users (show)

See Also:
bugzilla: maintainer-feedback? (timur)


Attachments
Patch to files/samba_server.in (786 bytes, patch)
2023-11-26 04:16 UTC, Yoshihiro Takahashi
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yoshihiro Takahashi freebsd_committer freebsd_triage 2023-11-26 04:16:45 UTC
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.
Comment 1 Michael Laß 2024-05-18 17:35:50 UTC
This also affects the net/samba419 port.
Comment 2 commit-hook freebsd_committer freebsd_triage 2024-05-26 12:19:35 UTC
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(-)
Comment 3 commit-hook freebsd_committer freebsd_triage 2024-05-26 12:19:37 UTC
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(-)